/* HOME */
html {
    scroll-behavior: smooth;
}

/* NOT FOUND */
#notFound-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
}

#notFound-wrapper {
    margin-left: 20vw;
    margin-bottom: 250px;
    padding: 20px 50px 40px 50px;
    background-color: rgba(255, 255, 255, 0.8)
}

#notFound-wrapper h1 {
    font-family: 'Roboto'
}

#button-wrapper {
    display: flex;
    width: 100%;
}

#button-wrapper button {
    font-family: 'Roboto';
    font-weight: bold;
    font-size: 14px;
    border-radius: none;
    padding: 5px 18px 5px 18px;
    margin: auto;
    background: none;
    border: 2px solid black;
    cursor: pointer;
    margin-top: 20px;
}

#button-wrapper button:hover {
    color: green;
}

@media only screen and (max-width: 900px) {        
    #notFound-wrapper {
        margin-left: auto;
        margin-right: auto;
    }
}

/* FRONT */
.front-container {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    width: 100%;
    height: 500px;
    top: calc((100% - 500px) / 2);
}

.logo-1 {
    width: 200px;
    height: auto;
    margin-left: calc((100% - 200px) / 2)
}

.logo-2 {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    text-align: center;
    font-size: 3em;
    font-weight: normal;
    margin-top: 0;
}

.button-container {
    width: 100%;
    max-width: 550px;
    background-color: rgb(255,255,255,0.9);
    margin: auto;
}

.button-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

button {
    margin: 10px;
    width: fit-content;
    height: 30px;
    border: none;
    background: none;
    font-family: 'Roboto';
    font-size: 1.1em;
    cursor: pointer;
}

button:hover {
    color: green;
}

.contactInfo-container {
    position: fixed;
    display: flex;
    justify-content: center;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: rgb(0, 0, 0, 0.5);
    z-index: 2;
}

.contactInfo {
    background-color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 200px;
    width: 100%;
    max-width: 500px;
    top: calc((100% - 300px) / 2);
    border-radius: 5px;
}

.contactInfo table {
    top: 0;
    margin: auto;
    margin-left: 35px;
    margin-right: 35px;
}

.contactInfo td {
    font-family: 'Roboto';
    font-size: 26px;
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
}

.contactInfo button {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    width: 40px;
    height: 40px;
    color: gray;
}

.contactInfo button:hover {
    color: black;
}

#reference-location {
    font-size: 12px;
    float: none;
}

@media only screen and (max-width: 500px) {        
    .button-wrapper {
        width: 100%;
        font-size: 12px;
    }
}

/* ABOUT */
.about-block {
    background-color: rgba(246, 246, 248, 0.7);
    max-width: 100%;
    height: 100vh;
    min-height: fit-content;
}

.about-container {
    position: relative;
    height: 80vh;
    width: 80vw;
    margin: auto;
    top: 10vh;
}

.image {
    position: relative;
    height: auto;
    top: calc(5vh - 10px);
    width: 25vw;
    padding: 8px;
    background-color: transparent;
    border: 2px solid black;
    float: left;
}

.image-mobile {
    display: none;
}

.heading-container {
    position: relative;
    float: left;
    top: calc(5vh - 10px);
    left: 5%;
}

.heading-1 {
    font-size: 4em;
}

.heading-2 {
    font-size: 3.5em;
}

.paragraph {
    position: relative;
    float: left;
    width: 55%;
    max-width: 780px;
    top: 8%;
    left: 5%;
    font-family: 'Roboto';
    font-size: 1.1em;
    letter-spacing: 1px;
}

.line-1 {
    margin-top: 5vh;
    width: 24em;
    border-right: 2px solid rgba(255,255,255,.75);
    font-size: 1.1em;
    white-space: nowrap;
    overflow: hidden;
    transform: translateY(-50%);
    font-family: serif;
}

.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.5s ease;
}

.fade-enter-active {
    transition-delay: 0.5s;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

.fade-image-enter-active,
.fade-image-leave-active {
    transition: opacity 0.5s ease;
    transition-delay: 0.5s;
}

.fade-image-enter-from,
.fade-image-leave-to {
    opacity: 0
}

.anim-typewriter {
    animation: typewriter 4s steps(40) 1s 1 normal both, blinkTextCursor 500ms steps(40) infinite normal;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 30em; }
}

@keyframes blinkTextCursor {
    from { border-right-color: black; }
    to { border-right-color: transparent; }
}

@media only screen and (max-width: 1100px) {
    .line-1 {
        font-size: 18px;
    }
}

@media only screen and (max-width: 920px) {
    .line-1 {
        display: none;
    }

    .paragraph {
        font-size: 1em;
    }
}

@media only screen and (max-width: 700px) {      
    .about-block {
        width: 100vw;
        height: fit-content;
        padding: 0;
        padding-bottom: 10vh;
    }

    .about-container {
        height: fit-content;
        top: 0;
        width: 100%;
        text-align: center;
    }

    .image {
        display: none;
    }

    .image-mobile {
        display: block;
        width: 26%;
        margin: auto;
        padding: 5px;
        border: 1px solid black;
    }

    .heading-container {
        top: 1vh;
        left: 0;
        float: none;
    }

    .heading-1 {
        font-size: 3em;
    }

    .heading-2 {
        font-size: 2.8em;
    }

    .paragraph {
        float: right;
        padding: 20px;
        width: calc(100% - 40px);
        top: 0;
        left: 0;
        font-size: 1em;
        height: fit-content;
    }
}

@media only screen and (max-height: 610px) {
    .about-block {
        height: 120vh;
    }
}

@media only screen and (max-height: 540px) {
    .about-block {
        height: 160vh;
    }
}

@media only screen and (max-height: 400px) {
    .about-block {
        height: 180vh;
    }
}

/* CONTACT */
.contact-container {
    background-color: rgba(240, 240, 240, 0.9);
    height: 280px;
    display: grid;
    grid-template-columns: [col-start] 10% [col1] auto [col2] 5% [col3] auto [col4] 10% [col-end];
    grid-template-rows: [row-start] 20px [row1] auto [row2] 20px [row-end];
    font-family: 'Roboto';
    font-size: 20px;
}

.item-a {
    grid-column-start: col1;
    grid-column-end: col2;
    grid-row-start: row1;
    grid-row-end: row2;
}

.item-b {
    grid-column-start: col3;
    grid-column-end: col4;
    grid-row-start: row1;
    grid-row-end: row2;
}

h3 {
    transform: rotate(-90deg) translateX(-78px) translateY(50px);
    font-size: 16px;
    font-weight: normal;
    width: fit-content;
}

.wrapper {
    position: relative;
    left: 120px;
    width: calc(100% - 130px);
}

.wrapper div {
    margin-bottom: 5px;
}

.wrapper span {
    text-align: right;
    justify-self: right;
    float: right;
}

a {
    color: black;
    text-decoration: none;
}

a:hover {
    color: green;
}

@media only screen and (max-width: 1250px) {
    .contact-container {
        grid-template-columns: [col-start] 2% [col1] auto [col2] 0 [col3] auto [col4] 2% [col-end];
        font-size: 16px;
    }
}

@media only screen and (max-width: 900px) {
    .contact-container {
        height: 450px;
        grid-template-columns: [col-start] 10% [col1] auto [col2] 10% [col-end];
        grid-template-rows: [row-start] 10% [row1] auto [row2] 5% [row3] auto [row4] 10% [row-end];
    }

    .item-b {
        grid-column-start: col1;
        grid-column-end: col2;
        grid-row-start: row3;
        grid-row-end: row4;
    }

    h3 {
        transform: rotate(-90deg) translateX(-74px) translateY(-30px);
    }

    .wrapper {
        left: 40px;
        width: calc(100% - 40px);
    }
}

@media only screen and (max-width: 500px) {
    .contact-container {
        grid-template-columns: [col-start] 5% [col1] auto [col2] 5% [col-end];
        font-size: 15px;
    }

    h3 {
        font-size: 15px;
        transform: rotate(-90deg) translateX(-84px) translateY(-30px);
    }

    .wrapper {
        top: 12px;
    }
}

/* PORTFOLIO */
.row {
    margin-top: 55px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px;
    justify-content: center;
}

.column {
    flex: 25%;
    max-width: 20%;
    padding: 0 4px;
}

.portrait {
    aspect-ratio: 2 / 3;
    width: 100%;
    margin-top: 8px;
    background: gainsboro;
}

.landscape {
    aspect-ratio: 3 / 2;
    width: 100%;
    margin-top: 8px;
    background: gainsboro;
}

.column img {
    vertical-align: middle;
    width: 100%;
}

@media screen and (max-width: 800px) {
    .column {
        flex: 50%;
        max-width: 48%;
    }
}

@media screen and (max-width: 600px) {
    .column {
        flex: 50%;
        max-width: 45%;
    }
}

/* NAV */
#nav-container {
    position: fixed;
    top: 0;
    left: 0;
    height: 50px;
    width: 100vw;
    background: white;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
    z-index: 99;
}

#logo img {
    position: absolute;
    left: 25px;
    top: 10px;
    height: 35px;
    width: auto;
}

#menu {
    display: flex;
}

#nav-toggle {
    display: none;
}

.links-container {
    background: white;
    height: 50px;
    width: 100vw;
    overflow: hidden;
    transition: height 0.3s ease;
}

#links-wrapper {
    display: flex;
    flex-direction: row;
    position: absolute;
    right: 30px;
    top: 15px;
}

#links-wrapper a {
    color: black;
    text-decoration: none;
    font-family: 'Roboto';
    font-size: 16px;
    letter-spacing: 0.5px;
    padding-left: 15px;

}

#links-wrapper a:hover {
    color: green;
}

/* BURGER */
#burger-wrapper {
    position: absolute;
    top: 0;
    right: 25px;
    height: 50px;
    width: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
}

.burger {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 0;
    right: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    float: right;
}

#burger div {
    height: 5px;
    width: 30px;
    left: 10px;
    background-color: #343434;
    position: absolute;
    transition: all 0.5s ease;
}

#burger #first {
    top: 13px;
}

#burger #second {
    top: 23px;
}

#burger #third {
    top: 33px;
}

@media only screen and (max-width: 1025px) {
    #burger-wrapper {
        display: initial;
    }

    #links-wrapper {
        flex-direction: column;
        position: relative;
        top: 55px;
        left: 20px;
        width: fit-content;
    }

    #links-wrapper a {
        padding: 5px;
    }

    #nav-toggle:checked ~ * #first {
        transform: translateY(10px) rotate(45deg);
        transition: all 0.5s ease;
    }

    #nav-toggle:checked ~ * #second {
        opacity: 0;
        transition: all 0.2s ease;
    }

    #nav-toggle:checked ~ * #third {
        transform: translateY(-10px) rotate(-45deg);
        transition: all 0.5s ease;
    }

    #nav-toggle:checked ~ .links-container {
        background: white;
        height: 180px;
        width: 100vw;
    }

    #nav-toggle:checked ~ * #links-wrapper {
        opacity: 1;
    }
}