* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/*NAVIGATION STYLE*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 1rem;
    color: white;
    border-bottom: black 2px solid;
}

.menu-icon {
    font-size: 2rem;
    cursor: pointer;
    color: black;
}

.brand-title a {
    font-size: 2rem;
    font-variant: small-caps;
    color: black;
    font-weight: 700;
    text-decoration: none;
}

.blue{
color:#47a0ff;
}

/* The side navigation menu */
.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: white;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidenav a {
    padding: 16px 15px;
    text-decoration: none;
    font-size: 1.5rem;
    font-variant: small-caps;
    text-align: center;
    color: black;
    display: block;
    transition: 0.3s;
    font-weight: 500;
}

#special{
  background: #1c89ff;
  color: white;
  width: 60%;
  margin: 0 auto;
  padding: 15px;
  border-radius: 5px;
  transition: all 1s;
}

#special:hover{
   background: #124c86;
}

.sidenav a:hover {
    color: #027bfd;
}

.sidenav .closebtn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    background: transparent;
    border: none;
}

/* overlay */
.overlay {
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
    display: none;
}

/*-----Universe------*/

.universe{
   padding-top: 50px;
   
}

header{
  font-size: 2.1em;
  letter-spacing: 1px;
  margin: 0 auto;
  padding-bottom: 10px; 
  text-align: center;
  font-weight: 700;
}

.blue{
color: #47a0ff;
}

.text{
  font-size: 1.2em;
  margin-bottom: 35px;
  line-height: 1.6;
  font-family: 'Tahoma', sans-serif;
  width: 70%;
  margin: 0px auto;
}


/* Section container */
.workout-section {
  padding: 20px;
  max-width: 1300px;
  margin: auto;
}

/* Section Titles */
.workout-section > h3 {
  font-size: 1.5em;
  margin-bottom: 20px;
  letter-spacing: 1px;
  color: black;
  text-align: center;
}

/* Characters flex container */
.character-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

/* Character card styling */
.character {
  flex: 1 1 calc(23% - 15px); /* 4 inline with gap on desktop */
  max-width: calc(23% - 15px);
  text-align: center;
  transition: transform 0.3s ease;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
}

.character:hover {
  transform: scale(1.04);
}

.character img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 10px 10px;
}

.name {
  font-family: Arial, Helvetica, sans-serif;
  color: white;
  background-color: black;
  padding: 8px;
  margin: 0;
}

/*BUTTONS STYLE*/

.button-container {
    display: flex;
    justify-content: center;
    gap: 2px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.button {
  padding: 12px 25px;
  font-weight: 600;
  margin: 20px;
  font-size: 1.1em;
  border-radius: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
    
}

.button:hover {
    background-color: transparent;
   color: #027bfd;
   border: 2px solid #027bfd;
}

/*footer*/
footer{
    background-color: white;
    height: auto;
  }

  .footer-content{
   display: flex;
   justify-content: center;
   flex-direction: column;
   padding-top: 10px;
    background-color: #f5f5f5;
  }


  .socials{
   list-style: none;
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 2rem 0 2rem 0;
  }

  .socials li a i{
   margin: 0 15px;
   text-decoration: none;
   color: black;
   font-size: 2rem;
   transition: color .4s ease;
  }

  .footer-bottom{
   background: #000;
   padding: 5px 0;
   text-align: center;
   font-family:'Tahoma', sans-serif;
  }

  .footer-bottom p {
    color:white;
    text-align: center;
    font-size: 16px;
    margin:0 auto;
    padding: 10px;
  }

  .footer-bottom p:hover{
    text-decoration: underline;
  }
  

/*------------Mobile media quaries style------------*/
@media (max-width: 800px) {
  header{
    font-size: 30px;
  }

  .text{
    width: 100%;
    padding: 8px;
  }
}

/*Logo Nav*/
@media (max-width: 700px) {
  .brand-title a {
    font-size: 1.7rem;
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .character {
    flex: 1 1 calc(38% - 15px);
    max-width: calc(38% - 15px);
  }
}

/* Mobile: 1 inline */
@media (max-width: 576px) {
  .character {
    flex: 1 1 78%;
    max-width: 70%;
  }
}

