:root {
    --text: #FFFFFF;
    --textHighlight: #b7b7b7;
    --primary: #FFE44D;
    --primaryHighlight: #f5e27b;
    --background: #07060D;
    --navBackground: #0d0d11;
    --backgroundHighlight: #18181e;
    
  }

body {
    font-family: 'Hanken Grotesk', sans-serif;
    background-color: var(--navBackground);
    color: var(--text);
    padding: 0px;
    margin: 0px;

}  

::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

/* Track */
::-webkit-scrollbar-track {
    background: transparent;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #444347;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ffffff;
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 20px 20px #23232329;
}

/* ––––––––––––––––––––––––––––––––––––––––––––––– 
Mobile Version
–––––––––––––––––––––––––––––––––––––––––––––––––– */

/*  Navigation bar
–––––––––––––––––––––––––––––––––––––––––––––––––– */
nav {
    position: fixed;
    top: 0;
    display: flex;
    width: 100%;
    height: 10%;
    justify-content: space-between;
    z-index: 1;
}

nav #left {
    display: flex;
    align-items: center;

}

nav #left img {
    margin: 2%;
    max-height: 70%;
    width: auto;
}

nav #right {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20%;
}

nav #right span {
    background-color: transparent;
    border: transparent;
    color: var(--text);
    font-weight: bolder;
    margin-right: 10px;
}

nav #right a {
    display: none;
}


/*  Side bar
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    background-color:  var(--navBackground);
    backdrop-filter: blur(90%);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    
}
    
.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: var(--text);
    display: block;
    transition: 0.3s;
}
    
.sidenav a:hover {
    color: var(--textHighlight);
}

.sidenav #active {
    color: var(--primary);
}
    
.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}


/*  Main page content
–––––––––––––––––––––––––––––––––––––––––––––––––– */
main {
    margin-block: 10vh;
}


/* Contact
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.Contact {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 35vw;
}

.Contact .top {
    color: var(--primary);
    height: auto;
    font-size: 3vw;
}

.Contact .bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100vw;
    height: 50vw;
}

.Contact .bottom #text {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: absolute;
}

.Contact .bottom #text h1 {
    color: var(--text);
    font-size: 30vw;
    margin: 0;
    line-height: 0.9;
    
}

.Contact .bottom #img {
    display: flex;
    justify-content: center;
    align-items: center;
    translate: none;
    rotate: none; 
    scale: none; 
    width: 100vw;
    
}

.Contact .bottom #img img{
    translate: none;
    rotate: none; 
    scale: none; 
    transform: translate3d(0px, 50%, 0px);
    width: 90vw;
    height: auto;
}

/*  Links
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.Links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 30vh;
    gap: 5%;
}

.Links a {
    color: var(--text);
    font-size: 8vw;
    line-height: 2;
    cursor: pointer;
}

.Links a:hover {
    color: var(--textHighlight);
}


  
/*  Footer
–––––––––––––––––––––––––––––––––––––––––––––––––– */
footer {
    display: flex;
    justify-content: center;
}

footer p {
    color: var(--textHighlight)

}

  
/*  Contact dialog
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.contactDialog[open]{
    background-color: var(--backgroundHighlight);
    border: transparent;
    border-radius: 20px;
    color: var(--text);
    width: 75vw;
    height: 70vh;
    z-index: 2;
}

.contactDialog::backdrop {
    background-color: black;
    opacity: 0.5;
}

.contactDialog header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 10%;
}


.contactDialog header .closebtn {
    font-size: 36px;
    margin-left: 50px;
    text-decoration: none;
    color: var(--text);
}

.contactDialog form {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    flex-direction: column;
    height: 90%;
    gap: 2%;
}

.input-group {
    position: relative;
    display: flex;
}
   
.input {
    border: solid 1.5px var(--textHighlight);
    border-radius: 1rem;
    background: none;
    padding: 1rem;
    font-size: 1rem;
    color: var(--text);
    transition: border 150ms cubic-bezier(0.4,0,0.2,1);
    width: 100%;
}

#message {
    height: 20%;
}
   
.user-label {
    position: absolute;
    left: 15px;
    color: var(--textHighlight);
    pointer-events: none;
    transform: translateY(1rem);
    transition: 150ms cubic-bezier(0.4,0,0.2,1);
}
   
/* .input:focus, input:valid {
    outline: none;
    border: 1.5px solid #1a73e8;
}
   
.input:focus ~ label, input:valid ~ label {
    transform: translateY(-50%) translateX(-10%) scale(0.8);
    background-color: var(--backgroundHighlight);
    padding: 0 .2em;
    color: #2196f3;
} */

.input:not(:placeholder-shown).input:valid, .input:focus {
    outline: none;
    border: 1.5px solid #1a73e8;
}
   
.input:not(:placeholder-shown).input:valid ~ label, .input:focus ~ label {
    transform: translateY(-50%) translateX(-10%) scale(0.8);
    background-color: var(--backgroundHighlight);
    padding: 0 .2em;
    color: #2196f3;
}

.input:not(:placeholder-shown).input:invalid {
    outline: none;
    border: 1.5px solid #ff0000;
}

.input:not(:placeholder-shown).input:invalid ~ label  {
    transform: translateY(-50%) translateX(-10%) scale(0.8);
    background-color: var(--backgroundHighlight);
    padding: 0 .2em;
    color: #ff0000;
}


.button {
    align-self: stretch;
    padding: 8px;
    outline: 0;
    border: 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    background-color: var(--primary);
    color: var(--text);
    cursor: pointer;
}

/*  overlay
–––––––––––––––––––––––––––––––––––––––––––––––––– */

#overlay {
    background-color: transparent;
    width: 75%;
    height: 50%;
    position: absolute;
    left: 12%;
    top: 20%;
    display: none;
    justify-content: center;
    align-items: center;
}

.lds-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
  }
  .lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #fff;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #fff transparent transparent transparent;
  }
  .lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
  }
  .lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
  }
  .lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
  }
  @keyframes lds-ring {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

/* Hide the default checkbox */
.container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
  }
  
  .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    cursor: pointer;
    font-size: 20px;
    user-select: none;
    border-radius: 50%;
    background-color: transparent;
  }
  
  /* Create a custom checkbox */
  .checkmark {
    position: relative;
    top: 0;
    left: 0;
    height: 1.3em;
    width: 1.3em;
    transition: .3s;
    transform: scale(0);
    border-radius: 50%;
    background-color: #20c580;
  }
  
  /* When the checkbox is checked, add a blue background */
  .checker.succes ~ .checkmark {
    transform: scale(2.5);
  }
  
  /* Create the checkmark/indicator (hidden when not checked) */
  .checkmark:after {
    content: "";
    position: absolute;
    display: none;
  }
  
  /* Show the checkmark when checked */
  .checker.succes ~ .checkmark:after {
    display: block;
  }
  
  .checker.succes ~ .celebrate {
    display: block;
  }
  
  /* Style the checkmark/indicator */
  .container .checkmark:after {
    left: 0.45em;
    top: 0.25em;
    width: 0.30em;
    height: 0.5em;
    border: solid white;
    border-width: 0 0.15em 0.15em 0;
    transform: rotate(45deg);
  }
  
  .container .celebrate {
    position: absolute;
    transform-origin: center;
    animation: kfr-celebrate .4s;
    animation-fill-mode: forwards;
    display: none;
    stroke: #20c580;
  }
  
  @keyframes kfr-celebrate {
    0% {
      transform: scale(0);
    }
  
    50% {
      opacity: 1;
    }
  
    100% {
      transform: scale(2.2);
      opacity: 0;
      display: none;
    }
  }



/* ––––––––––––––––––––––––––––––––––––––––––––––– 
Desktop Version
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media only screen and (min-width: 800px) {

    /*  Navigation bar
    –––––––––––––––––––––––––––––––––––––––––––––––––– */
    
    nav {
        height: 10vh;
        position: relative;
    }
    
    
    nav #left img {
        width: auto;
        max-height: 100%;
    }
    
    nav span {
        display: none;
    }
    
    nav #right {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        width: 40%;
    }
    
    
    nav #right a {
        display: flex;
        padding: 2px 10px;
        color: var(--text);
        text-decoration: none;
    }
    
    nav #right a:hover {
        color: var(--textHighlight)
    }
    
    nav #right #active {
        color: var(--primary);
    }
    
    /* Contact */    
    .Contact {
        margin-bottom: 20vw;
    }
    .Contact .top {
        font-size: 1.5vw;
    }
    
    .Contact .bottom {
        height: 30vw;
    }
    
    
    .Contact .bottom #text h1 {
        font-size: 15vw;
    }
    
    .Contact .bottom #img {
        width: 100vw;

    }
    
    .Contact .bottom #img img{
        width: 50vw;
        height: auto;
    }

        /*  Links
    –––––––––––––––––––––––––––––––––––––––––––––––––– */
    .Links {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        height: 30vh;
        gap: 5%;
    }

    .Links a {
        color: var(--text);
        font-size: 2.5vw;
        line-height: 2;
    }

    .Links a:hover {
        color: var(--textHighlight);
    }
}