/* Desktop */

* {
    margin: 0; padding: 0; box-sizing: border-box;
}

body {
    background-color: #3b4b2b;
    color: #f5f5f5;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 10pt;
    line-height: 1.7;
}

body p {
    max-width: 75ch;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    border: 4px solid #222;
    text-align: center;
    font-family: "Playwrite MX", cursive;
    background-color: #20737c;
    margin-bottom: 12px;
}

h1, h2 {
    color: #ffffff;
    font-weight: bold;
}

h1 span {
    color: #f4c542;
    text-shadow: 1px 2px 2px #222;
    text-transform: lowercase;
    letter-spacing: 8px;
}

a {
    color:#ffe006
}

nav {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px;
}

nav a {
    color:#f5f5f5;
    text-decoration: none;
    font-weight: bold;
    font-size: 16pt;
    display: block;
    padding: 10px 16px;
    margin-top: 12px;
    background-color: #20737c;
    border-radius: 6px;
    transition: 0.3s ease;
}

nav a:hover {
    color: #ff0;
    background-color: #2895a1;
    transform: translateY(-3px);
}

.hero {
    width: 100%;
    height: 500px;
    background-image: 
    linear-gradient(rgb(0,0,0,0.5), rgb(0,0,0,0.5)),
    url(../images/web-dev.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}

.heroText {
    color: white;
    padding: 20px;
}

.heroText h2 {
    font-size: 40px;
    margin-bottom: 12px;
    text-shadow: 2px 2px 5px #000;
}

.heroText p {
    font-size: 16pt;
    text-shadow: 2px 2px 5px #000;
}

main {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px;
    padding: 20px; 
}

.about {
    width: 75ch;
    justify-self: center;
    text-align: center;
}

.hobbies {
    border: 2px solid #20737c;
    flex: 1 0 auto; 
    background-color: #2f3d22;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 10px #20737c;
    flex: 1 1 300px;
    width: 100%;
}

footer {
    background-color: #20737c;
    width: 100%;
    margin-top: 30px;
    text-align: center;
    position: relative;
    bottom: 0; left: 0;
    padding: 8px 24px;
}

footer cite {
    font-size: 10pt; line-height: 1.5;
}

/* Tablets */
@media (max-width: 900px) {
    
    h1 {
        font-size: 2rem;
    }

    .hero {
        height: 350px;
    }

    .herotext h2 {
        font-size: 2rem;
    }

    main {
        flex-direction: column;
    } 
}

/* Phones */
@media (max-width:600px) {
    
    body{
        font-size: 1rem;   
    }

    header {
        padding: 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .hero {
        height: 250px;
    }

    .herotext h2 {
        font-size: 1rem;
    }

    .herotext p {
        font-size: .5rem;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        width: 90%;
        text-align: center;
        font-size: 1rem;
    }

    main section {
        padding: 15px;
    }

    .about {
        width: 100%;
    }
}