* {
    box-sizing: border-box; /* this means that when you define the width and height of a box, it will INCLUDE padding. */
    color: #e8e8e8;
}

body {
    margin: 0;
    font-family: Garamond, serif;
    background-color: #040529;
    background-image: url('pix_n_clipz/beautiful3.png');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2 {
    font-weight: bold;
    margin: 0 0 10px 0;
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.875rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.divider {
    background-color: #3f0d4d;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 40px;
}

a,
a:visited,
a:hover,
a:active {
    text-decoration: none; 
}



/* v main content */
.introduction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    padding: 20px;
}

.introduction__row {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.image-sit, .image-stand {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: -300px;
    z-index: 1;
}

.introduction__box {
    background-color: #3f0d4d;
    padding: 30px;
    padding-top: 22px;
    border-radius: 12px;
    font-size: 1.1rem;
    max-width: 600px;
    width: 100%;
    margin: 15px 0;
    position: relative;
    z-index: 2;
}

.introduction__box--picture {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.introduction__box--picture img {
    max-width: 100%;
    height: auto;
}



/* v navigation buttons v */
.navigation_buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 30px 20px;
}

.navigation_buttons div {
    background-color: #3f0d4d;
    border-radius: 12px;
    font-size: 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.navigation_buttons div a {
    display: block;
    padding: 12px;
    color: #e8e8e8;
    text-decoration: none;
}

.navigation_buttons div:hover {
    background-color: #9835b4;
    transform: scale(1.03);
}



/* v logo v */
.logo img {
    display: block;
    margin: 20px auto;
    max-width: 150px;
    height: auto;
}



/* v footer v */
.footer {
    position: relative;
    width: 100%;
    margin-top: auto; /* pushes footer to bottom if page content is short */
}

.footer img {
    display: block;
    width: 100%;
    height: auto;
}

.footer__text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    text-align: center;
    white-space: nowrap;
    text-shadow: 
        0 0 5px rgba(232, 232, 232, 0.8),
        0 0 10px rgba(232, 232, 232, 0.8),
        0 0 20px rgba(232, 232, 232, 0.8);
}



/* v this is the desktop version v */
@media (min-width: 768px) {
    .navigation_buttons {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .navigation_buttons div {
        max-width: 250px;
        width: 100%;
    }

    .logo img {
        max-width: 200px;
        max-height: 200px;
        margin: 20px 0 0 40px;
    }

    /* v CENTERED LAYOUT WITH FLOATING RUNELINGE v*/
    .introduction {
        max-width: 1200px;
        margin: 0 auto;
        padding: 50px 0 100px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 120px;          /* vertical whitespace between the two boxes */
    }

    .introduction__row {
        display: flex;
        justify-content: center; /* center of the box is centered with the screen width */
        width: 100%;
        position: relative;      /* anchor for the absolute images */
    }

    .image-sit {
        position: absolute;
        width: auto;
        height: auto;
        
        /* v this is relative to the center line from the comment above v */
        right: 50%;             
        margin-right: 180px;    /* pushes the character left of the center box */
        top: -30px;             /* pushes the runeling to sit nicely next to the box */
        z-index: 1;
    }

    .image-stand {
        position: absolute;
        width: auto;
        height: auto;
        
        
        left: 50%;              
        margin-left: 140px;
        top: -115px;             /* adjusts so the standing runeling's elbow is ligned up with the box edge */
        z-index: 1;
    }

    .introduction__box {
        margin: 0;             /* resets mobile margins */
        width: 600px;          /* locks the box size so layouts stay consistent */
        z-index: 2;
    }
}