@font-face {
    font-family: 'icon-worksregular';
    src: url('icon-works-webfont.eot');
    src: url('icon-works-webfont.eot?#iefix') format('embedded-opentype'),
        url('icon-works-webfont.woff') format('woff'),
        url('icon-works-webfont.ttf') format('truetype'),
        url('icon-works-webfont.svg#icon-worksregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
    scroll-behavior: smooth;
}

section {
    font-size: 1.44em;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background-size: cover;
}

.title-section img {
    max-width: 300px;
    width: 100%;
}

.title-section h1 {
    font-size: 6em;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

h2 {
    font-weight: lighter;
    text-align: center;
}

.title-section h1 span {
    padding: 0 .2em;
}

.scroller {
    position: absolute;
    bottom: 16px;
    font-size: 4em;
}

img {
    max-width: 96px;
    width: 100%;
}

.about-section p {
    max-width: 1024;
    padding: 0 32px;
    text-align: center;
    margin-left: 64px;
    margin-right: 64px;
}

#contact-link {
    font-family: courier;
}

.disclaimer {
    color: #666;
    font-size: .75em;
}

.scroller {
    opacity: .5;
    transition: opacity 0.2s;
}

.contact-section a {
    opacity: .5;
    transition: opacity 0.2s;
}

section a:hover {
    opacity: 1;
}

section a {
    color: inherit;
    text-decoration: none;
}

.cta {
    margin: 1em 0;
    color: inherit;
    background: #111;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    opacity: 1;
    font-family: 'Kanit', sans-serif;
}

.cta:hover {
    text-decoration: underline;
    cursor: pointer;
}

/* Backgrounds and colors */

.title-section,
.error-section {
    color: white;
    background-color: black;
    background-image: url('assets/imgs/paris.webp'), url('assets/imgs/paris.jpg');
}

.about-section {
    color: #111;
    background-color: #eee;
    background-image: url('assets/imgs/nyc.webp'), url('assets/imgs/nyc.jpg');
}

.contact-section {
    color: white;
    background-color: black;
    background-image: url('assets/imgs/london.webp'), url('assets/imgs/london.jpg');
}

footer {
    background-color: #111;
    color: #aaa;
    display: flex;
    border-top: 4px #aaa solid;
    justify-content: center;
    flex-wrap: wrap;
}

footer section {
    display: inline-block;
    width: inherit;
    flex-grow: 1;
    padding: 16px;
    min-height: inherit;
    font-size: .9em;
    max-width: 512px;
    min-width: 256px;
}

footer section h1 {
    margin: 0;
    font-size: 1em;
    color: #aaa;
}

footer section p {
    font-size: 1em;
    padding: 0;
    margin: 0;
}

footer section:nth-child(2) {
    text-align: right;
}

@media (max-width: 1023px) {
    section {
        min-height: 0;
        padding: 64px 0;
        flex-grow: 1;
        font-size: 1em;
    }

    .scroller {
        display: none;
    }

    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .about-section p {
        max-width: 100%;
        text-align: left;
        padding: 0 32px;
    }
    
    section img {
        display: none;
    }
    
    .title-section {
        background-image: url('assets/imgs/paris-1024.webp'), url('assets/imgs/paris-1024.jpg');
    }

    .title-section h1 {
        font-size: 3em;
    }

    .title-section img {
        max-width: 200px;
        width: 100%;
        display: inherit;
    }

    .contact-section {
        background-image: url('assets/imgs/london-1024.webp'), url('assets/imgs/london-1024.jpg');
    }
}
