* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.love-ya-like-a-sister-regular {
  font-family: "Love Ya Like A Sister", cursive;
  font-weight: 400;
  font-style: normal;
}
.istok-web-regular {
  font-family: "Istok Web", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.istok-web-bold {
  font-family: "Istok Web", sans-serif;
  font-weight: 700;
  font-style: normal;
}
.istok-web-regular-italic {
  font-family: "Istok Web", sans-serif;
  font-weight: 400;
  font-style: italic;
}
.istok-web-bold-italic {
  font-family: "Istok Web", sans-serif;
  font-weight: 700;
  font-style: italic;
}

html {
  scroll-behavior: smooth;
  background-color: #4B6E91;
  color: #E5E5E5;
  line-height: normal;
}

body {
  font-size: 16px;
  font-family: "Istok Web", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("assets/Freebie-DarkGrungeTextures-Preview-06.webp") center/cover no-repeat;
  opacity: 0.15; /* 10% opacity */
  pointer-events: none;
  z-index: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2 {
  font-family: "Love Ya Like A Sister", cursive;
}

h1 {
  font-size: 10rem;
}

h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 2rem;
  margin-bottom: 1.75rem;
  margin-top: 3rem;
}

h4 {
  font-size: 1.75rem;
  margin-top: 1rem;
  font-family: "Love Ya Like A Sister", cursive;
}

p,
li {
  font-size: 1.5rem;
}

li {
  list-style-position: inside;
  margin-bottom: 0.5rem;
}

p,
li,
small,
h3 {
  font-family: "Istok Web", sans-serif;
  max-width: 75ch;
  margin-bottom: 1rem;
}

small {
  margin-bottom: 0.5rem;
  max-width: 85ch;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

#special-footer {
  margin-top: 2rem;
  font-size: 1rem;
}


.hero-image {
  position: relative;
  height: 80vh;
  background-image: url("assets/dead-by-daylight-1hg3x.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2rem;
}

.hero-image h1 {
  color: #E5E5E5;
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  margin: 0;
}

#hero-title {
  font-size: 5.75rem;
}


.container {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  margin-top: -2rem;
}

.sidebar {
  width: 300px;
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: 300px;
  padding: 1.5rem;
  border-radius: 5px;
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  background-color: #540B64;
  color: #E5E5E5;
}

.sidebar a {
  color: #E5E5E5;
  text-decoration: none;
  font-size: 2rem;
  margin: 1rem 0;
}

.content {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: auto;
}

section {
  padding: 5rem;
  margin-bottom: 2rem;
  scroll-margin-top: 1rem;
  position: relative;
}

.deco {
  position: absolute;
  pointer-events: none;
}

.deco img {
  width: 380px;
  height: auto;
}

#deco-1 {
  top: 50%;
  right: 5%;
}

#deco-2 {
  top: 55%;
  right: 10%;
  transform: translateY(-50%);
  width: 300px;
  height: auto;
}

#deco-4 {
  top: 35%;
  right: 10%;
}


footer {
  width: 100%;
  background-color: rgba(38, 43, 60, 1);
  color: #E5E5E5;
  text-align: center;
  padding: 4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  clear: both;
  margin: 0 auto;
  margin-top: 4rem;
  max-width: 100vw;
}

footer button {
  margin: 0.5rem;
  background-color: #E5E5E5;
  color: #0D0D0D;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Love Ya Like A Sister", cursive;
  font-weight: 700;
  font-size: 1rem;
}

button {
  background-color: #E5E5E5;
  color: #0D0D0D;
  border: none;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Love Ya Like A Sister", cursive;
  font-weight: 700;
  font-size: 1rem;
}

/* ========== CASE STUDY LAYOUT ========== */

.container-case-study {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  align-items: center;
  margin: 0 auto;
}

.case-study-title {
  text-align: center;
  margin: auto;
  display: block;
  width: 100%;
  margin-left: 10%;
  font-size: 3rem;
}

.question {
  text-align: left;
  margin: 1rem 0 -1rem 0;
  width: 100%;
  margin-left: 40%;
}

.no-bullets {
  list-style-type: none;
  margin-bottom: 2rem;
}

.footer-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}


.menu-toggle {
  display: none;
}

/* ---- TABLET ---- */
@media (max-width: 1600px) {
  .container {
    gap: 1rem;
    padding: 1.5rem;
  }

  body {
    font-size: 15px;
  }

  h1 {
    font-size: 6rem;
  }

  .case-study-title {
    font-size: 2.5rem;
  }

  #hero-title {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.4rem;
  }

  p,
  li {
    font-size: 1.3rem;
  }

  section {
    padding: 3rem 1.5rem;
    position: static;
  }

  .deco {
    position: static;
    margin: 2rem auto 0;
    text-align: center;
  }

  .deco img {
    width: 250px; 
    max-width: 40%;
    align-items: center;
    margin: 0 auto;
    padding: 0.0125% 0;
    margin-bottom: -5.5rem;
  }

  #deco-2 {
    width: 450px;
    margin-bottom: -10rem;
    margin-top: 5rem;
  }
}

/* ---- PHONE ---- */
@media (max-width: 600px) {
  .container {
    display: block;
    padding: 1rem;
    gap: 0;
  }

  .content {
    width: 100%;
  }

  body {
    font-size: 14px;
  }

  h1 {
    font-size: 3rem;
  }

  .case-study-title {
    font-size: 2rem;
    margin-left: 0;
  }

  #hero-title {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.25rem;
    line-height: 1.2;
  }

  p,
  li {
    font-size: 1.1rem;
  }

  section {
    padding: 2rem 1rem;
    margin-bottom: 1.5rem;
  }

  .menu-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #540B64;
    color: #E5E5E5;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-family: "Istok Web", sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
  }

  .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    max-width: 260px;
    height: 100vh;
    background-color: #540B64;
    padding: 4rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.5);

    flex: none;
    max-height: none;
  }

  .sidebar ul {
    list-style: none;
    padding-left: 0;
  }

  .sidebar li + li {
    margin-top: 1rem;
  }

  .sidebar a {
    display: block;
    font-size: 1rem;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .hero-image {
    height: 60vh;
    padding-bottom: 1.5rem;
  }

  .deco {
    position: static;
    margin: 2rem auto 0;
    text-align: center;
  }

  .deco img {
    width: 250px;
    max-width: 40%;
    align-items: center;
    margin: 0 auto;
    padding: 0.0125% 0;
    margin-bottom: -5.5rem;
  }

  #deco-2 {
    width: 380px;
    margin-bottom: -5rem;
  }

  #deco-4 {
    margin-bottom: 2rem;
  }

  .question {
    margin-left: 0;
    text-align: left;
  }
}
