* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: rgb(79, 40, 83);
  overflow-x: hidden;
  --maincolor: hsl(175, 100%, 97%);
  --accentcolor: hsl(280, 24%, 36%);
  --primarycolor: hsl(183, 48%, 35%);
  --footercolor: hsl(294, 35%, 24%);
}

/*HOME STYLING*/
.container {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 160px 1fr;
  grid-template-rows: auto 1fr 0.7fr 0.7fr auto;
  grid-template-areas:
    "navbar navbar"
    "sidebar main"
    "sidebar testimonial"
    "sidebar about"
    "sidebar footer";
}

/*NAV STYLING*/
.logo {
  width: 165px;
}

nav {
  display: flex;
  top: 0;
  position: sticky;
  z-index: 10;
  width: 100%;
  grid-area: navbar;
  padding-top: 5px;
  padding-bottom: 5px;
  background-color: hsl(203, 88%, 81%);
  height: 110px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
  background-image: url(images/headerbg.webp);
  background-size: cover;
  background-position: center;
  border-bottom: 12px solid #382c3a;
}

.middle-section {
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.top-padding {
  flex: 1;
}

nav ul {
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  list-style-type: none;
  flex-shrink: 0;
}

nav ul a {
  position: relative;
  text-decoration: none;
  color: var(--maincolor);
  margin-left: 45px;
  font-size: 1.1em;
  letter-spacing: 1px;
  font-family: "Lato", sans-serif;
  font-weight: 500;
  font-style: normal;
}

nav ul a:not(:has(button)) {
  position: relative;
  text-decoration: none;
  color: var(--maincolor);
}

nav ul a:not(:has(button))::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background-color: white;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-out;
}

nav ul a:not(:has(button)):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

nav ul a button {
  padding: 15px 20px;
  border: 4px solid #644773;
  background-color: hsla(279, 43%, 65%, 0.7);
  border-radius: 20px 3px 20px 3px;
  cursor: pointer;
}

nav ul a button:hover {
  background-color: #a875c1;
}

nav ul a button span {
  padding-left: 0;
  color: white;
  text-decoration: none;
  font-size: 1.1em;
  font-family: "Protest Strike", sans-serif;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 1.2px;
}

/*SIDEBAR STYLING*/
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 250px;
  z-index: 1100;
  background-color: rgba(139, 172, 177, 0.734);
  backdrop-filter: blur(10px);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.sidebar ul {
  list-style: none;
  align-items: center;
  width: 100%;
}

.sidebar a {
  text-decoration: none;
  color: var(--maincolor);
  height: 100%;
  width: 100%;
  padding: 0 30px;
  display: flex;
  align-items: center;
  font-family: "Inter Tight", sans-serif;
  font-optical-sizing: auto;
  font-weight: 350;
  font-style: normal;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.sidebar a::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: hsl(188, 20%, 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: -1;
}

.sidebar a:hover::before {
  transform: translateX(0);
}

.sidebar li {
  width: 100%;
  display: block;
  height: 50px;
}

.menu-button {
  display: none;
}

/*SIDE STYLING*/
aside {
  height: calc(100vh - 110px);
  top: 110px;
  position: sticky;
  align-self: start;
  grid-area: sidebar;
  background-color: purple;
  background-image: url(images/leftbar.webp);
  box-shadow: 3px 0 5px rgba(0, 0, 0, 0.1);
}

/*HERO STYLING*/
.home {
  grid-area: main;
  background-color: #70c1ff;
  min-height: calc(100vh - 110px);
  height: auto;
  color: var(--maincolor);
  padding-top: 150px;
  background:
    url(images/women.webp) right center no-repeat,
    url(images/mainbg.webp) center center no-repeat;
  background-size: contain, cover;
  padding-left: 20px;
  padding-right: 20px;
}

.main-content {
  padding-left: 45px;
  position: relative;
  margin: 0 auto;
  max-width: 1400px;
  padding-right: 20px;
}

.main-content h1 {
  transform: translateY(100px);
  animation: slideUp 0.4s ease-out forwards;
  opacity: 0;
}

.main-content a button {
  transform: translateY(100px);
  animation: slideUp 0.7s ease-out forwards;
  opacity: 0;
}

.main-content a button,
.main-content h1 {
  position: relative;
  z-index: 1;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home h1 {
  font-size: clamp(2.5em, 8vw, 7em);
  color: var(--maincolor);
  padding-bottom: 10px;
  font-family: "linotype-didot", serif;
  font-weight: 600;
  font-style: normal;
  letter-spacing: clamp(-2px, -0.5vw, -4px);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.home a button {
  background-color: hsla(279, 43%, 65%, 0.7);
  padding: 15px 25px;
  border: 5px solid #644773;
  border-radius: 35px 6px 35px 6px;
  cursor: pointer;
}

.home a button:hover {
  background-color: #a875c1;
}

.home a button span {
  color: var(--maincolor);
  text-decoration: none;
  font-size: 1.2em;
  font-family: "Protest Strike", sans-serif;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 1px;
}

/*HOME-ABOUT STYLING*/
.about {
  grid-area: about;
  background-image: linear-gradient(
    to bottom,
    hsl(183, 48%, 35%) 35%,
    rgb(79, 40, 83)
  );
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  gap: 30px;
  flex-direction: column;
}

.about img {
  height: auto;
  max-height: 50vh;
  width: 90%;
  max-width: 400px;
  border-radius: 100px;
  box-shadow: -3px 3px 3px rgba(0, 0, 0, 0.2);
  border: 4px solid rgb(32, 72, 66);
  object-fit: cover;
  aspect-ratio: 3/4;
}

.main-about-content {
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin-left: 0;
  color: var(--maincolor);
  font-family: "Lato", sans-serif;
  font-weight: 500;
  font-style: normal;
  max-width: 550px;
  width: 100%;
  padding: 0 20px;
  text-align: center;
  align-items: center;
}

.main-about-content h1 {
  display: flex;
  justify-content: center;
  justify-items: center;
  font-size: clamp(1.5em, 4vw, 2em);
  padding-bottom: 10px;
  margin-bottom: 25px;
  border-bottom: 2px solid rgb(32, 72, 66);
  text-align: center;
}

.main-about-content p {
  display: flex;
  justify-content: center;
  line-height: 25px;
  color: rgb(226, 226, 226);
  padding-bottom: 20px;
  max-width: 450px;
  width: 100%;
  padding-left: 0px;
  text-align: center;
}

.main-about-content a button {
  padding: 10px 30px;
  background: var(--maincolor);
  border: none;
  border-radius: 15px 5px 15px 5px;
  cursor: pointer;
}

.main-about-content a button span {
  color: black;
  font-size: 1.1em;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
}

/*HOME-STUDIO STYLING*/
.checkOutStudio {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-area: testimonial;
  background-image: linear-gradient(
    to top,
    hsl(183, 48%, 35%) 35%,
    hsl(280, 24%, 36%)
  );
  padding: 40px 20px;
  gap: 30px;
  flex-direction: column-reverse;
}

.checkOutStudio img {
  height: auto;
  max-height: 50vh;
  width: 90%;
  max-width: 400px;
  border-radius: 100px;
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2);
  border: 4px solid rgb(51, 24, 54);
  object-fit: cover;
  aspect-ratio: 3/4;
}

.main-studio-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  color: var(--maincolor);
  max-width: 600px;
  width: 100%;
  font-family: "Lato", sans-serif;
  font-weight: 500;
  font-style: normal;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

.main-studio-content h1 {
  display: flex;
  justify-content: center;
  justify-items: center;
  font-size: clamp(1.5em, 4vw, 2em);
  padding-bottom: 10px;
  margin-bottom: 25px;
  border-bottom: 2px solid rgb(51, 24, 54);
  text-align: center;
}

.main-studio-content p {
  display: flex;
  justify-content: center;
  line-height: 25px;
  color: rgb(226, 226, 226);
  padding-bottom: 20px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.main-studio-content a button {
  padding: 10px 30px;
  background: rgb(253, 253, 253);
  border: none;
  border-radius: 15px 5px 15px 5px;
  cursor: pointer;
}

.main-studio-content a button span {
  color: black;
  font-size: 1.1em;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
}

/*FOOTER STYLING*/
footer {
  grid-area: footer;
  background-color: rgb(79, 40, 83);
  padding: 25px 0 0 0;
}

.footer-content {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

footer svg {
  height: 60px;
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.social-icons a {
  height: 50px;
  background-color: #321935;
  padding: 0.8em;
  border-radius: 50%;
  margin-bottom: 10px;
}

.social-icons a svg {
  height: 25px;
  fill: var(--maincolor);
}

footer hr {
  width: 75%;
  margin: 0 auto;
  border: 0.5px solid rgb(33, 15, 33);
}

.footer-content p {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
  color: var(--maincolor);
}

/*CLASS MAIN STYLING*/
.container-classes {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 160px 1fr;
  grid-template-rows: auto 0.5fr 1fr auto;
  grid-template-areas:
    "navbar navbar"
    "sidebar main"
    "sidebar calendar"
    "sidebar footer";
}

.classes {
  display: flex;
  justify-content: center;
  background-image: url(images/matbg.webp);
  background-size: cover;
  background-repeat: no-repeat;
  height: calc(100vh - 300px);
  position: relative;
}
.classes::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    hsl(183, 48%, 35%) 90%
  );
  pointer-events: none;
  z-index: 1;
}
.classes-content {
  padding-top: 150px;
  display: inline-block;
  width: 100%;
  max-width: 500px;
  max-height: 300px;
  position: relative;
  z-index: 2;
}
.classes-content h1 {
  display: flex;
  justify-content: center;
  font-size: 13em;
  color: var(--maincolor);
  text-shadow: 1px 1px 7px rgba(0, 0, 0, 0.7);
  font-family: "linotype-didot", serif;
  font-weight: 600;
  font-style: normal;
  transform: translateY(100px);
  animation: slideUp 0.4s ease-out forwards;
  opacity: 0;
}
.classes-content .classes img {
  height: 75%;
}

/*SCHEDULE TABLE STYLING*/

.calendar {
  grid-area: calendar;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 50px;
  background-image: linear-gradient(
    to bottom,
    hsl(183, 48%, 35%) 35%,
    rgb(79, 40, 83)
  );
}
.schedule {
  padding: 40px 0 50px 0;
}
.schedule table {
  border-radius: 10px;
  width: 900px;
  padding: 10px 0;
  font-size: 1em;
  border-collapse: separate;
  border-spacing: 1;
}
.schedule table thead {
  height: 40px;
}
.schedule table thead tr {
  background-color: rgba(215, 215, 215, 0.97);
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 0.9em;
  color: rgb(87, 87, 87);
}
th:nth-child(1) {
  width: 150px;
  font-size: 0.9em;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: normal;
}
.schedule table thead tr th:first-child {
  border-top-left-radius: 15px;
}

.schedule table thead tr th:last-child {
  border-top-right-radius: 15px;
}
table tr:nth-child(even) {
  background-color: rgba(221, 221, 221, 0.97);
}
table tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.97);
}
tbody tr:nth-child(3),
tbody tr:nth-child(11) {
  height: 100px;
}
tbody tr:nth-child(3),
tbody tr:nth-child(9) {
  height: 180px;
}
tbody tr:nth-child(4),
tbody tr:nth-child(10) {
  height: 30px;
}
tbody tr:nth-child(5),
tbody tr:nth-child(6),
tbody tr:nth-child(7) {
  height: 35px;
}
tbody tr:nth-child(1),
tbody tr:nth-child(2),
tbody tr:nth-child(8) {
  height: 45px;
}
.schedule table tbody tr:last-child th:first-child {
  border-bottom-left-radius: 15px;
}

.schedule table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 15px;
}
.schedule-info {
  background-color: hsla(279, 43%, 65%, 0.7);
  padding: 10px;
  margin: 0 auto;
  width: 140px;
  color: var(--maincolor);
  vertical-align: top;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 0.9em;
  line-height: 20px;
}
.schedule-info span {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 0.9em;
}
.time {
  color: rgb(75, 27, 100);
}
td a {
  text-decoration: none;
}
td a:hover {
  text-decoration: underline;
}

/*ABOUT PAGE STYLING*/
.container-about {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 160px 1fr;
  grid-template-rows: auto 1fr 0.7fr 0.9fr auto;
  grid-template-areas:
    "navbar navbar"
    "sidebar main"
    "sidebar willowtree-about"
    "sidebar skylar-about"
    "sidebar footer";
}
.about-page {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url(images/aboutmainbg.webp);
  height: calc(100vh - 110px);
  background-size: cover;
  position: relative;
  background-color: hsl(280, 24%, 36%);
}
.about-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    hsl(280, 24%, 36%) 90%
  );
  pointer-events: none;
  z-index: 1;
}
.about-page-content {
  font-size: 6em;
  color: var(--maincolor);
  text-shadow: 1px 1px 7px rgba(0, 0, 0, 0.7);
  font-family: "linotype-didot", serif;
  font-weight: 600;
  font-style: normal;
  padding-bottom: 100px;
  transform: translateY(100px);
  animation: slideUp 0.4s ease-out forwards;
  opacity: 0;
  z-index: 2;
}

/*WILLOW TREE ABOUT STYLING*/
.willowtree-about {
  grid-area: willowtree-about;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
    to top,
    hsl(183, 48%, 35%) 35%,
    hsl(280, 24%, 36%)
  );
}
.willowtree-about-content {
  display: flex;
  max-width: 80%;
  width: 100%;
  color: var(--maincolor);
}
.willowtree-about-content div {
  padding-right: 50px;
}
.willowtree-about-content div h2 {
  border-bottom: 2px solid rgb(255, 255, 255);
  text-align: center;
  padding: 8px;
  font-size: 1.8em;
  font-family: "linotype-didot", serif;
  font-weight: 600;
  font-style: normal;
}
.willowtree-about-content div p {
  padding: 20px;
  text-align: center;
  font-size: 0.95em;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 24px;
}

/*SKLYAR ABOUT STYLING*/
.skylar-about {
  grid-area: skylar-about;
  display: flex;
  justify-content: center;
  background: linear-gradient(
    to bottom,
    hsl(183, 48%, 35%) 35%,
    rgb(79, 40, 83)
  );
}
.skylar-about-content {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  width: 100%;
}
.skylar-about-text {
  display: flex;
  flex-direction: column;
  color: var(--maincolor);
  padding-left: 40px;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.skylar-about-text p {
  padding: 30px 0;
  font-size: 0.9em;
  color: rgb(212, 212, 212);
  line-height: 21px;
}
.skylar-about-text h2 {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--maincolor);
  font-size: 1.8em;
  font-family: "linotype-didot", serif;
  font-weight: 600;
  font-style: normal;
}
.skylar-about-text ul {
  padding-top: 12px;
  padding-left: 20px;
  color: rgb(212, 212, 212);
  line-height: 28px;
  font-size: 0.9em;
}
.skylar-about-content img {
  height: 500px;
  border: 5px solid #321935;
  border-radius: 100px;
}

/*STUDIO PAGE STYLING*/
.container-studio {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 160px 1fr;
  grid-template-rows: auto 1fr 0.2fr 1fr auto;
  grid-template-areas:
    "navbar navbar"
    "sidebar main"
    "sidebar studio-welcome"
    "sidebar studio-gallery"
    "sidebar footer";
}
.studio-main {
  background-image: url(images/studiobg.webp);
  background-size: cover;
  height: calc(100vh - 110px);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.studio-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    hsl(183, 48%, 35%) 90%
  );
  pointer-events: none;
  z-index: 1;
}
.studio-main h1 {
  color: var(--maincolor);
  font-size: 13em;
  padding-bottom: 200px;
  font-family: "linotype-didot", serif;
  font-weight: 600;
  font-style: normal;
  z-index: 2;
}
.studio-welecome {
  grid-area: studio-welcome;
  display: flex;
  align-items: center;
}
.studio-welcome-content {
  max-width: 100%;
  width: 100%;
  color: var(--maincolor);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 160px 80px;
  background-color: hsl(183, 48%, 35%);
}
.studio-welcome-left {
  font-size: 2.7em;
  font-family: "linotype-didot", serif;
  font-weight: 800;
  font-style: normal;
}
.studio-welcome-right {
  width: 100%;
  max-width: 50%;
}
.studio-welcome-right p {
  font-size: 1.2em;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: normal;
  line-height: 40px;
  color: rgb(235, 235, 235);
}
.studio-welcome-right a button {
  font-size: 1.1em;
  padding: 10px 30px;
  background: var(--accentcolor);
  border: none;
  border-radius: 15px 5px 15px 5px;
  cursor: pointer;
  margin-top: 30px;
  color: var(--maincolor);
  font-family: "Lato", sans-serif;
  font-weight: 500;
  font-style: normal;
}
.studio-gallery {
  grid-area: studio-gallery;
  background: linear-gradient(var(--primarycolor), var(--footercolor));
}
/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 650px) {
  .hideOnMobile {
    display: none;
  }

  .menu-button {
    display: block;
  }

  nav {
    min-width: unset;
    flex: none;
  }

  .container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "navbar"
      "main"
      "testimonial"
      "about"
      "footer";
  }
  .container-classes {
    grid-template-columns: 1fr;
    grid-template-areas:
      "navbar"
      "main"
      "calendar"
      "footer";
  }
  aside {
    display: none;
  }

  .home {
    background-image: url(images/mainbg.webp);
    background-position: center;
    background-size: cover;
  }

  .main-content,
  .classes-content {
    padding-left: 20px;
  }
}

@media (min-width: 651px) and (max-width: 899px) {
  .home {
    background-size:
      auto 100%,
      cover;
  }
}

@media (max-width: 400px) {
  .sidebar {
    width: 100%;
  }
}

/* DESKTOP LAYOUT RESTORATION */
@media (min-width: 900px) {
  .about {
    flex-direction: row;
    padding-left: 45px;
  }

  .main-about-content {
    margin-left: 20px;
    text-align: left;
    align-items: flex-start;
  }

  .main-about-content h1,
  .main-about-content p {
    text-align: left;
  }

  .checkOutStudio {
    flex-direction: row;
    padding-right: 45px;
  }

  .main-studio-content {
    padding-left: 20px;
    text-align: left;
    align-items: flex-start;
  }

  .main-studio-content h1,
  .main-studio-content p {
    text-align: left;
  }
}
