
#intro {
    color: black;
    background-color: var(--light-gold);
    padding: 20px;
    margin-top: 20px;

    border-top: 5px solid var(--dark-red);
    border-bottom: 5px solid var(--dark-red);

    p {
        max-width: 1500px;
        text-align: justify;
        justify-self: center;
    }

    hr {
        border: 2px solid var(--gold);
        max-width: 50%;
        margin: auto;
        margin-top: 0;
        margin-bottom: 0;
        text-align: center;
    }
}

h2 {
    text-align: center;
    margin: 0;
    padding-bottom: 20px;
    font-size: 2rem;
    color: var(--dark-red);
}

.resources-grid {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: center;

    margin: 20px;
    gap: 20px;

    h3 {
        text-align: center;
        margin: 0;
        padding: 20px;
        font-size: 1.3rem;
        background-color: var(--light-gold);
        color: var(--dark-red);

        border-bottom: 5px solid var(--gold);

        border-radius: 20px 20px 0px 0px;
    }

    img {
        display: block;
        max-width: 100%;
        margin: 0;
        padding: 0;
        padding-top: 20px;
    }
}

.outer-content-container {
    padding: 20px;
}

.player-resource {
    background-color: var(--fill-cream);
    height: min-content;
    border-radius: 20px;
    border: 3px solid var(--light-red);

    max-width: 800px;
    width: 800px;

    .content {
        max-height: 2000px;
        overflow: hidden;

        transition: max-height 0.3s ease-in;
    }

    .relock-btn {
        display: block;
    }
}

.player-resource.locked {
    .content {
        max-height: 0px;
        overflow: hidden;

        transition: max-height 0.3s ease-out;
    }

    .relock-btn {
        display: none;
    }
}

.password {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    justify-self: center;

    height: 50px;

    button {
        height: 100%;
        font-family: var(--p-font);
        font-weight: bold;
        padding: 5px;
        height: min-content;
        scale: 1;
    }

    button:hover {
        scale: 1.1;
        border: 2px solid var(--light-red);
        box-sizing: border-box;
    }

    input {
        height: min-content;
        border: 2px solid var(--light-red);
    }

    label {
        font-weight: bold;
    }
}

#combat-ref {
    display: none;
}

#quick-ref {
    p {
        text-align: center;
    }
}

.list-of-links {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 20px;

    a {
        display: block;

        font-size: 1.2rem;
        font-weight: bold;
    }
}

@media (max-width: 850px) {
    .player-resource {
        width: auto;
    }
}

@media (max-width: 500px) {
    .password {
        flex-wrap: wrap;
        height: auto;
        justify-content: center;
    }

    .resources-grid {
        margin-left: 0;
        margin-right: 0;
    }
}