*
{
    margin: 0;
    padding: 0;
    font-family: 'Raleway', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

}

body{
    color: black;
}

.webgl
{
    position: fixed;
    top: 0;
    left: 0;
    outline: none;
    background: linear-gradient(0deg, hsl(200, 50%,100%) 50%, hsl(214,80%,70%) 100%);


    cursor: move; /* fallback if grab cursor is unsupported */
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab;
}

.webgl:active{
    cursor: grabbing;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
}


.title{
    font-size: 96px;
    font-weight: 600;
    line-height: 100%;
    text-transform: uppercase;
}

h1{
    font-size: 34px;
    font-weight: 200;
    line-height: 120%;
    margin-bottom: -50px;
}

h2{
    font-size: 26px;
    font-weight: 600;
    line-height: 120%;
    color:white;
    position: relative;
    bottom: 65px;
}

h3{
    font-size: 20px;
    font-weight: 700;
    line-height: 140%;
}

h4{
    font-size: 34px;
    font-weight: 400;
    line-height: 120%;
}

h5{
    font-size: 26px;
    font-weight: 600;
    line-height: 120%;
    color:white;
    position: relative;
}

h6{
    font-size: 38px;
    font-weight: 200;
    line-height: 120%;
}

p2 {
    font-size: 14px;
    line-height: 150%;
    font-weight: 400;
    margin-bottom: -50px;
    text-align: justify;
    color:white;
}

p3 {
    font-size: 24px;
    line-height: 150%;
    font-weight: 400;
    color:white;
}

p4 {
    font-size: 20px;
    line-height: 150%;
    font-weight: 400;
    margin-bottom: -50px;
    text-align: justify;
    color:white;

}    

p {
    font-size: 18px;
    font-weight: 400;
    line-height: 140%;
    color:white ;
    position: relative;
    bottom: 50px;
    width: 250px;
}

a{
   color: #757BFD;
   text-decoration: none;
}

a:hover {
    font-weight: 700;
    cursor: pointer;
}

#loading-image {
    background-image: url('img/background.jpg');
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Ensure it stays behind other content */
}

.helptext{
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: white;
}

.sign {
    position: fixed;
    padding: 0 20px 0 20px;
    width: 100%;
    max-width: 560px;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 16px;
    box-sizing: border-box;
    z-index: 777;
    text-align: center;
}

#animation {
    width: 88px;
    height: 48px;
    margin: auto;
    margin-bottom: 12px;
    background-image: url(../img/drag_animation.svg);
}

.project {
    position: fixed;
    width: 90%;
    max-width: 400px;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 16px;
    padding: 0px;
    z-index: 777;
    box-sizing: border-box;
  }

.content {
    text-align: left;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 16px;
}

.text {
    width: 100%;
    display: block;
}

.thumbnail{
    display: flex;
    width: 130px;
    min-width: 130px;
    height: 130px;
    margin-right: 16px;
    border-radius: 10px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    bottom: 50px;
}

.button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 1px;
    border: 0.5px solid white; /* White outline */
    background-color: rgba(0, 0, 0, 0.75); /* Black background */
    color: white; /* White text */
    border-radius: 10px;
    transition: all 0.25s ease-in-out; /* Smooth transition for all properties */
    position: relative;
    bottom: 50px;
    overflow: hidden; /* Ensures the pseudo-element doesn't overflow */
    z-index: 1; /* Ensures the text is above the pseudo-element */
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white; /* White background for the fade effect */
    opacity: 0; /* Start fully transparent */
    transition: opacity 0.25s ease-in-out; /* Smooth fade transition */
    z-index: -1; /* Ensures the pseudo-element is behind the text */
}

.button:hover {
    cursor: pointer;
    color: black; /* Black text */
    border: 0.5px solid white; /* White outline */
    transform: scale(1.05); /* Slightly scale up */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6); /* Glow effect */
}

.button:hover::before {
    opacity: 1; /* Fade in the white background */
}

.button:not(:hover)::before {
    opacity: 0; /* Fade out the white background */
    transition: opacity 0.25s ease-in-out; /* Smooth transition for retracting */
}

.button:active { 
    cursor: pointer;
    color: white; 
    background-color: black;
    transform: scale(1); /* Reset scale on click */
}

#switch {
    position: fixed;
    z-index: 888;
    bottom: 20px;
    right: 20px;
}
  
#switch input { 
    display: none;
}

.icon {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

#moon{
    display: none;
}

#sun{
    display: block;
}

input:checked ~ #moon {
    display: block;
}

input:checked ~ #sun {
    display: none;
}
  
/* Define the pop-up animation */
@keyframes popUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Define the fade-out animation */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: scale(0.9); /* Optional: Add a slight scale-down effect */
    }
}

.modal {
    height: 100%;
    width: 100%;
    top: 0;
    overflow-y: scroll;
    background-color: black;
    color: white;
    position: fixed; 
    z-index: 999; 
    display: none;
    animation: popUp 0.3s ease-out;
}

.modal.closing {
    animation: fadeOut 0.3s ease-out;
}

.header {
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.header-wrapper {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    max-width: 800px;
    margin: auto;
    filter: drop-shadow(0 0 50px black);
}

.modal-content-wrapper {
    max-width: 800px;
    margin: 0 auto 80px auto;
    display: flex;
    flex-direction: column;
    row-gap: 80px;
    justify-content: space-between;
}

.project-img{
    width:100%;
    height:auto;
}

.credits {
    text-align: center;
}

#logo{
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 16px;
    font-weight: 700;
    line-height: 100%;
    z-index: 999;
}

.button-round {
    background-color: rgba(0, 0, 0, 0.75); /* Black background */
    color: white; /* White text */
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 1px;
    transition: all 0.25s ease-in-out; /* Smooth transition for all properties */
    position: relative;
    margin-right: 10px;
    overflow: hidden; /* Ensures the pseudo-element doesn't overflow */
    z-index: 1; /* Ensures the text is above the pseudo-element */
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-round::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white; /* White background for the fade effect */
    opacity: 0; /* Start fully transparent */
    transition: opacity 0.25s ease-in-out; /* Smooth fade transition */
    z-index: -1; /* Ensures the pseudo-element is behind the text */
}

.button-round:hover {
    cursor: pointer;
    color: black; /* Black text on hover */
    transform: scale(1.05); /* Slightly scale up */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6); /* Glow effect */
}

.button-round:hover::before {
    opacity: 1; /* Fade in the white background */
}

.button-round:not(:hover)::before {
    opacity: 0; /* Fade out the white background */
    transition: opacity 0.25s ease-in-out; /* Smooth transition for retracting */
}

.button-round:active {
    cursor: pointer;
    color: white; /* White text on click */
    background-color: rgb(0, 0, 0); /* Black background on click */
    transform: scale(1); /* Reset scale on click */
}

.close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
}

.embed-container {
    --video--width: 960;
    --video--height: 540;
  
    position: relative;
    padding-bottom: calc(var(--video--height) / var(--video--width) * 100%); /* 41.66666667% */
    overflow: hidden;
    max-width: 100%;
    background: black;
  }
  
  .embed-container iframe,
  .embed-container object,
  .embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

/* Fade-In Effect */
.visible {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.2s linear;
}
/* Combined .hidden class */
.hidden {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.2s, opacity 0.2s linear;
}

/* Animation for sliding in */
@keyframes slideInFromBottom {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Class to apply the animation */
.slide-in {
    animation: slideInFromBottom 0.5s ease-out forwards;
    visibility: visible; /* Ensure the element becomes visible */
    opacity: 1; /* Ensure the element becomes fully opaque */
}

@media only screen and (max-width: 1200px) {
    .modal-content-wrapper {
        margin: 48px 48px 48px 48px;
        row-gap: 64px;
    }

    .header-wrapper {
        margin: auto 48px auto 48px;
    }

}

@media only screen and (max-width: 600px) {
    
    h1 {
        font-size: 20px;
        margin-bottom: auto;
        width: auto;
    }

    h2 {
        font-size: 20px;
        margin-bottom: auto;
        width: auto;
    }

    p2 {
        font-size: 14px;
        margin-bottom: auto;
        width: auto;
    }

    p {
        font-size: 16px;
        margin-bottom: auto;
        width: auto;
    }

    .helptext span {
        display: none;
      }
    .helptext:after {
        content:'Swipe to explore';
    }

    #animation{
        background-image: url(../img/swipe_animation.svg);
    }

    .modal-content-wrapper {
        margin: 32px 20px 48px 20px;
        row-gap: 40px;
    }

    .header {
        height: 360px;
        width: auto;
    }

    .header-wrapper {
        margin: auto 20px auto 20px;
    }

    .title{
        font-size: 48px;
        width: auto;
    }
    
  }