/*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); 
}

#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; 
    background-attachment: fixed;
    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;
}


#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(--crimson);
}

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

    }
    #accordion_section {
        flex: 1;
    }
 
.zoom {
    display: inline-block;
    position: relative;
}

.prince-image {
    position: relative;
    border: 4px solid var(--crimson); 
    overflow: hidden; 
}

#hero_img {
    max-width: 100%; 
    display: block; 
}

.zoomed-image {
    width: 600px;
    height: 400px;
    background-position: 0 0;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 50; 
    pointer-events: none; 
    border: 2px solid var(--gold); 
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.7);
    opacity: 0; 
    transition: opacity 0.2s; 
}

.zoomer {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 100px;
    border: 1px solid white;
    background-color: rgba(255, 255, 255, 0.2); 
    pointer-events: none;
    opacity: 0; 
    transition: opacity 0.2s;
}
}