/* ======= CSS VARIABLES ======= */
:root {
  --bg-color: #ffffff;
  --text-color: #121212;
  --card-bg: #f0f0f0;
  --highlight: #ff3d00;
  --footer-bg: #e0e0e0;
  --nav-bg: #ddd;
  --button-bg: #ff3d00;
  --button-text: white;
  --button-hover-bg: #ffd900;
  --button-hover-text: #000;
}

body.dark-mode {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --card-bg: #1e1e1e;
  --highlight: #ff3d00;
  --footer-bg: #000;
  --nav-bg: #000;
  --button-bg: #ff3d00;
  --button-text: white;
  --button-hover-bg: #ffd900;
  --button-hover-text: #000;
}

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

/* ======= BODY ======= */
body {
  font-family: Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  padding-bottom: 60px;
}

/* ======= LINKS ======= */
a {
  color: var(--highlight);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ======= HEADER ======= */
.site-header {
  background-color: var(--nav-bg);
  padding: 12px 20px;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

.logo {
  height: 60px;
  width: auto;
}

.nav-buttons {
  display: flex;
  gap: 10px;
}

.nav-buttons button,
#theme-toggle {
  background-color: var(--button-bg);
  color: var(--button-text);
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.nav-buttons button:hover,
#theme-toggle:hover {
  background-color: var(--button-hover-bg);
  color: var(--button-hover-text);
}

/* ======= CARD SECTIONS ======= */
.card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  margin: 20px auto;
  max-width: 900px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.card h2 {
  color: var(--highlight);
  margin-bottom: 10px;
}

.card ul {
  list-style: disc;
  padding-left: 20px;
}

/* ======= INTRO SECTION ======= */
.intro h1 {
  color: var(--highlight);
  font-size: 2.2rem;
  margin-bottom: 10px;
  text-align: center;
}

.author-text,
.transcript-text {
  text-align: center;
  font-size: 1.1rem;
  color: #f44336;
}

/* ======= IMAGES ======= */
.banner-img,
.content-img {
  width: 100%;
  border-radius: 8px;
  margin: 10px 0;
}

/* ======= YOUTUBE EMBED ======= */
iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  margin-top: 15px;
}

/* ======= LEFT SECTION ======= */
.left-section {
  position: absolute;
  top: 60px;
  left: 5px;
  width: 15%;
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  z-index: 1;
}

.new-sections {
  position: relative;
  margin-top: 20px;
}

/* ======= BOTTOM SECTIONS ======= */
.bottom-sections {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.bottom-sections .card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  margin: 0;
  width: 48%;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.bottom-sections .card h2 {
  color: var(--highlight);
  margin-bottom: 10px;
}

/* ======= FOOTER ======= */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--text-color);
  text-align: center;
  padding: 50px;
  margin-top: 40px;
}

/* ======= RESPONSIVE DESIGN ======= */

/* For tablets and below */
@media (max-width: 992px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-buttons {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    gap: 8px;
  }

  .left-section {
    position: relative;
    width: 100%;
    top: auto;
    left: auto;
    margin-bottom: 20px;
  }

  .bottom-sections {
    flex-direction: column;
    gap: 20px;
  }

  .bottom-sections .card {
    width: 100%;
  }
}

/* For phones and small screens */
@media (max-width: 576px) {
  .intro h1 {
    font-size: 1.6rem;
  }

  .author-text,
  .transcript-text {
    font-size: 1rem;
  }

  .card {
    padding: 15px;
    margin: 15px 10px;
  }

  .site-header,
  .site-footer {
    padding: 20px;
  }

  .nav-buttons button,
  #theme-toggle {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: var(--button-bg);
  color: var(--button-text);
  padding: 10px 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--card-bg);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  min-width: 160px;
  z-index: 1;
  border-radius: 5px;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 12px 16px;
  display: block;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: var(--highlight);
  color: var(--button-text);
}

/* Ensure the GIF scales down on smaller screens */
@media (max-width: 576px) {
  .content-img {
    width: 100%;  /* Makes the image fit the screen width */
    height: auto; /* Maintains aspect ratio */
  }
}