/* FONTS */

/* Michroma Font */

@font-face {
    font-family: 'Michroma';
    src: url('../font/Michroma-Regular.eot');
    src: url('../font/Michroma-Regular.eot?#iefix') format('embedded-opentype'),
        url('../font/Michroma-Regular.woff2') format('woff2'),
        url('../font/Michroma-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Poppins Font */

@font-face {
    font-family: 'Poppins';
    src: url('../font/Poppins-Regular.eot');
    src: url('../font/Poppins-Regular.eot?#iefix') format('embedded-opentype'),
        url('../font/Poppins-Regular.woff2') format('woff2'),
        url('../font/Poppins-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../font/Poppins-BoldItalic.eot');
    src: url('../font/Poppins-BoldItalic.eot?#iefix') format('embedded-opentype'),
        url('../font/Poppins-BoldItalic.woff2') format('woff2'),
        url('../font/Poppins-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../font/Poppins-Italic.eot');
    src: url('../font/Poppins-Italic.eot?#iefix') format('embedded-opentype'),
        url('../font/Poppins-Italic.woff2') format('woff2'),
        url('../font/Poppins-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../font/Poppins-Bold.eot');
    src: url('../font/Poppins-Bold.eot?#iefix') format('embedded-opentype'),
        url('../font/Poppins-Bold.woff2') format('woff2'),
        url('../font/Poppins-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* COLORS */

:root {
    --peach: #FFA36B;
    --orange: #FF5C00;
    --brown: #c42e00;
    --green: #55ce52;
    --green_light: #71ff6e;
    --green_nav: #339551;
    --green_dark: #18602e;
    --grey_light: #737373;
    --grey_dark: #1E1E1E;
    --shadow: #00000060;
    --shadow_hover: #00000055;
    --shadow_green: #55ce5250;
    --bg_color: #A6A29F;
}

/* SETUP */

html {
    scroll-behavior:smooth; 
}

#background {
    position: fixed;
    height: 100%;
    width: 100%;
    opacity: 0;
    top: 0;
    left: 0;
    background: url(../img/bg.jpg) center center/cover no-repeat; /* not knowing I had to add the '/' drove me insane*/
    animation-name: bg-fade;
    animation-iteration-count: 1;
    animation-timing-function: ease-in-out;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    z-index: -9;
}

@keyframes bg-fade {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

body {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 0;
    font-family: 'Poppins';
    background-color: var(--bg_color);
}

p {
    text-align: justify;
}

p, a, li {
    font-size: 18px;
}

h1, h2, h4 {
    font-weight: normal;
}

h1{
    font-family: 'Michroma';
    font-size: 42px;
    text-shadow: 0px 4px 4px var(--shadow);
    margin: 30px 0px;
}

h2 {
    font-family: 'Michroma';
    font-size: 32px;
}

h3 {
    font-family: 'Michroma';
    font-size: 22px;
    margin: 12px 0px 0px;
}

h4 {
    font-size: 20px;
}

/* DEFAULT LINKS */

a {
    color: var(--green_dark);
    text-decoration: none;
    transition: 0.25s;
}

a:hover {
    color: var(--green);
    text-shadow: 0px 0px 4px var(--shadow_green);
    transition: 0.25s;
}

/* CONTENT */

nav, main {
    display: flex;
    max-width: 1038px;
    width: 100%;
}

/* NAVIGATION */

nav {
    position: fixed;
    top: 0px;
    z-index: 99;
    height: 144px;
    padding: 0px 100%;
    flex-direction: row;
    justify-content: space-between;
    background-image: linear-gradient(var(--grey_light),var(--grey_dark)); 
    box-shadow: 0px 4px 8px var(--shadow_hover);
}

.logo-container {
    display: flex;
    align-items: center;
    margin-left: 26px
}

.button-container {
    display: flex;
    align-items: center;
    margin-right: 26px
}

/* NAVIGATION BUTTONS */

/* LOGO */

#logo, #logo:visited {
    color: white;
    text-shadow: 0px 4px 4px var(--shadow);
    font-family: 'Michroma';
    font-size: 30px;
    text-shadow: 0px 4px 4px var(--shadow);
    padding-bottom: 0px;
    transition: 0.25s;
}

#logo:hover {
    color: white;
    padding-bottom: 4px;
    text-shadow: 0px 4px 8px var(--shadow_hover);
}

.nav-button, .nav-button:visited {
    align-self: flex-start;
    color: white;
    background-image: linear-gradient(var(--peach),var(--orange) 25%,var(--brown)); 
    box-shadow: 0px 4px 8px var(--shadow);
    font-family: 'Michroma';
    font-size: 18px;
    width: 160px;
    padding: 36px 0px 26px;
    text-align: center;
    margin-left: 12px;
    transition: 0.25s;
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
}

.nav-button:hover {
    color: white;
    padding-top: 40px;
    box-shadow: 0px 4px 4px var(--shadow);
    text-shadow: none;
}

/* MAIN */

main {
    box-sizing: border-box;
    padding: 144px 26px 0px;
    min-height: 100vh;
    flex-direction: column;
}

/* HOME */

#menu-container {
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    margin-top: 118px;
    padding: 58px;
    background-image: linear-gradient(var(--grey_light),var(--grey_dark)); 
    box-shadow: 0px 4px 8px var(--shadow_hover);
    color: white;
    justify-content: center;
}

#menu-container h2 {
    margin-top: 0px;
}

#menu-container a {
    color: var(--green_nav);
}

#menu-container a:hover {
    color: var(--green);
}


#home-heading {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}

#lang-logo-container {
    display: flex;
    align-items: center;
}

.lang-logo {
    margin: 0px 0px 0px 22px;
}

/* SKILLS */

#outcome-h1 {
    margin-top: 112px;
}

#back {
    display: flex;
    position: fixed;
    margin-top: 42px;
    scroll-margin-top: 186px;
    z-index: 9;
}

#back a {
    background-image: linear-gradient(var(--grey_light),var(--grey_dark)); 
    padding: 16px;
    box-shadow: 0px 4px 8px var(--shadow);
    font-size: 16px;
    color: var(--green_nav);
    box-sizing: border-box;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
}

#back a:hover {
    color: var(--green);
}

#back-to-top {
    display: flex;
    margin-bottom: 56px;
    justify-content: end;
}

.skills-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 26px 34px;
    background-color: white;
    box-sizing: border-box;
    box-shadow: 0px 4px 8px var(--shadow_hover);
    margin-bottom: 36px;
}

hr {
    width: 100%;
    background: linear-gradient(to right, var(--green_dark), var(--green_light));
    height: 3px;
    border-width: 0;
}

/* SKILLS PICTURES */

.skill-pic {
    width: 100%;
    margin-top: 16px;
}

.skill-pic-shadow {
    width: 100%;
    filter: drop-shadow(0px 8px 8px var(--shadow_hover));
    margin-top: 16px;
}

/* MEDIA QUERY */

@media only screen and (max-width: 640px) {
    h1 {
        font-size: 32px;
    }

    .nav-button {
        display: none;
    }

    #home-heading {
        justify-content: start;
        flex-direction: column;
    }

    .lang-logo {
        margin: 0px 22px 0px 0px;
    }
}