body {
  font-family: "Comic Neue", sans-serif;
  font-size: 14px;
  line-height: 1;
  margin: 0;
}
h1,
h2,
p {
  margin: 0;
  padding: 0;
}
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.link {
  text-decoration: none;
  font-style: inherit;
  color: inherit;
}

.background-container {
  max-width: 1200px;
  min-height: 100vh;
  min-width: 100vw;
  width: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-right: 15px;
  padding-left: 15px;
  padding-bottom: 30px;
  background: rgb(194, 237, 232);

  background: linear-gradient(
    90deg,
    rgba(194, 237, 232, 1) 0%,
    rgba(185, 240, 105, 1) 39%,
    rgba(252, 157, 157, 1) 100%
  );
}
.header {
  display: flex;
  width: 100vw;
  justify-content: center;
  align-items: center;
}

.header-wrap {
  display: flex;
  flex-direction: column;

  margin: 5px;
}
.header-logo {
  margin: 5px;
}
.header-title {
  margin: 5px auto 5px auto;
  font-size: 18px;
  font-weight: 700;
}
.header-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.header-nav-item {
  box-sizing: border-box;
  min-width: 50px;
  margin: 4px;
  padding: 4px;
  border-radius: 6px;
  text-align: center;
}
.header-nav-item:hover,
.header-nav-item:focus,
.header-nav-item.current,
.header-nav-item:hover .link {
  color: white;
}
.header-nav-item.about,
.social-item.intagram {
  background-color: #049bdc;
}
.header-nav-item.quiz,
.social-item.facebook {
  background-color: #80cc11;
}
.header-nav-item.quest,
.social-item.linkedin {
  background-color: #ff2222;
}
.header-nav-item.outdoor,
.social-item.email {
  background-color: #ff9900;
}
.header-nav-item.indoor,
.social-item.phone {
  background-color: #bb33aa;
}
.hero {
  margin: 5px;
}
.carousel {
  margin-left: auto;
  margin-right: auto;
}
.hero-text {
  padding: 5px 10px;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 5px;
}
.hero-description {
  padding: 5px 10px;
  line-height: 1;
  margin-bottom: 5px;
}
.sidebar {
  margin: 5px;
}
.sidebar-title {
  text-align: center;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
}
.sidebar-list {
  display: flex;
  justify-content: center;
  align-items: center;
}
.sidebar-item {
  margin: 5px;
}

.button {
  box-sizing: border-box;
  min-width: 50px;
  padding: 2px 3px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  background-color: rgba(252, 157, 157, 0.5);
  cursor: pointer;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  border: 1px solid transparent;
  border-radius: 4px;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
}
.contacts {
  width: 60%;
}
.footer-form {
  width: 40%;
}
.footer-text {
  margin: 5px;
  line-height: 1;
  text-align: center;
}
.social-list {
  display: flex;
  justify-content: center;
  margin-right: 5px;
}
.social-item {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
}
.button.form {
  padding: 5px;
  border: 1px solid rgba(194, 237, 232, 1);
  background-color: rgba(194, 237, 232, 1);
}
.email-label {
  margin-bottom: 5px;
}
.email-input {
  border: 1px solid black;
  border-radius: 6px;
  width: 100%;
  margin-bottom: 3px;
  padding: 5px;
}
.email-input:focus {
  outline: none;
}

/* Quiz page styles */
.quiz-title {
  text-align: center;
}

.quiz-section {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}
.quiz-card {
  position: relative;
  cursor: pointer;
  width: 200px;
  height: 200px;
}
.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.card-front,
.card-back {
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  position: absolute;
  font-size: 16px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.6s linear;
}
.card-front {
  background-color: rgba(194, 237, 232, 0.5);
  transform: perspective(600px) rotateY(0deg);
}
.card-back {
  background-color: rgba(252, 157, 157, 0.5);
  transform: perspective(600px) rotateY(180deg);
}
.quiz-card:hover > .card-front {
  transform: perspective(600px) rotateY(-180deg);
}
.quiz-card:hover > .card-back {
  transform: perspective(600px) rotateY(0deg);
}
/* Outdoor page styles */
.outdoor-subtitle {
  text-align: center;
}
.outdoor-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.outdoor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 294px;
  margin-bottom: 10px;
}
.outdoor-item-title {
  font-size: 16px;
  font-weight: 700;
}
.outdoor-item-picture {
  max-width: 294px;
  margin-bottom: 5px;
}
/* Indoor page styles */
.indoor-list {
  display: grid;
  gap: 10px;
  grid-template-columns: 50vw 50vw;
  grid-template-rows: 200px 200px;
}
.indoor-item {
  width: 25vw;
}

/* Media */
@media screen and (min-width: 480px) {
  .hero-wrap,
  .quiz-wrap {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
  }
  .sidebar {
    width: 25vw;
  }
  .hero {
    width: 70vw;
  }
  .sidebar-list {
    flex-direction: column;
  }
  .sidebar-title {
    font-size: 16px;
  }
  .contacts {
    width: 50%;
  }
  .email-input {
    width: 60%;
  }
}
@media screen and (min-width: 768px) {
  .hero {
    width: 60vw;
  }
  .hero-text,
  .hero-description {
    font-size: 16px;
  }
  .sidebar {
    width: 20vw;
  }
  .header-nav-item {
    width: 100px;
  }
  .social-item {
    width: 40px;
    height: 40px;
  }
  .outdoor-item {
    flex-direction: row-reverse;
    max-width: 60vw;
  }
  .outdoor-item.column {
    flex-direction: column;
  }
  .outdoor-item-wrap {
    width: 60%;
    margin-right: 10px;
  }
  .outdoor-item-picture {
    width: 40%;
  }
  .contacts {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
