@import url("https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800&family=Open+Sans:wght@400;600&family=Quicksand:wght@400;500;600;700&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background-color: rgba(34, 9, 47, 0.1);
  font-family: "Barlow";
  font-weight: 400;
  /* font-style: italic; */
}

/* ##############################
        Header styling
############################## */
header {
  height: 220px;
  background-color: rgb(255, 255, 255, 1);
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.3);
}
.logo {
  background-image: url(pics/TCM-logo.svg);
  background-size: 300px;
  background-repeat: no-repeat;
  background-position: 10px 10px;
}
.hours {
  display: inline-block;
  position: absolute;
  top: 35px;
  right: 24px;
  color: rgba(136, 35, 191, 0.9);
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  border: 1px solid rgba(136, 35, 191, .5);
  border-radius: 10%;
  background-color: hsla(300, 80%, 76%, .3);
}
.contact-info {
  position: absolute;
  top: 175px;
  left: 10px;
  text-align: left;
  font-size: 1rem;
  color: #333; /* Change color as needed */
  padding: 0 10px;
  font-family: "Barlow";
  font-style: italic;
}
.break-contact::after, .break::after {
  content: "\a";
  display: block;
}
/* Formatting for the menu */
.navbar {
  min-height: 220px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding-right: 24px;
  padding-bottom: 5px;
}
.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
}
.nav-branding {
  font-size: 1rem;
}
nav ul li a:link {
  text-decoration: none;
}
nav ul li {
  list-style: none;
  padding-inline: 5px;
}
nav ul li:not(:last-child) {
  border-right: 1px solid rgba(136, 35, 191, 1);
}
.nav-link {
  border-bottom: 1px solid transparent;
  transition: color 1s ease, border-color 1s ease;
}
.nav-link:hover {
  color: hsl(300, 80%, 76%);
  border-block-color: hsl(300, 80%, 76%);
  /* text-decoration: underline; */
}
.hamburger {
  display: none;
  cursor: pointer;
}
.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.7s ease-in-out;
  transition: all 0.7s ease-in-out;
  background-color: rgb(0, 0, 0);
}
/* ===============================
        End Header Styling
=================================*/

h2 {
  padding-top: 10px;
  text-align: center;
}
main div p {
  padding: 10px;
  text-indent: 1em;
}
main div p::first-line {
  font-size: 1.05em;
  font-weight: 500;
}
a {
  color: rgba(136, 35, 191, 0.9);
  text-decoration: none;
}
/* ===============================
controls top margin for any 
p tags after the 1st p tag 
================================ */
main div p:nth-of-type(1n + 2) {
  margin-top: -15px;
}
.indent {
  text-indent: 1em;
  display: inline-block;
}
/* For the grid on da mobiles */
.layout-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  grid-template-rows: auto; /* Automatic row height */
  grid-template-areas:
    "video video video"
    "one one one"
    "two two three"
    "four five five"
    "six six six";
  gap: 0.9em;
  margin-inline: auto;
  padding-block-start: 1rem;
  padding-block-end: 2rem;
  width: min(95%, 70rem);
}
video {
  border-radius: 10px;
}
#video-placeholder video {
  display: block;
  margin: auto;
}
.video-container {
  position: relative;
  width: 100%;
}

.mute-unmute-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centers the mute/unmute button */
  padding: 10px;
  background-color:ser #444;
  color: black;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}
.replay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centers the mute/unmute button */
  padding: 10px;
  background-color:ser #444;
  color: black;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}
.what-is-med,
.when-appro,
.try-med,
.what-we-do,
.types-of-med,
.the-four-ds {
  border: 1px solid transparent;
  background-color: rgb(255, 255, 255);
  border-radius: 10px;
  box-shadow: 1px 2px 5px rgba(65, 84, 143, 0.5);
}
.what-is-med {
  grid-area: one;
  padding-top: 180px;
  background-image: url(pics/what-is-med.png);
  background-size: 350px;
  background-repeat: no-repeat;
  background-position: center 10px;
  background-color: rgba(65, 84, 143, 1);
  color: white;
}
.when-appro {
  grid-area: two;
  padding-top: 200px;
  background-image: url(pics/tcm.svg);
  background-size: 380px;
  background-repeat: no-repeat;
  background-position: center 0px;
  background-color: rgba(113, 106, 128, 0.5);
  color: black;
}
.try-med {
  grid-area: three;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
}
.what-we-do {
  grid-area: four;
  background-color: rgba(65, 84, 143, 1);
  color: white;
}
.types-of-med {
  grid-area: five;
  background-color: rgba(113, 106, 128, 0.2);
  color: black;
}
.the-four-ds {
  grid-area: six;
  background-color: rgba(113, 106, 128, 0.5);
  color: black;
}

@media (max-width: 800px) {
  p {
    font-size: 1.05em;
  }
  .logo {
    background-image: url(pics/TCM-logo.svg), url(pics/scales.svg);
    background-size: 200px, 30px;
    background-position: center 10px, 95% 20px;
  }
  .contact-info {
    text-align: center;
    font-size: 0.9rem;
    top: 180px;
    right: 15%;
    left: 15%;
  }
  .hours {
    position: absolute;
    top: 125px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .9rem;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    max-width: max-content;
  }
  .break::after {
    content: "\a";
    display: block;
  }
  .hamburger {
    display: block;
    z-index: 2; /* need this to keep the X above .nav-menu */
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .nav-menu {
    position: fixed;
    height: 220px;
    left: -130%;
    top: 0;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.963);
    border: 2px solid rgba(205, 113, 255, 0.156);
    box-shadow: 5px 4px 10px rgba(0, 119, 255, 0.1);
    width: 100%;
    text-align: center;
    transition: 0.9s ease;
    z-index: 1; /* need this to keep above .contact-info */
  }
  nav ul li:not(:last-child) {
    border: none;
  }
  .nav-link {
    border-bottom: none;
    transition: none;
  }
  .nav-link:hover {
    color: hsl(300, 80%, 76%);
    text-decoration: underline;
  }
  .nav-item {
    margin: 16px 0;
  }

  .nav-menu.active {
    left: 0;
  }
  main div h3 {
    padding-top: 20px;
  }
}

@media (max-width: 700px) {
  .layout-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "video"
      "one"
      "two"
      "three"
      "four"
      "five"
      "six";
    gap: 0.9em;
    margin-inline: auto;
    padding-block-start: 1rem;
    padding-block-end: 2rem;
  }
  .what-is-med {
    padding-top: 130px;
    background-image: url(pics/scales.svg);
    background-size: 150px;
    background-repeat: no-repeat;
    background-position: center 0px;
  }
  .when-appro {
    padding-top: 120px;
    background-image: url(pics/TCM-logo.svg);
    background-size: 200px;
    background-repeat: no-repeat;
    background-position: center 10px;
  }
}

/* For the grid on tha regular */
@media (max-width: 651px) {
  .logo {
    background-image: url(pics/TCM-logo.svg), url(pics/scales.svg);
    background-size: 195px, 30px;
    background-position: center 10px, 95% 20px;
  }
  .hours {
    position: absolute;
    font-size: .8rem;
  }
  .contact-info {
    font-size: .8rem;
  }
  .break::after {
    content: "\a";
    display: block;
  }
}


/* =================================
        SMALL SCREEN FORMATTING
================================== */
@media (max-width: 450px) {
  .hours {
    position: absolute;
    font-size: .8rem;
    font-weight: bold;
    text-align: center;
  }
  .break::after {
    content: "\a";
    display: block;
  }
  .contact-info {
    font-size: .8rem;
  }
}
