/* --- ESTILOS DEL HEADER Y EL FOOTER */
@import url("../../../GlobalElements/HeaderFooter/css/stylesHeaderFooter.css");
@import url("../../../GlobalElements/Sponsors/css/styles_sponsors.css");
/* ---------------------------------------------------------------- */

/* Agrego otros estilos necesarios para el header */

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

body {
    font-family: 'Nunito', 'Roboto', sans-serif;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: #000;
}

.line {
    border-bottom: 2px solid #736B02; 
}

.wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; 
    background-color: #F4F4F4;
}

.rollcast_title {
    font-size: 3rem;
    margin-top: 2rem;
    text-align: center;
}
  
.container-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-direction: row;
}
  
main {
    width: 100%;
    height: 100%;
    margin-bottom: 6rem;
}
  
main .main-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
}

.rollcast {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
}

.rollcast .container {
    width: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2.5rem;
    justify-content: center;
    align-items: center;

}

.rollcast-content {
    max-width: 321px;
    max-height: 484px;
    width: 100%;
    height: 484px;
    background-color: #D9D9D9;
    margin: auto;
}

figure {
    max-width: 350px;
    max-height: 484px;
    width: 100%;
    height: 100%;
}

.rollcast-img {
    max-width: 350px;
    max-height: 484px;
    width: 100%;
    height: 100%;
}

/* Styles of loading screen of rollcast flipbook */
#loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.79);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    color: white;
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
}

.spinner {
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

#load-text {
    text-align: center;
}

.load-text {
    text-align: center;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media screen and (min-width: 2000px) {
    .main-container .rollcast .container {
        grid-template-columns: repeat(4, 1fr);
    }

    .rollcast-img {
        max-width: 350px;
        width: 350px;
    }
}

@media screen and (min-width: 1750px) {
    .rollcast-content {
        max-width: 350px;
        max-height: 484px;
        width: 350px;
        height: 484px;
        background-color: #D9D9D9;
        margin: auto;
    }

    .rollcast .container {
        grid-template-columns: repeat(3, 1fr);
    }

    .rollcast-img {
        max-width: 350px;
        width: 350px;
    }
}

@media screen and (max-width: 1750px) {
    .rollcast-content {
        max-width: 350px;
        max-height: 484px;
        width: 350px;
        height: 484px;
        background-color: #D9D9D9;
        margin: auto;
    }

    .rollcast .container {
        grid-template-columns: repeat(3, 1fr);
    }

    .rollcast-img {
        max-width: 350px;
        width: 350px;
    }
}

@media screen and (max-width: 1334px) {
    .rollcast .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 1140px) {
    .wrapper .container-wrapper {
        flex-direction: column;
	    }

    .wrapper .statute_title {
        margin: 2rem 0;
    }
    
      .wrapper .container-wrapper main {
        width: 100%;
    }
}
  
@media screen and (max-width: 760px) {
    .rollcast .container {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (max-width: 550px) {
    .wrapper .rollcast_title {
        font-size: 2rem;
    }

    .rollcast .container {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (max-width: 330px) {
    .rollcast-content {
        max-width: 300px;
        width: 100%;
    }

    figure {
        width: 100%;
        max-width: 300px;
    }

    .rollcast-img {
        object-fit: fill;
        max-width: 100%;
        width: 100%;
    }
}

/* Estilos y mediaqueries del buscador */
.modal-searchbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
  }
  
  .modal-search {
    background: none;
    border: none;
    width: 100%;
    margin-left: 10px;
  }
  
  .results-container,
  .modal-results-container {
    width: 100%;
    max-width: 1265px;
  }
  
  .results-container .section-title,
  .modal-results-container .section-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1.8rem;
  }
  
  .modal-content .container {
    max-width: 1265px;
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.56rem;
  }
  
  .search-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
  
    border-radius: 15px;
    background: #F1F1F1;
    box-shadow: 0px 2px 10px 1px rgba(0, 0, 0, 0.25);
    border: none;
    width: 100%;
    padding: .44rem .63rem;
  }
  
  .modal-content {
    background: rgba(241, 241, 241, 0.95);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 1536px;
    max-height: 80%;
    width: 100%;
    overflow: auto;
    position: relative;
    display: flex;
    justify-content: flex-start;;
    align-items: center;
    flex-direction: column;
    margin: 2rem;
    gap: 3.75rem;
    position: relative;
  }
  
  .modal-content .modal-list {
    padding: 0;
    margin: 0;
    margin-left: 1rem;
  }
  
  .modal-content .modal-list .modal-link {
    color: #000;
    text-decoration: none;
    transition: .2s all ease-in-out;
  }
  
  .modal-content .modal-list .modal-link:hover {
    color: #736b02;
    transition: .2s all ease-in-out;
  }
  
  .modal-content .modal-list li {
    margin-bottom: 5px;
    color: #000;
    font-family: 'Nunito', sans-serif;
  }
  
  .item-title {
    text-decoration: underline;
  }
  
  .modal-content button.close-button {
    padding: 5px 10px;
    cursor: pointer;
    background-color: none;
    border: none;
    border-radius: 4px;
    font-size: 25px;
    color: #FF0000;
    background: none;
    margin-left: 2.5rem;
    transition: .2s all ease-in-out;
  }
  
  .modal-content button.close-button:hover {
    transition: .2s all ease-in-out;
    color: #d30303;
  }
  
  .scroll-to-top {
    position: fixed;
    bottom: 120px;
    /* right: 30px; */
    z-index: 1000;
    padding: 10px 15px;
    background-color: #736b02;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 25px;
    transition: .2s all ease-in-out;
    border-radius: 100%;
    box-shadow: 10px 10px 39px -2px rgba(0,0,0,0.25);
    -webkit-box-shadow: 10px 10px 39px -2px rgba(0,0,0,0.25);
    -moz-box-shadow: 10px 10px 39px -2px rgba(0,0,0,0.25);
    width: 50px;
    height: 50px;
  }
  
  .scroll-to-top:hover {
    background-color: #554f02;
    transition: .2s all ease-in-out;
  }
  
  /* RESPONSIVE */
  @media screen and (max-width: 1412px) {
    .results-container, .modal-results-container {
        max-width: 1240px;
        margin-left: 1rem;
    }
  }
  @media screen and (max-width: 800px) {
    .modal-content {
        gap: 1.8rem;
    }
  
    .modal-content .container {
        margin-top: 1.2rem;
    }
  }
  
  @media screen and (max-width: 380px) {
    .modal-content button.close-button {
        margin-left: .5rem;
        font-size: 20px;
    }
  
    .results-container .section-title,
    .modal-results-container .section-title  {
        font-size: 1.4rem;
    }
}

.modal-searchbox {
  display: none;
}

.flipbook-container {
    display: none; /* Cambiar a 'block' cuando se muestre el flipbook */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.flipbook {
    margin-top: 4rem;
    width: 800px;
    height: 600px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    overflow: hidden; /* Asegura que no haya desbordamiento */
    position: relative; /* Permite la posición del botón de cierre */
}

#closeFlipbook {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: red;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}