* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;

    font-family: "Trebuchet MS", Arial, sans-serif;
    line-height: 1.6;

    color: #315f7c;
    background-color: #fffdf6;
}


/* Navigation */

nav {
    width: 100%;
    min-height: 65px;

    display: flex;
    align-items: center;

    padding: 0 30px;

    background-color: #70b7df;
    border-bottom: 3px solid #7fbf91;
    box-shadow: 0 3px 0 #d9f1df;
}

nav ul {
    margin: 0;
    padding: 0;

    list-style: none;

    display: flex;
    align-items: center;
    gap: 12px;
}

nav li {
    margin: 0;
}

nav a {
    display: block;

    padding: 10px 16px;

    color: white;
    text-decoration: none;

    font-size: 1rem;
    font-weight: bold;

    border-radius: 18px;
}

nav a:hover {
    background-color: #fffdf6;
    color: #5f9f76;
}


/* Mobile menu */

.menu-button {
    display: none;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;

    width: 250px;
    height: 100vh;

    margin: 0;
    padding: 15px;

    background-color: rgba(112, 183, 223, 0.96);

    border-left: 3px solid #7fbf91;

    display: none;
    flex-direction: column;
    align-items: flex-start;

    z-index: 1000;
}

.sidebar li {
    width: 100%;
}

.sidebar a {
    width: 100%;
}


/* Page */


header > h1 {
    width: min(1050px, 88%);

    margin: 35px auto 10px auto;

    font-family: Georgia, serif;
    font-size: 2.4rem;

    color: #5f9f76;

    text-shadow: 2px 2px #cce9f7;
} 

main {
    width: min(1050px, 88%);
    margin: 0 auto;
}

section {
    margin-bottom: 80px;
}


/* Hero */

#hero {
    margin-top: 20px;
}

.hero-content {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 45px;

    max-width: 900px;

    margin: 0 auto;
    padding: 25px 0 45px 0;
}

.hero-text {
    flex: 1;
    max-width: 500px;
}

.hero-text h2 {
    margin: 0;

    font-family: Georgia, serif;
    font-size: 1.65rem;
    line-height: 1.45;

    color: #397fa6;
}

.hero-image {
    flex-shrink: 0;
}

.hero-image img {
    width: 350px;
    height: auto;

    display: block;

    padding: 7px;

    background-color: white;

    border: 3px solid #7fbf91;
    border-radius: 10px;

    box-shadow:
        7px 7px 0 #bce4f5,
        10px 10px 0 #d9f1df;
}


/* Section headings */
#future-work h2,
#projects h2,
#about h2,
#contact h2 {
    display: inline-block;

    margin-bottom: 30px;
    padding: 7px 18px;

    font-family: Georgia, serif;
    font-size: 2rem;

    color: white;
    background-color: #8fcfa3;

    border: 2px solid #5f9f76;
    border-radius: 20px;

    box-shadow: 4px 4px 0 #b8dfef;
}


/* Projects */

article {
    margin-bottom: 75px;
}

article h3 {
    margin-bottom: 15px;

    font-family: Georgia, serif;
    font-size: 1.45rem;
    font-style: italic;

    color: #397fa6;
}

article p {
    max-width: 900px;

    margin-top: 0;

    text-align: left;

    color: #485d69;
    font-size: 1rem;
}


/* Slideshow */

.slideshow-group {
    max-width: 540px;

    margin: 35px auto;
}

.slideshow-container {
    position: relative;

    width: 100%;

    padding: 8px;

    background-color: white;

    border: 3px solid #7fbf91;
    border-radius: 12px;

    box-shadow:
        7px 7px 0 #bce4f5,
        10px 10px 0 #d9f1df;

    overflow: hidden;
}

.slides {
    display: none;
    padding-bottom: 30px
}

.slides img {
    display: block;

    width: 100%;
    max-height: 430px;

    object-fit: contain;

    margin: 0 auto;

    border-radius: 5px;
}


/* Slideshow arrows */

.prev,
.next {
    cursor: pointer;

    position: absolute;
    top: 50%;

    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    padding: 0;

    border: 2px solid white;
    border-radius: 50%;

    background-color: rgba(95, 159, 118, 0.9);

    color: white;

    font-size: 20px;
    font-weight: bold;
}

.prev {
    left: 18px;
}

.next {
    right: 18px;
}

.prev:hover,
.next:hover {
    background-color: #397fa6;
}


/* Caption */

.text {
    position: absolute;

    bottom: 5px;
    left: 8px;
    right: 8px;

    width: auto;

    padding: 8px 10px;

    background-color: rgba(57, 127, 166, 0.88);

    color: white;

    text-align: center;
    font-size: 0.9rem;

    border-radius: 0 0 5px 5px;
}


/* Number */

.numbertext {
    position: absolute;

    top: 15px;
    left: 15px;

    padding: 5px 9px;

    background-color: #8fcfa3;

    color: white;

    font-size: 0.8rem;

    border-radius: 12px;

    z-index: 1;
}


/* Slideshow dots */

.slideshow-dots {
    margin-top: 18px;

    text-align: center;
}

.dot {
    cursor: pointer;

    display: inline-block;

    width: 13px;
    height: 13px;

    margin: 0 5px;

    background-color: #bce4f5;

    border: 2px solid #5f9f76;
    border-radius: 50%;
}

.dot.active,
.dot:hover {
    background-color: #8fcfa3;
    border-color: #5f9f76;
}


/* About and contact */

#about,
#contact {
    max-width: 800px;
}

#about p,
#contact p {
    color: #485d69;
}


/* Footer */

footer {
    margin-top: 70px;
    padding: 25px;

    text-align: center;

    background-color: #70b7df;

    border-top: 3px solid #7fbf91;

    color: white;
}

footer p {
    margin: 0;
    text-align: center;
}

/* hyperlinks */
a {
    color: #397fa6;
}


/* Mobile */

@media (max-width: 768px) {

    .hide-on-mobile {
        display: none;
    }

    .menu-button {
        display: block;
    }

    nav {
        padding: 0 15px;
    }

    .hero-content {
        flex-direction: column;

        gap: 30px;

        text-align: center;
    }

    .hero-image img {
        width: 230px;
    }

    header > h1 {
        font-size: 2rem;
        text-align: center;
    }

    .hero-text h2 {
        font-size: 1.35rem;
    }

    .slideshow-group {
        max-width: 95%;
    }

    .slides img {
        max-height: 350px;
    }
}