/*while trying to proofread a problem caused by yet another semicolon
gemini suggested this root thing here which I found really helpful.
cutting and pasting codes was a real pain and causing formatting issues 
that made me pull my hair out and realize I absolutely hate coding.
This made it so I could define the color to an easier to remember name. */

:root {
    --charcoal: #1A1A1A;
    --gold: #C5A059;
    --crimson: #8B0000;
    --parchment: #F5F5DC;
    --deep-grey: #2A2A2A;
}

body, html {
    margin: 0;
    padding: 0;
    background-color: var(--charcoal);
    color: var(--parchment);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

.navigation {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-end;
    background-color: var(--crimson);
    border-bottom: 2px solid var(--gold);
}

.navigation li {
    padding: 20px 40px; 
}

.navigation a {
    color: white;
    text-decoration: none;
    text-shadow: 2px 2px 5px black;
    font-size: 32px;
    font-family: "democratica", sans-serif;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease; /*trying to make less robotic */
}

.navigation a:hover {
    color: var(--gold);
    transform: scale(1.2); /* this is broken idk... changes to gold but not scale */
}

#main_container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background-image: url('../img/bg.png'); /* i might kill this*/
    background-size: cover;
    background-position: center; 
    display: flex;
    flex-direction: column;
    gap: 30px; /* this fixed by text stacking too close */
}

.main-title {
    text-align: center;
    padding: 5px 0;
}

.main-title h1 {
    font-size: 62px;
    color: var(--gold);
    margin: 0;
    font-family: "democratica", sans-serif;
    text-transform: uppercase;
    text-shadow: 2px 2px 5px black; /* doesn't show up on bg texture. bg might get removed */
}


/* Ironically calling him a hero because the curators worship the painting.  
However, the dude was a turd IRL. */
#hero_img {
    float: left;
    margin-right: 25px;
    margin-bottom: 15px;
    border: 4px solid var(--crimson);
    max-width: 100%;
}

.ukk {
    font-size: 18px;
    color: white;
    background-color: var(--charcoal);
    padding: 15px;
    border: 2px solid var(--gold);
}

#accordion_section h2 {
    color: var(--gold);
    border-bottom: 2px solid var(--crimson);
}
/* my according was so boring so i'm adding this hover animation
that I ripped it off of a website I liked. */
.accordion dt:hover {
    background-color: #610000; 
}


.accordion dt {
    background-color: var(--crimson);
    color: white;
    padding: 15px;
    font-size: 18px;
    cursor: pointer;
    border: 1px solid var(--gold);
    margin-top: 5px;
}

.accordion dd {
    background-color: var(--deep-grey);
    margin: 0;
    padding: 15px;
    border: 1px solid var(--gold);
    border-top: none;
    display: none; 
}

.footer {
    display: flex;
    justify-content: center;
    padding: 20px;
    margin-top: 10px;
    border-top: 1px solid var(--gold);
    background-color: var(--charcoal);
}

@media (min-width: 770px) {
    #main_container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .main-title {
        width: 100%;
    }
    #king_info {
        flex: 2;

    }
    #accordion_section {
        flex: 1;
    }
    #hero_img {
        max-width: 400px;
        max-height: 900px;

    }
}