/*-------CSS HEX---------*/
:root {
  --plum-deep: #592851;
  --berry-dark: #732F6E;
  --mint-gray: #A8BFBB;
  --sage-green: #86A694;
  --rose-dust: #BFAAAA;
  --cream: #FDF6E2;
  --mustard: #FBCB66;
  --black: #000000;
  --grey-shadow: #949494;
}



/*-------ESTILOS GENERALES---------*/
body {background-color: var(--mint-gray);
  font-weight: 300;
  color: var(--plum-deep);
      margin: 0;
    padding: 0;

}

h2, .p_short {
    text-align: center;
}

/*----------INTRO STARWARS---------*/
.intro-starwars h2 {
    padding-top: 3em;
}

.intro-starwars {
    position: relative;
    color: var(--mustard);
    max-height: 25em;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    padding: 30px 30px 30px 30px;
    margin: 5%;
}

.background-gif {
    display: none;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    object-fit: cover;
}

.audio-toggle-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    z-index: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.audio-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.audio-toggle-btn img {
    width: 24px;
    height: 24px;
}

.content-overlay {
    position: relative;
    z-index: 1;
    text-align: justify;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.5); 
    border-radius: 10px;
    max-width: 700px;
    height: 1200px;
    transform: perspective(200px) rotateX(14deg);
    animation: intro 60s linear infinite;
}

@keyframes intro {
    0% {
        transform: perspective(200px) rotateX(11deg) translateY(600px);
    }
    60% {
        opacity: 0.5;
    }
    100% {
        transform: perspective(200px) rotateX(20deg) translateY(-1000px);
        opacity: 0;
    }
}

#common-footer {
  margin: 0 20px; /* Añade márgenes laterales al footer */
}

/*----------------QUIZ------------------*/

.question {
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  
}

.question h3 {
  margin-top: 0;
}

.options label {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
  font-family: "Baloo 2", sans-serif;
  font-size: 18px;
  font-weight: lighter;
}

.result {
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
}

.btn-container {
  position: relative;
  width: 20%;
  height: 50px;
  border: 2.5px solid var(--black);
  border-radius: 50px;
  box-shadow: 4px 4px 0 var(--grey-shadow);
  cursor: pointer;
  overflow: hidden;
  background-color: transparent;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  margin-top: 30px;
  margin: 30px auto 0;
}

.btn-fill {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--mustard);
  border-radius: 50px;
  top: 10px;
  left: 0;
  transition: top 0.5s ease;
  z-index: 0;
  inset: 10px 0 0 0;
}

.btn-text {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Baloo 2", sans-serif;
  font-size: 22px;
  font-weight: bold;
  color: black;
}

.btn-container:hover .btn-fill {
  top: 0px;
}

.btn-container:hover {
  transform: translateY(-5px);
}

/*---------------------CUSTOM ALERT-------------------*/
.swal-custom-popup {
  font-family: "Baloo 2", sans-serif;
  border-radius: 50px;
}

.my-custom-confirm {
  
  border: 2.5px solid black;
  border-radius: 50px;
  box-shadow: 4px 4px 0 var(--grey-shadow);
  background-color: var(--mustard);
  font-family: "Baloo 2", sans-serif;
  font-size: 22px;
  font-weight: bold;
  color: black;
  padding: 10px 20px;
}


/* -----------RESPONSIVE DESIGN------------ */
@media (max-width: 768px) {
  
  .background-video {
        display: none !important;
    }

.intro-starwars::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('../src/images/assets-historia/video/mobile_space.gif');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: -1;
    }

        .background-gif {
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        transform: translate(-50%, -50%);
        z-index: -1;
        object-fit: cover;
    }

    .intro-starwars {
        width: 90%;
        height: 400px;
        margin: 15px auto;
        padding: 15px;
        border-radius: 30px;
        overflow: hidden;
    }

    .intro-starwars h2 {
    padding-top: 1em;
    font-size: 24px;
  }

    
    .content-overlay {
        padding: 1rem;
        max-width: 95%;
        height: 800px;
        font-size: 14px;
       line-height: 1.4;
    }
    
       p {
        font-size: 16px;
    }

  .info-section {
    padding: 20px 15px;
    margin: 0 10px;
  }

      #common-footer {
    margin: 30px 20px 5px 20px;
  }

    /* Responsive.button*/
    .btn-container {
    width: 50%; 
    min-width: 150px;
    height: 55px; 
    }

    .btn-text {
    font-size: 18px;
    padding: 0 10px;
  }}