/* Author: Martin Tsai © 2025 */

* {
    margin: 0;
    padding: 0;
}

#container {
    width: 300px;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
}

#header {
    margin-top: 20pt;
    margin-bottom: 20pt;
    font-family: "HelveticaNeue-CondensedBold", "HelveticaNeueBoldCondensed", "HelveticaNeue-Bold-Condensed", "Helvetica Neue Bold Condensed", "HelveticaNeueBold", "HelveticaNeue-Bold", "Helvetica Neue Bold", "HelveticaNeue", "Helvetica Neue", 'TeXGyreHerosCnBold', "Helvetica", "Tahoma", "Geneva", "Arial Narrow", "Arial", sans-serif; font-weight:600; font-stretch:condensed;
    color: #498dcb;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
}

#name {
    width: 300px;
}

#title {
    width: 300px;
}

#navigation {
    width: 300px;
}

#main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

#experience {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 300px;
}

#education {
    display: flex;
    flex-direction: column;
    width: 300px;
}

.item {
    padding-top: 10pt;
    padding-bottom: 10pt;
}

#footer {
    margin-top: 20pt;
    margin-bottom: 20pt;
    font-size: 9pt;
    text-align: center;
}

body {
    font-family: "Helvetica", sans-serif;
    font-weight: 100;
    font-size: 16px;
}

p {
    padding-bottom: 10pt;
    line-height: 1.2;
}

h1 {
    font-size: 67pt;
    line-height: 0.9;
}

h2 {
    font-size: 26pt;
    line-height: 1.05;
}

h3 {
    font-size: 14pt;
    font-family: "HelveticaNeue-CondensedBold", "HelveticaNeueBoldCondensed", "HelveticaNeue-Bold-Condensed", "Helvetica Neue Bold Condensed", "HelveticaNeueBold", "HelveticaNeue-Bold", "Helvetica Neue Bold", "HelveticaNeue", "Helvetica Neue", 'TeXGyreHerosCnBold', "Helvetica", "Tahoma", "Geneva", "Arial Narrow", "Arial", sans-serif; font-weight:600; font-stretch:condensed;
    color: #498dcb;
}

h4 {
    font-family: "Helvetica", sans-serif;
    font-weight: 900;
    font-size: 15px;
    line-height: 1.5;
}

a {
    color: #498dcb;
    text-decoration: none;
}

.contact {
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

form {
    display: flex;
    flex-direction: column;
    padding: 2vw 4vw;
    width: 90%;
    max-width: 280px;
    border-radius: 10px;
}

form input, form textarea {
    border: 0;
    margin: 10px 0;
    padding: 20px;
    outline: none;
    background: #f5f5f5;
    resize: none;
    width: 95%;
}

form button {
    padding: 15px;
    background: #498dcb;
    color: white;
    border: 0;
    outline: none;
    cursor: pointer;
    width: 150px;
    margin: 20px auto 0;
}

.field .error-txt {
    font-size: 10px;
    color: red;
    text-align: left;
    margin: -5px 0 10px;
    display: none;
}

.field.error .error-txt {
    display: block;
}

form .textarea-field .error-txt {
    margin-top: -10px;
}

br {
  line-height: 0.1em; /* Affects some browsers */
}

@media (min-width: 1000px) {
    #container {
        width: 700pt;
    }

    #header {
        flex-wrap: nowrap;
    }

    #name {
        width: 440pt;
    }
    
    #title {
        width: 160pt;
    }
    
    #navigation {
        width: 101pt;
    }

    #main {
        flex-wrap: nowrap;
    }
    
    #experience {
        width: 600px;
        margin-right: 100px;
    }
    
    #education {
        width: 220px;
    }

    body {
        font-size: 16px;
    }

    .contact {
        width: 800px;
    }
    
    form {
        width: 90%;
        max-width: 600px;
    }  
    
    .no-flex {
        width: 99%;
        display: block; /* or inline-block, or any non-flex value */
        flex: none;     /* cancel flex-grow/shrink/basis */
        align-self: auto; /* reset alignment */
    }
}