@import url('https://fonts.googleapis.com/css2?family=Prosto+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Prosto+One&display=swap');

:root {
  --main-color: #0C1144;
  --secondary-color: #56628F;
  --footer-color:  #060927;
  --hover-color: #7aB0ff;
  --blue-color: #263DB9;
  --white-color: #FFF;
  --grey-color: #AAB0C7;
  --black-color: #000;
  --indent-1: 0.5rem;
  --indent-2: 1rem;
  --indent-3: 1.5rem;
  --border-radius: 10px;
  --text-secondary: #D6DCE0;
  --content-height: calc(100vh - 186.38px - 192px);
}

body, p, h1, h2, h3, h4, h5, h6, figure {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--main-color);
  color: var(--text-secondary);
  background-image: url("./assets/images/athome.svg");
  background-repeat: no-repeat, repeat;
  background-position: 100% -50px;
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
}

a {
  text-decoration: none;
}

h1 {
  font-size: 4rem;
}

h1, h2, h3, h4, h4, h6 {
  font-family: "Prosto One", sans-serif;
  color: var(--white-color);
  margin: 0;
}

h2 {
  font-size: 2rem;
}

h3 {
  color: var(--hover-color);
  margin-bottom: var(--indent-1);
  font-size: 2rem;
}

button {
  cursor: pointer;
  border: 0;
}

/* Header */

header {
  width: 100%;
  color: var(--white-color);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 4rem;
  position: sticky;
  top: 0;
  background-color: var(--main-color);
  z-index: 100;
}

header > * {
  margin: var(--indent-2) 0;
}

header > :first-child {
  position: absolute;
  left: var(--indent-3);
  display: flex;
  align-items: center;
  font-size: 0.9vw;
  padding: 0;
}

header > :first-child > img {
  margin-right: var(--indent-1);
  height: 2vw;
}

header nav {
  display: flex;
  width: fit-content;
  justify-content: center;
  font-family: "Prosto One", sans-serif;
  font-size: 1vw;
  color: var(--white-color);
  background-color: var(--secondary-color);
  border-radius: 30px;
  padding: 0.5vw;
  z-index: 100;
  border: 1px solid var(--main-color)
}

.header nav > :first-child {
  margin-right: 0.5rem;
}

header a {
  text-decoration: none;
  color: var(--white-color);
  padding: 0.2rem 1rem;
  white-space: nowrap;
  border-radius: 20px;
}

header a.active {
  background-color: var(--main-color);
}

.logo {
  display: flex;
  align-items: center;
  column-gap: .5rem;
  width: 5rem;
}

.logo img {
  height: 2.5rem;
  width: 2.5rem;
}

/* Header */

/* Footer */

footer {
  display: flex;
  justify-content: space-between;
  padding: 0 5rem;
  height: 10rem;
  background-color: var(--footer-color);
  font-family: "Prosto One", sans-serif;
  font-size: 1rem;
  flex-wrap: wrap;
}

footer .info {
  display: flex;
  flex-direction: column;
  color: var(--white-color);
  margin: var(--indent-2);
  font-size: .8rem;
  line-height: 1.5rem;
}

footer a {
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5rem;
}

footer h2 {
  font-size: 1.2rem;
  padding-bottom: .75rem;
}

/* Footer */

/* Map Block */

.map-block {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--indent-3);
}

.map-container {
  display: flex;
  flex: 1;
  height: 10rem;
}

.map-container > :first-child {
  border-radius: 10px;
  margin-right: var(--indent-2);
  flex: 1;
  height: 100%;
}

.map-container > :last-child {
  width: 20rem;
  padding: var(--indent-2);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  background-color: var(--main-color);
  border: 0.5px solid #fff;
}

.map-container > :last-child > h2, span {
  margin-bottom: var(--indent-1);
}

/* Map Block */

.content {
  min-height: var(--content-height);
  height: 100%;
  padding: var(--indent-3);
}

.block {
  min-height: 30rem;
}

.w-25 {
  width: 25%;
}

.w-50 {
  width: 50%;
}

.w-100 {
  width: 100%;
}

.text-white {
  color: var(--white-color);
}

.subheader {
  color: var(--white-color);
  margin-bottom: var(--indent-2);
}

.card {
  border-radius: 1.2rem;
  padding: .75rem;
  background-color: var(--secondary-color);
}

.card ul li {
  width: calc(100% - 4rem);
}

.grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 0.2fr;
  gap: 1.2rem;
}

.burger-wrapper {
  cursor: pointer;
}

#menuInput {
  display: none;
}

#menuInput:checked ~ #menu {
  transform: translateX(0rem);
}

#burger {
  position: fixed;
  cursor: pointer;
  width: 25px;
  height: 25px;
  right: 20px;
  top: 20px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  margin: 0;
  display: none;
  z-index: 101;
}

#burger > div {
  height: 2px;
  background-color: #fff;
  transition: 0.5s;
  z-index: 999;
}

#menuInput:checked ~ #burger > div {
  background-color: #fff;
}

#menuInput:checked ~ #burger > div:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}
#menuInput:checked ~ #burger > div:nth-child(2) {
  opacity: 0;
}
#menuInput:checked ~ #burger > div:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

@media screen and (max-width: 390px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)) !important;
  }

  .card {
    height: fit-content !important;
  }
}

@media screen and (max-width: 476px) {

  header > :first-child {
    font-size: 1rem !important;
  }

  h2 {
    font-size: 1.2rem !important;
    line-height: 2rem !important;
  }

  .grid {
    margin-top: 1.5rem;
  }
}

@media screen and (max-width: 900px) {
  .map-container {
    display: flex;
    flex-direction: column;
  }
  .map-container > :first-child {
    margin-right: 0;
  }
  .map-container > :last-child {
    margin-top: var(--indent-2);
    width: calc(100% - var(--indent-2)*2);
  }

  header > :first-child > span {
    display: unset !important;
    font-size: 12px;
  }

  #burger {
    display: flex;
  }

  #menu {
    background: var(--secondary-color);
    width: 9rem;
    height: 100vh;
    position: fixed;
    right: 0;
    transition-timing-function: cubic-bezier(10,2,3,1);
    transform: translateX(20rem);
    top: 0;
    z-index: 100;
    transition: 0.5s;
    border-radius: 0;
    border-right: 1px solid var(--secondary-color);
    border-top: 1px solid var(--secondary-color);
    box-shadow: 0px 0px 0px 1px var(--main-color);
  }

  header {
    padding: 2rem 0;
    margin-top: 0;
  }
  header nav {
    border-radius: var(--border-radius);
    flex-direction: column;
    font-size: 10px;
    position: absolute;
    top: 20px;
    right: 20px;
    margin: 0;
    padding-right: 50px;
    padding-left: 0.5rem;
  }
  header > :first-child {
    font-size: 20px;
  }
  header a {
    padding: 0.5rem;
    border-radius: var(--border-radius);
  }
  header > :first-child > img {
    margin-right: var(--indent-1);
    height: 2rem;
  }

  footer {
    flex-direction: column;
    height: fit-content;
    padding: 0 0 0 .5rem;
  }

}

@media screen and (max-width: 1100px) {
  footer {
    flex-direction: column;
  }

}

@media screen and (max-width: 1100px) and (min-width: 850px) {
  header > :first-child > img {
    margin-right: var(--indent-1);
    height: 1.5rem;
  }
  header > :first-child {
    font-size: 10px;
  }
  header nav {
    display: flex;
    width: fit-content;
    justify-content: center;
    font-family: "Prosto One", sans-serif;
    font-size: 10px;
    color: var(--white-color);
    background-color: var(--secondary-color);
    border-radius: 30px;
    padding: 0.3rem 0.8vw;
  }
  header a {
    padding: 0.3rem 0.5rem;
  }

}
