* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: Arial, sans-serif;
}

/* Start Screen */
#startScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

#startImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

#startButton {
    position: relative;
    z-index: 1;
    padding: 15px 30px;
    font-size: 1.5rem;
    background-color: #4a4a8c;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
    opacity: 0.9;
}

#startButton:hover {
    background-color: #383878;
}

/* Carousel */
.carousel {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slide {
    display: none;
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    display: block;
}

.caption {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 80%;
}

.caption h2 {
    margin-bottom: 10px;
    font-size: 2rem;
}

.caption p {
    font-size: 1.2rem;
}

/* Nav Buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 15px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    border: none;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.5);
    user-select: none;
    transition: 0.3s;
    z-index: 5;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}
/* Mobile adjustments */
@media (max-width: 768px) {
    .caption {
        bottom: 30px;
        padding: 15px 20px;
        max-width: 90%;
    }

    .caption h2 {
        font-size: 1.5rem;
    }

    .caption p {
        font-size: 1rem;
    }

    #startButton {
        font-size: 1.2rem;
        padding: 10px 20px;
    }

    .prev, .next {
        font-size: 20px;
        padding: 10px;
    }
}

#essay {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    line-height: 1.6;
    font-size: 1.1rem;
}

#essay h2 {
    text-align: center;
    margin-bottom: 20px;
}

footer {
    text-align: center;
    margin: 50px 0;
}

footer a {
    color: #4a4a8c;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

#essayLink {
    position: absolute;
    bottom: 10px;
    right: 20px;
    background-color: rgba(0,0,0,0.6);
    padding: 10px 20px;
    border-radius: 10px;
}

#essayLink a {
    color: white;
    font-size: 1rem;
    text-decoration: none;
}

#essayLink a:hover {
    text-decoration: underline;
}

/* Essay page upgrades */
body#essayPage {
    background: linear-gradient(to bottom, #f5f7fa, #d7dde8);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    background-color: #4a4a8c;
    color: white;
    padding: 20px 0;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

main#essay {
    background-color: white;
    margin: 30px 20px;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 900px;
    width: 90%;
    font-size: 1.1rem;
    line-height: 1.7;
}

main#essay h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #333;
}

main#essay h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #4a4a8c;
}

footer {
    margin: 20px 0;
    text-align: center;
}

footer a {
    color: #4a4a8c;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

/* Link colors inside references */
main#essay a {
    color: #5555aa;
}
main#essay a:hover {
    color: #333388;
}
