:root {
    --background-color: #f4f3f2;
    --line-color: #50C6DB;
    --text-color: #000000;
}

@font-face {
    font-family: 'figtree';
    src: url('../resources/fonts/Figtree-VariableFont_wght.ttf') format('truetype');
    font-weight: inherit;
    font-style: inherit;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Page styling */
* {
    font-family: 'figtree';
    margin: 0;
    padding: 0;
    user-select: none;
    transition: background-color 0.4s ease, color 0.4s ease;
    color: var(--text-color);
}

body {
    padding-top: 30px;
}

html {
    background-color: var(--background-color);
    height: 100vh;
    margin: 0;
    padding: 0;
}

nav div {
    position: fixed;
    padding: 1% 0 1% 2%;
    background-color: var(--background-color);
    z-index: 99;
    display: flex;
    gap: 5%;
    width: 100%;
    top: 0;
}

nav a {
    color: var(--text-color);
    font-size: larger;
    display: block;
}

nav a u,
#mobile-nav ul li u {
    text-decoration-color: var(--line-color);
    text-decoration-thickness: 2.5px;
    text-underline-offset: 4px;
}

nav a:not(.active) {
    text-decoration-color: transparent;
}

nav a:hover:not(.active) {
    transition: all 200ms ease-in-out;
    text-decoration: underline;
    text-decoration-color: var(--line-color);
    text-decoration-thickness: 2.5px;
    text-underline-offset: 4px;
}

nav .active #mobile-nav ul li .active {
    font-weight: bold;
}

h1 {
    font-size: 50px;
    font-weight: normal;
    margin-bottom: 0;
}

.draggable {
    user-select: none;
    cursor: grab;
    position: absolute;
    z-index: 99;
    transition: rotate 0.2s ease, text-shadow 0.2s ease;
    /* transition: left 0.2s ease, top 0.2s ease; */
}

.draggable:nth-child(2) {
    translate: 120px;
}

.draggable:nth-child(3) {
    translate: 235px;
}

.draggable:nth-child(4) {
    translate: 290px;
}

.main-section {
    display: block;
    top: 0px;
    margin: 0;
    padding: 0;
}

.title,
.page-title,
.new-website {
    margin: 2% 0 0 2%;
    font-weight: normal;
}

.new-website a {
    color: var(--line-color);
    text-decoration: underline;
    text-decoration-color: var(--line-color);
    text-decoration-thickness: 2.5px;
    text-underline-offset: 4px;
}

.page-title {
    font-size: 40px;
}

.front {
    background-image: url(../resources/images/FRONT.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    font-size: 250px;
    font-weight: bolder;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
    height: 100%;
    animation: blob 2s ease 1s 1 normal forwards;
    user-select: none;
}

.frontend {
    display: flex;
    flex-direction: row;
    align-items: baseline;
}

.profile-picture img {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    max-width: 100%;
    height: 75vh;
    margin-right: 2%;
}

a {
    text-decoration: none;
}

/* width */
::-webkit-scrollbar {
    width: 5px;
    margin-right: 5px;
}

::-webkit-scrollbar-track {
    margin-right: 5px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--line-color);
    border-radius: 5px;
}

@keyframes blob {
    0% {
        transform: scale3d(1, 1, 1);
    }

    30% {
        transform: scale3d(1.25, 0.75, 1);
    }

    40% {
        transform: scale3d(0.75, 1.25, 1);
    }

    50% {
        transform: scale3d(1.15, 0.85, 1);
    }

    65% {
        transform: scale3d(0.95, 1.05, 1);
    }

    75% {
        transform: scale3d(1.05, 0.95, 1);
    }

    100% {
        transform: scale3d(1, 1, 1);
    }
}

#modeToggle {
    background-color: black;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
}

#modetoggle.dark-mode {
    background-color: var(--background-color);
    color: black;
}

.colorbox {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 2% 0 0 2%;
    gap: 10px;
    bottom: 1%;
    padding-bottom: 1%;
}

.colorbox div {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 5px;
}

.background-color-input p {
    position: relative;
    translate: -125px;
    font-size: 16px;
    cursor: pointer;
    pointer-events: none;
}

#back {
    appearance: none;
    -webkit-appearance: none;
    width: 140px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    padding: 0px;
    cursor: pointer;
    border: 2.5px solid var(--line-color);
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.25);
}

#back::-webkit-color-swatch-wrapper {
    padding: 0px;
}

#back::-webkit-color-swatch {
    border: none;
    padding: 10px;
}

.colorbox label {
    opacity: 0;
    transition: all 0.2s ease-in-out;
}

.colorbox div:hover label {
    opacity: 1;
}

#reset,
#reload {
    background-color: var(--background-color);
    color: var(--text-color);
    border: 2.5px solid var(--line-color);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: .2s ease-in-out;
    width: 140px;
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.25);
}

#reset:hover {
    background-color: var(--line-color);
}

#reload:hover {
    border-color: red;
    background-color: red;
}

/* PROJECT PAGE STYLING */
.content-wrapper {
    display: flex;
    margin: 0 2% 0 2%;
    padding-bottom: 2%;
}

.text-area {
    width: 75vw;
    margin-right: 5vw;
}

.text-area div {
    margin-top: 2%;
    margin-right: 1%;
    font-size: large;
    line-height: 25px;
}

ul {
    margin-left: 2%;
}

h2,
h3 {
    font-weight: normal;
    margin-top: 1%;
    margin-bottom: 1%;
}

.img-area {
    width: 20vw;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 2%;
}

hr {
    margin: 0 2% 0 2%;
    color: #50C6DB;
    border: 1px solid #50C6DB;
}

.backlink-line {
    margin: 0 0 1% 0;
    border: 1px solid lightslategray;
}

.backlink {
    position: initial;
    bottom: 0;
    padding-bottom: 1%;
}

.backlink a {
    color: var(--text-color);
    transition: text-decoration 0.4s ease, color 0.4s ease;
    text-decoration: underline;
}

.backlink a:hover {
    color: var(--line-color);
    text-decoration: underline;
}

.link {
    text-decoration: underline solid var(--line-color);
    color: var(--line-color);
    text-decoration-thickness: 2.px;
    text-underline-offset: 4px;
}

/* MOBILE */

.hamburger {

    width: 100%;
    height: 24px;
    position: fixed;
    top: 0;
    padding: 2%;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10000;
}

.hamburger span {
    height: 3px;
    width: 30px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    margin-left: 1%;
}

.hamburger.active span:nth-child(2) {
    transform: translateX(5px);
}

.hamburger.active span:nth-child(3) {
    transform: translateX(10px);
}

#mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 50vw;
    background-color: var(--background-color);
    opacity: .9;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 9998;
}

#mobile-nav ul {
    list-style: none;
    padding-top: 75%;
}

#mobile-nav li {
    margin: 20px 0;
}

#mobile-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: larger;
    transition: color 0.2s;
}

#mobile-nav.active {
    transform: translateX(0);
}

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

    .hamburger {
        display: flex;
    }

    html {
        width: 100vw;
    }

    #desktop-nav {
        display: none;
    }

    .colorbox {
        transform: translateY(25px);
    }

    #reload {
        display: none;
    }

    .front {
        font-size: 100px;
    }

    .frontend {
        transform: translateY(25px);
    }

    .profile-picture {
        display: flex;
        justify-content: center;
    }

    .profile-picture img {
        position: unset;
        height: 50vh;
        margin-right: 0px;
        transform: none;
    }

    .title {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 20vh;
    }

    /* PROJECT PAGE */
    .content-wrapper {
        flex-direction: column;
        gap: 40px;
        margin: 0;
        width: 100vw;
        overflow-x: hidden;
    }

    .text-area,
    .img-area {
        width: 100vw;
        padding: 3%;
    }

    .img-area {
        justify-content: center;
    }

    .parallax-img {
        width: 90vw;
    }
}