/* --- Root --- */

:root {
    --main-white: #ffffff;
    --bg-white: #ffffff;
    --main-black: #000000;
    --bg-black: #000000;
    --gray-text: #202020;
    --font-heavy: 'TheOakLeafHeavy', sans-serif;
    --font-medium: 'TheOakLeafMedium', sans-serif;
    --font-cursive: 'Hughetta', sans-serif;
}

/* --- Body --- */

body, html {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;  
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;         
}


/* --- Fonts --- */

@font-face {
    font-family: 'TheOakLeafHeavy';
    src:
        url('../fonts/TheOakLeaf/ttf/TheOakLeafHeavy.ttf') format('truetype'),
        url('../fonts/TheOakLeaf/woff/TheOakLeafHeavy.woff') format('woff'),
        url('../fonts/TheOakLeaf/woff2/TheOakLeafHeavy.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'TheOakLeafMedium';
    src:
        url('../fonts/TheOakLeaf/ttf/TheOakLeafMedium.ttf') format('truetype'),
        url('../fonts/TheOakLeaf/woff/TheOakLeafMedium.woff') format('woff'),
        url('../fonts/TheOakLeaf/woff2/TheOakLeafMedium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Hughetta';
    src:
    url('../fonts/Hughetta/ttf/Hughetta.ttf') format('truetype'),
    url('../fonts/Hughetta/woff/Hughetta.woff') format('woff'),
    url('../fonts/Hughetta/woff2/Hughetta.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

h1 {   
    font-family: var(--font-heavy);
    font-size: 128px;
    line-height: 106px;
    text-transform: uppercase;
    margin: 0;
}

h2 {   
    font-family: var(--font-heavy);
    font-size: 64px;
    text-transform: uppercase;
    margin: 0;
    color: var(--gray-text);
}

h3 {
    font-family: var(--font-medium);
    text-transform: uppercase;
    color: var(--gray-text);
    line-height: 1.6;
}

p {
    font-family: var(--font-medium);
    text-transform: uppercase;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
    color: var(--gray-text);
}

.cursive {
    font-family: var(--font-cursive);
    text-transform: lowercase;
    line-height: 1.6;
    font-size: 32px;
    margin-left: 4px;
    margin-right: 2px;
}

.centered {
    font-family: var(--font-medium);
    text-transform: uppercase;
    line-height: 1.6;
    text-align: center;
    margin: 0;
    font-size: 14px;
    color: var(--gray-text);
}

.intextlink{
    color: var(--gray-text);
}

/* --- Overlay --- */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 20;
    color: var(--gray-text);
    transition: color 0.5s, opacity 0.5s;
}


.topsection {
    pointer-events: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100px;
    height: 20vh;
    padding: 0 80px;
    position: relative;
    background-color: var(--bg-white);
}

#site-header {
    transition: border-bottom 0.3s ease, background-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

#site-header.scrolled {
    border-bottom: 1px solid #ccc;
}

.menubutton, .contactbutton {
    flex: 0 0 auto;
}

.menubutton, .contactbutton{
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
}

.linkoverlay{
    text-decoration: none;
}

.logo{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo{
    max-width: 50px;
    display: block;
    vertical-align: middle;
    height: auto;
}

.logolink {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo, .menubutton, .contactbutton{
    height: auto;
    cursor: pointer;
    transition-duration: 300ms;
    transition-timing-function: ease;
    transition-property: opacity;
}

.logo:hover, .fullscreen:hover, .arrow:hover, .menubutton:hover, .contactbutton:hover, .undertypo:hover{
    opacity: 0.75;
}

/* --- Screen --- */

.welcome{
    width: 700px;
    padding-top: 40px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-top: 20vh;
    color: #202020;
}

.welcometext{
    margin-top: 20px;
    margin-bottom: 40px;
    width: 700px;
    text-align: justify;
    margin-left: auto;
    margin-right: auto;
    color: var(--gray-text);
}

form {  
    margin-top: 30px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    font-family: var(--font-medium);
    font-size: 14px;
}

form label {
    display: block;
    margin-bottom: 2rem;
    position: relative;
}

form textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    padding: 0.5rem 0;
    text-transform: uppercase;
    resize: none;
    overflow: hidden;
    height: 1.5em;
    line-height: 1.5;
    box-sizing: content-box;
    transition: height 0.2s ease;
}

form input,
form select,
form textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    font-family: var(--font-medium);
    font-size: inherit;
    padding: 0.5rem 0;
    text-transform: uppercase;
    color: var(--gray-text);
    resize: none;
    overflow: hidden;
    transition: border-color 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 0; 
    box-shadow: none; 
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}


form select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ccc;
    font-family: var(--font-medium);
    font-size: inherit;
    padding: 0.5rem 0;
    text-transform: uppercase;
    color: var(--gray-text);
    transition: border-color 0.3s ease;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 2rem;
    border-radius: 0; 
    box-shadow: none; 
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-bottom: 1px solid var(--gray-text); 
}

form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M1 1l5 5 5-5" stroke="black" stroke-width="1.5" fill="none" stroke-linecap="butt"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 2rem;
    border-radius: 0;
    box-shadow: none;
    padding-right: 2rem;
}

form textarea {
    resize: none;
    overflow-y: auto;
    max-height: 150px;
    line-height: 1.4;
}

form button {
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: var(--gray-text);
    color: var(--main-white);
    border: none;
    width: 100%;
    text-transform: uppercase;
    font-family: var(--font-medium);
    font-size: inherit;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 50px;
}

.back {
    margin-top: 30px;
    padding: 0.75rem 2rem;
    background: var(--gray-text);
    color: var(--main-white);
    border: none;
    width: 100%;
    text-transform: uppercase;
    font-family: var(--font-medium);
    font-size: inherit;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 50px;
}

form button:hover {
    background: #303030;
}

.back:hover {
    background: #303030;
}

.footer {
    border-top: 1px solid #ccc;
    margin-top: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100px;
    height: 20vh;
    padding: 0 80px;
    background-color: var(--bg-white);
    bottom: 0;
}

.copyright{
    font-size: 14px;
    text-transform: uppercase;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Media --- */

@media screen and (max-width: 1300px) {
    
    h2 {   
        font-size: 52px;
    }

}

@media screen and (max-width: 1200px) {
    
    .topsection, .bottomsection {
        padding: 0 40px;
        height: 80px; 
    }

    .welcome{
        margin-top: 150px;
    }
    
    .footer{
        padding: 0 40px;
        height: 80px;
    }
    
}

@media screen and (max-width: 900px) {
    
    .welcome{
        width: 600px;
    }

    .welcometext{
        width: 600px;
    }

    form {  
        max-width: 600px;
    }

}
  
@media screen and (max-width: 700px) {
    
    .welcome{
        width: 100%;
        padding-left: 40px;
        padding-right: 40px;
        box-sizing: border-box;
    }

    .welcometext{
        width: 100%;
        padding-left: 40px;
        padding-right: 40px;
        box-sizing: border-box;
    }

    form {  
        max-width: 100%;
        padding-left: 40px;
        padding-right: 40px;
        box-sizing: border-box;
    }

}

@media screen and (max-width: 500px) {

    h2{
        font-size: 42px;
    }

    .mainsection{
        width: 100%;
        padding-left: 40px;
        padding-right: 40px;
    }

}

@media screen and (max-width: 400px) {

    h1{
        font-size: 64px;
    }

    h2{
        font-size: 34px;
    }
    .menubutton, .contactbutton, .undertypo, p, form, .copyright, .centered{
        font-size: 12px;
    }
    .logo{
        max-width: 40px;
    }

    .cursive {
        font-size: 28px;
        margin-left: 3px;
        margin-right: 2px;
    }

}