@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');

:root {
    --primary-bg-color: rgb(255, 255, 255);
    --secondary-bg-color: rgb(35, 35, 35);
    --primary-text-color: rgb(35, 35, 35);
    --primary-accent-color: rgb(239, 91, 80);
    --secondary-accent-color: rgb(255, 198, 92);

    --font: "Roboto"
}

html, body {
    margin: 0%;
    overflow-x: hidden;
    font-family: var(--font), sans-serif;
    scroll-behavior: smooth;
}

h1, h2, h3, p, a, button {
    margin: 0%;
    color: var(--primary-text-color);
    text-decoration: none;
}

.heading {
    display: flex;
    padding: 0% 0% 3vh 0%;
    font-size: clamp(3rem, 4vw, 100rem);
    justify-content: center;
}

/* Main navigation bar with logo, pages, and contact button */
nav {
    display: flex;
    box-sizing: border-box;
    height: 10vh;
    padding: 1vh 9vw;
    align-items: center;
}

#nav-logo {
    display: flex;
    height: clamp(2rem, 3vw, 5rem);
    margin-right: auto;
    justify-content: center;
    align-self: left;
}

nav #page-section {
    display: flex;
    gap: 3vw;
    justify-content: center;
    flex-grow: 100;
}

nav a {
    font-size: clamp(0.6rem, 1.2vw, 5rem);
    color: var(--primary-text-color);
    align-content: center;
}

nav a:hover {
    color: var(--primary-accent-color);
    transition: 200ms;
}

nav a.thick-underline:hover {
    box-shadow: inset 0 -2em 0 0 var(--primary-accent-color);
    color: var(--primary-bg-color);
    transition: 200ms;
}

nav #contact-us {
    margin-left: 30vw; /* Magic number, probably need to find a more permanenent solution */
}

#hamburger-icon {
    display: none;
}

/* Simple footer with some contact information and actions */
footer {
    display: grid;
    grid-template-columns: 1fr 2fr;
    box-sizing: border-box;
    height: fit-content;
    padding: 5vh 20vw;
    gap: 10vw;
    align-items: center;
    background-color: var(--primary-text-color);
}

footer .icon {
    height: clamp(4rem, 10vw, 10rem);
    margin-bottom: 4vh; /* The margin displaces the icon so it appears more centered */
}

#footer-text h1 {
    margin-bottom: 1vh;
    font-size: clamp(1.5rem, 2vw, 10rem);
}

#footer-text p {
    margin-bottom: 3vh;
    font-size: clamp(0.5rem, 1vw, 10rem);
}

#footer-text .btn {
    width: 9vw;
    justify-content: center;
    margin-top: 1vh;
}


/* Interactible elements & modifiers */
/* Interactible elements */
.icon {
    display: flex;
    margin: 0% auto;
    filter: brightness(0) invert(1);
}

.btn {
    display: flex;
    width: fit-content;
    height: fit-content;
    padding: clamp(0.1rem, 1vh, 1rem) clamp(1rem, 2vw, 3rem);
    align-items: center;
    border-radius: 50px;

    font-size: clamp(0.7rem, 1vw, 3rem);
}

.underline {
    text-decoration: underline;
    text-underline-offset: 0.5rem;
}

.underline.weak {
    text-underline-offset: 0.1rem;
}

/* Color modifiers */
.white {
    color: var(--primary-bg-color);
}

.accent {
    color: var(--primary-accent-color);
}

.btn.black {
    border: 2px solid var(--primary-text-color);
}

.btn.white {
    border: 3px solid var(--primary-bg-color);
}

.btn.accent {
    color: var(--primary-bg-color);
    background-color: var(--primary-accent-color);
}

/* Hover effects */
.btn.black:hover {
    color: var(--primary-bg-color);
    background-color: var(--primary-text-color);
    transition: 200ms;
}

.btn.white:hover {
    color: var(--primary-text-color);
    background-color: var(--primary-bg-color);
    transition: 200ms;
}

.btn.accent:hover {
    color: var(--primary-bg-color);
    background-color: var(--secondary-accent-color);
    transition: 300ms;
}

.underline:hover {
    color: var(--primary-accent-color);
    transition: 200ms;
}

.thick-underline {
    width: fit-content;
    box-shadow: inset 0 -0.4em 0 0 var(--primary-accent-color);
    transition: 300ms;
}

/* Mobile restrictions */
@media screen and (max-width: 600px) {
    .mobile-dissapear {
        display: none;
    }

    /* Vertical drop down menu */
    #hamburger-icon {
        display: block;
        width: 10vw;
        padding-top: 2vw;
    }

    nav #contact-us {
        margin-left: 0%;
        margin-right: auto;
    }

    nav #page-section {
        position: absolute;
        top: 10%;
        left: 0%;
        z-index: 1;
        display: none;
        box-sizing: border-box;
        width: 100vw;
        height: 100vh;
        padding: 10vh 10vw;
        background-color: var(--primary-bg-color);
    }
    #page-section.toggle-menu-on { display:block; }
    
    nav a, nav .btn {
        display: block;
        margin-bottom: 3vh;
        font-size: clamp(1rem, 10vw, 100rem);
        color: var(--primary-text-color);
    }
    
    nav .btn {
        padding: 3vh 10vw;
        margin-top: 10vh;
        font-size: clamp(1rem, 8vw, 100rem);
        
    }

    /* Footer */
    footer {
        height: 40vh;
        padding: 1vh 5vw;
    }

    #footer-text .btn {
        width: 30vw;
    }
}