/* Import Fonts */
@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Text:ital,wght@0,300..700;1,300..700&display=swap");
/* Reset some default browser styling */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Red Hat Text", Arial, sans-serif;
  font-weight: 500;
}

/* Nav bar styling */
.navbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #1a1a1a;
  color: white;
  padding: 15px 20px;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}
.navbar nav a:active {
  background-color: rgb(249, 93, 3);
  transform: scale(0.98);
}

.navbar nav a:focus {
  outline: 2px solid #ffffff;
  background-color: rgba(255, 255, 255, 0.2);
}
.navbar .logo {
  width: 40px;
  height: auto;
  margin-right: 20px;
}

.navbar nav {
  flex-grow: 1;
}

.navbar nav ul {
  list-style-type: none;
  display: flex;
  gap: 20px;
  margin: 0;
}

.navbar nav a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding: 8px 12px;
}

.navbar nav a:hover {
  background-color: hsl(23, 100%, 48%); /* Accent color */
  border-radius: 5px;
}

.navbar nav ul li:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  padding-right: 15px;
}
/* Content */
.content {
  height: auto;
  padding: 20px;
  background-color: hsl(
    23,
    100%,
    48%
  ); /* good to keep the Accent color and background color the same */
}

.About-wrapper {
  background-color: rgba(0, 0, 0, 0.4);
  color: rgb(242, 235, 235);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.About-wrapper h1::before {
  content: "★ ";
  color: rgb(249, 93, 3);
}

.About-wrapper h1 {
  text-align: center;
  text-decoration: underline;
  text-decoration-color: rgb(249, 93, 3);
  color: #1a1a1a;
}

.About-wrapper h1::after {
  content: " ★";
  color: rgb(249, 93, 3);
}

.About-wrapper p {
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

.content-wrapper-Goku,
.content-wrapper-Vegeta,
.content-wrapper-Gohan,
.content-wrapper-Piccolo,
.content-wrapper-Frieza {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 40px;
}

.content-wrapper-Goku > :first-child {
  border: 2px solid rgb(249, 93, 3);
  padding: 10px;
}

.content-wrapper-Frieza > :last-child {
  border: 2px solid rgb(249, 93, 3);
  padding: 10px;
}

.reverse-layout {
  flex-direction: row-reverse;
}

/*Text content*/
.text-content:hover {
  background-color: rgba(0, 0, 0, 0.5);
  transform: scale(1.02);
}
.text-content {
  flex: 1;
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.text-content h2 {
  font-size: 24px;
  color: rgb(21, 21, 244);
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
  text-decoration: underline;
}

.text-content p {
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}
/*Image styling*/
.image-content-Goku img,
.image-content-Vegeta img,
.image-content-Frieza img {
  max-width: 200px;
  height: 250px;
  border-radius: 8px;
}
.image-content-Gohan img {
  max-width: 200px;
  max-height: 250px;
  border-radius: 8px;
}
.image-content-Piccolo img {
  max-width: 200px;
  max-height: 250px;
  border-radius: 8px;
  justify-content: center;
}

.mobile-image-content {
  display: none;
}

/* Media query for mobile screens. */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    padding: 10px;
  }

  .navbar nav ul {
    flex-direction: row;
    gap: 10px;
  }

  /* Tailor make style for mobile devices */
  .content-wrapper-Goku,
  .content-wrapper-Vegeta,
  .content-wrapper-Gohan,
  .content-wrapper-Piccolo,
  .content-wrapper-Frieza {
    flex-direction: column;
    padding: 5px;
  }

  .text-content {
    padding: 10px;
  }

  .image-content-Goku img,
  .image-content-Vegeta img,
  .image-content-Gohan img,
  .image-content-Piccolo img,
  .image-content-Frieza img {
    display: none;
  }

  .mobile-image-content {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-image-content img {
    max-width: 200px;
    height: 250px;
    border-radius: 8px;
  }

  .footer-content {
    flex-direction: column;
    gap: 10px;
  }

  /* To get ride of right boarder for mobile*/
  .navbar nav ul li:not(:last-child){
    border-right: none;
    padding-right: 0;
  }
}
@media (max-width: 450px) {
  /* Navbar adjustments */
  .navbar {
    flex-direction: column;
    padding: 10px;
  }

  .navbar nav ul {
    flex-direction: column;
    gap: 5px;
  }

  /* Reduce font sizes */
  .navbar nav a {
    font-size: 16px;
    padding: 6px 10px;
  }

  /* Make text-content sections fit better */
  .text-content {
    padding: 15px;
    font-size: 14px;
    line-height: 1.4;
  }

  /* Reduce padding for content sections */
  .content-wrapper-Goku,
  .content-wrapper-Vegeta,
  .content-wrapper-Gohan,
  .content-wrapper-Piccolo,
  .content-wrapper-Frieza {
    padding: 10px;
    flex-direction: column; /* Stack image and text */
  }

  /* Scale images to fit smaller screens */
  .image-content-Goku img,
  .image-content-Vegeta img,
  .image-content-Frieza img {
    max-width: 100%;
    height: auto;
  }

  .image-content-Gohan,
  .image-content-Piccolo {
    max-width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Adjust About section */
  .About-wrapper {
    padding: 15px;
    font-size: 14px;
  }
}

.footer {
  background-color: #1a1a1a;
  color: white;
  padding: 20px;
}

.footer-content {
  display: flex;
  justify-content: center;
  gap: 20px;
}
