:root {
    --bg-color: #90aead;
    --primary-color: #e65433;
    --primary-variant: #f76443;
    --secondary-color: #244855;
    --tertiary-color: #fbe9d0;
    --fourth-color: #874f41;
    --text-color: #ffdfb3;
    --written-font: "Sour gummy", sans-serif;
    --neutral-font: "Play-fair", sans-serif;
}

html {
    scroll-behavior: smooth;
    /* magic smooth scrolling */
}

header {
    display: flex;
    background-color: var(--secondary-color);
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.title {
    font-family: "Monoton", sans-serif;
    font-weight: 400;
    font-style: normal;
    justify-content: left;
    padding-left: 10px;
    color: var(--tertiary-color);
    width: 50%;
}

nav a {
    font: 0.5rem;
    font-size: 0.9rem;
    margin-left: 0.55rem;
    margin-right: 0.3rem;
    text-decoration: none;
    color: var(--tertiary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}


body {
    display: flex;
    font-family: "Play-fair", sans-serif;
    flex-direction: column;
    background-color: var(--bg-color);
    margin-top: 0;
}

main {
    font-size: 1rem;
}

.back-button {
    padding: 0.5rem 1rem;
    font-size: .8rem;
    font-family: var(--neutral-font);
    background-color: var(--tertiary-color);
    text-decoration: none;
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 2rem;
    border: 2px solid var(--fourth-color);
}

.back-button:hover {
    background-color: var(--primary-color);
    color: var(--tertiary-color);
}

#intro {
    display: flex;
    font-family: var(--written-font);
    font-size: 1.7rem;
    height: 80%;
    width: 80%;
    padding-left: 10%;
    justify-content: center;
    align-items: center;
    color: var(--tertiary-color);
    margin-bottom: 0.5rem;
}

.scroll-buttons {
    display: flex;
    /* justify-content: center; */
    flex-direction: column;
    align-items: center;
}

.scroll-button {
    display: flex;
    justify-content: center;
    width: 80%;
    max-width: 750px;
    padding: 0.5rem 1rem;
    font-size: 2.5rem;
    font-family: var(--written-font);
    background-color: var(--tertiary-color);
    text-decoration: none;
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 2rem;
    border: 2px dashed var(--fourth-color);
}

.scroll-button:hover {
    background-color: var(--primary-color);
    color: var(--tertiary-color);
}

@media screen and (min-width: 1220px) {
    .top-page {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-around;
    }

    .scroll-buttons {
        margin-top: 3rem;
        margin-left: 5rem;
    }

    .scroll-button {
        width: 110%;
    }

    #intro {
        width: 40%;
        margin-right: 3rem;
        margin-top: 1rem;
    }
}

.section-header {
    font-family: var(--written-font);
    color: var(--secondary-color);
    font-size: 3.75rem;
}

.section-text {
    font-size: 1.4rem;
    font-family: var(--neutral-font);
    color: var(--text-color);
}

.section-subheader {
    font-family: var(--written-font);
    color: var(--secondary-color);
    font-size: 2.4rem;
}

.section-img {
    width: 45%;
    /* responsive */
    max-width: 350px;
    /* optional: limit size */
    height: auto;
    border-radius: 12px;
    /* soft rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* gentle shadow */
    display: block;
    /* center it */
}

.section {
    margin-top: 10rem;
}

.info-link {
    text-decoration: none;
    color: var(--fourth-color);
    font-weight: bold;
    transition: color 0.3s ease;
    /* transition: font-weight 0.3s ease; */
}

.info-link:hover {
    color: var(--primary-variant);
}

footer {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}