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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100dvh;
    background-color: #fffbe6;
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
    color: #3e2f00;
    position: relative;
    overflow-x: hidden;
}

/*Definciones de las particulas*/
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

main {
    width: 100%;
    max-width: 81.25rem;
    display: flex;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-family: 'Montserrat', sans-serif;
    padding: 0 2.5rem;
}

.titles {
    text-align: center;
    margin-top: 5rem;
    font-weight: 800;
    color: #a57600;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.subtitles {
    margin-top: 5rem;
    text-align: center;
}

.intro-text-page {
    display: flex;
    margin-top: 2.5rem;
    gap: 2.5rem;
    align-items: center;
    margin-left: 11.25rem;
}

/*Cofre*/
#chest-img {
    max-width: 15.625rem;
    cursor: pointer;
    flex-shrink: 0;
}

/*Botones de la sección de reservas mundiales*/
.container-btn {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    padding: 2.5rem;
    margin-top: 5rem;
}

#btn-yes {
    padding: 0.625rem 2.5rem;
    margin-right: 1.25rem;
    cursor: pointer;
    border-radius: 0.313rem;
    background-color: #f9a825;
    color: #3e2f00;
    font-weight: bold;
    text-decoration: none;
    box-shadow: rgba(31, 24, 3, 0.24) 0px 6px 8px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    user-select: none;
}

#btn-yes:hover {
    transform: scale(1.5);
    background-color: #ffbd52;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 6px 10px;
}

#btn-no {
    padding: 0.625rem 2.5rem;
    cursor: pointer;
    border-radius: 0.313rem;
    background-color: #c4c4c4;
    text-decoration: none;
    color: rgb(82, 82, 82);
    display: inline-block;
}

#btn-no:hover {
    background-color: #b6b6b6;
}

/*Gráfico*/
.gold-reserves-chart {
    max-height: 100%;
    max-width: 100%;
    height: 28.125rem;
    width: 50rem;
    box-sizing: border-box;
}

.gold-reserves-chart-canvas {
    background-color: white;
    border-radius: 0.625rem;
    padding: 2.5rem;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}


.chart-hide {
    display: none;
}

.chart-show {
    display: flex;
    visibility: visible;
}


/*Video*/

.char-video-container {
    display: flex;
    justify-content: center;
}

.video-hide {
    display: none;
}

.video-show {
    display: flex;
}

#video-container {
    display: flex;
    justify-content: center;
}

#videoMP4 {
    max-width: 100%;
    height: auto;
}

/*Cards de donde se guarda el oro*/

.gold-storage-cards {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    padding: 1.25rem;
}

.gold-storage-cards-country {
    padding: 1rem;
    background-color: #f9a825;
    border-radius: 0.313rem;
    text-align: center;
    cursor: pointer;
    box-shadow: rgba(31, 24, 3, 0.24) 0px 6px 8px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s;
}

.gold-storage-cards-country:hover {
    background-color: #ffbd52;
    transform: scale(1.1);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 6px 10px;
}

/*Modal*/

.gold-storage-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.gold-storage-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2.5rem;
    width: 80%;
    max-width: 25rem;
    border-radius: 0.5rem;
    position: relative;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.modal-title {
    margin-bottom: 0.625rem;
}

.modal-detail {
    color: #f9a825;
}

.modal-description {
    margin-top: 1.25rem;
    font-weight: 500;
}

.gold-storage-modal-close {
    position: absolute;
    right: 1rem;
    top: 0px;
    font-size: 1.875rem;
    cursor: pointer;
    color: #3e2f00;
    transition: transform 0.2s;
}

.gold-storage-modal-close:hover,
.gold-storage-modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.5);
}


/*lluvia de monedas*/

#coin-rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 10;
}

.golde-coin {
    position: absolute;
    top: -1.625rem;
    width: 2.5rem;
    height: 2.5rem;
    background-image: url("../../public/img/round-icons-xmyOuAxAI-E-unsplash.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    animation: rainCoin 10s linear forwards;
    z-index: 10;
}

@keyframes rainCoin {
    to {
        transform: translateY(85vh) rotate(360deg);
        opacity: 0;
    }
}

/*responsible*/


@media (max-width: 400px) {
    .gold-reserves-chart {
        height: 20rem;
        width: 18rem;
    }

    .gold-reserves-chart-canvas {
        padding: 0.3rem;
    }
}

@media (min-width: 400px) and (max-width: 750px) {
    .gold-reserves-chart {
        height: 23rem;
        max-width: 21.625rem;
        padding: 0;
    }

    .gold-reserves-chart-canvas {
        padding: 0.3rem;
    }
}

@media (max-width: 750px) {

    main {
        padding: 0 1rem;
    }

    .intro-text-page h2 {
        font-size: 1rem;
    }

    .intro-text-page {
        margin-left: 0;
        margin: 2.5rem;
        flex-direction: column;
        gap: 0px;
    }

    .subtitles {
        margin-top: 2.5rem;
        font-size: 1.3rem;
    }

    #chest-img {
        max-width: 150px;
        cursor: pointer;
        flex-shrink: 0;
    }

    .container-btn {
        margin-top: 2.5rem;
        gap: 0.8rem;
    }

    .gold-storage-cards {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 2.5rem;
        gap: 1.5rem;
    }
}

@media (min-width: 750px) and (max-width: 825px) {
    .intro-text-page h2 {
        font-size: 1.2rem;
    }

}