@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
  --primary: #18192b;
  --secondary: #1f2034;
  --complementary: #6869e4;
  --complementary2: #eecd56;
  --complementary3: #1dfac7;
  --light-color: #6d6f90;
  --white: #ffff;
  --box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

.tittle {
  color: var(--white);
  font-weight: normal;
}

body {
  background: var(--primary);
}

section,
footer {
  padding: 1rem 4%;
}

header {
  padding: 2rem 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--light-color);
  font-size: 2rem;
  height: 34px;
}

header #menu {
  color: var(--complementary);
}

header .profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

header .profile #notifications {
  font-size: 1.5rem;
}

header .profile img {
  height: 34px;
  width: 34px;
  border-radius: 50%;
}

header .navbar a {
  font-size: 1.7rem;
  border-radius: 0.5rem;
  padding: 0.5rem 1.5rem;
  color: var(--light-color);
}

header .navbar a.active,
header .navbar a:hover {
  color: var(--white);
  background: var(--complementary);
}

header .navbar {
  display: none;
}

#hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--secondary);
  color: var(--light-color);
  padding: 1rem;
  border-radius: 8px;
}

#hero .day-info {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

#hero .day-info #sun-icon {
  color: var(--complementary2);
  font-size: 1.5rem;
}

.swiper {
  width: 100%;
  height: 100%;
  margin-top: 1rem;
}

.swiper-slide {
  font-size: 18px;
  background: var(--secondary);
  color: var(--light-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border-radius: 8px;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.autoplay-progress {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--complementary);
}

.autoplay-progress svg {
  --progress: 0;
  position: absolute;
  left: 0;
  top: 0px;
  z-index: 10;
  width: 100%;
  height: 100%;
  stroke-width: 4px;
  stroke: var(--complementary);
  fill: none;
  stroke-dashoffset: calc(125.6 * (1 - var(--progress)));
  stroke-dasharray: 125.6;
  transform: rotate(-90deg);
}

.swiper-slide #now-temp {
  margin: 1rem 0;
  background-image: url('../images/Temp.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  height: 320px;
  text-align: center;
  position: relative;
}

.temp-value {
  padding-top: 120px;
}

.temp-value h1 {
  color: var(--white);
  font-size: 44px;
}

.temp-value span {
  color: var(--complementary3);
}

.better-temp {
  padding-top: 70px;
}

.better-temp p {
  color: var(--white);
  font-weight: 200;
}

.better-temp span {
  color: var(--complementary3);
}

.dates {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#quick-access .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  row-gap: 2rem;
  margin-top: 1rem;
}

#quick-access .sensor {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--secondary);
  width: 540px;
  border-radius: 8px;
  padding: 3rem;
}

#quick-access .sensor .sensor-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sensor .sensor-info .sensor-name {
  color: var(--light-color);
  font-weight: 400;
  text-transform: uppercase;
}

.sensorData {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sensor-value {
  font-size: 2.5rem;
  color: var(--white);
}

.sensorData .value-unit {
  font-size: 1rem;
  font-weight: lighter;
  color: var(--white);
}


.sensor-icon {
  color: var(--complementary) !important;
  font-size: 3rem !important;
}

.mg-15 {
  margin-left: -15px;
}

#footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

#footer #file,
#footer #calendar {
  color: var(--light-color);
  font-size: 32px;
  transition: 0.5s ease-in;
  cursor: pointer;
}

#footer #file:hover,
#footer #calendar:hover {
  color: var(--complementary);
}

#footer #actions {
  font-size: 54px;
  color: var(--complementary);
  transition: 0.5s ease-in;
  cursor: pointer;
}

#footer #actions:hover {
  color: var(--complementary3);
}

@media (max-width: 768px) {
  .day-info,
  .date-info {
    font-size: 12px;
  }
  .tittle {
    font-size: 16px;
  }
  .swiper-slide #now-temp {
    height: 100px;
    background-size: 140px;
  }

  .temp-value {
    padding-top: 24px;
  }

  .temp-value h1 {
    font-size: 14px;
  }

  .temp-value span {
    font-size: 10px;
  }

  .better-temp {
    padding-top: 30px;
  }

  .better-temp p {
    font-size: 10px;
  }

  .better-temp span {
    font-size: 10px;
  }

  .sensor {
    align-items: center;
  }
}
