@font-face {
    font-family: 'OG_Renaissance_Secret-Rg';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2312-1@1.1/OG_Renaissance_Secret-Rg.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'CROOKED';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2307-2@1.0/CROOKED.woff2') format('woff2');
    font-weight: ;
    font-style: normal;
}


body {
    margin: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #222;
    color: #fff;
    font-family: 'OG_Renaissance_Secret-Rg'; 
    word-break: keep-all;
}


:lang(en) {
    font-family: 'CROOKED', 'OG_Renaissance_Secret-Rg';
}


*:not(:lang(en)) {
    font-family: 'OG_Renaissance_Secret-Rg';
}

body :where(*):not(:lang(en)) {
    font-family: inherit; 
}


#intro-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2;
    transition: opacity 0.5s ease-in-out;
    background: linear-gradient(to bottom, #d6d6d6, white, #FFD8C7);

}

#intro-img{
    width: 50vw;
    height: auto;
    position: absolute;
    transition: transform 1s ease;
    left: calc(50% - 25vw);

}

@keyframes ani{
   0%{transform:translate(0,0);}
   100%{transform:translate(0,20px);}
}  


#intro-container h1 {
    font-size: 10vw;
    margin-bottom: 20px;
    padding-top: 10vh;
    transform: translateY(3vh);
    padding-right: 2vw;
    text-align: right;
    color: #FFD8C7;
    pointer-events: none; 
    align-self: flex-end;

}


#intro-container h2 {
    position: absolute;
    top: 3vh;
    transform: translateY(-55%);
    font-size: 2vw;
    text-align: center;
    color: white;
    display: none;
    margin: 0;
}

#back-ment{
    text-align: left;
    font-size: 1.5vw;
    padding-left: 1vw;
    width: 40vw;
    position: absolute;
    top: -1vw;
    line-height: 1.5vw;
    left: 0;
}

#backment-bottom{
    width: 40vw;
    display: flex;
    font-size: 1.5vw;
    padding-left: 1vw;
    position: absolute;
    bottom: 0;
    left: 0;
    justify-content: space-between;

}

#startButton {
   position: absolute;
    right: 2vw; 
    top: 45%; 
    background-color: transparent;
    content: '';
    width: 3vw; 
    height: 3vw; 
    border-top: 0.3vw solid #444; 
    border-right: 0.3vw solid #444;
    border-left: 0px;
    border-bottom: 0px;
    transform: rotate(45deg); 
}

#startButton:hover {
   position: absolute;
    right: 2vw; 
    top: 45%; 
    background-color: transparent;
    content: '';
    width: 3vw; 
    height: 3vw; 
    border-top: 0.3vw solid white; 
    border-right: 0.3vw solid white;
    border-left: 0px;
    border-bottom: 0px;
    transform: rotate(55deg); 
}

#video {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    object-fit: cover;
    transform: scaleX(-1);
}

#captureButton1, #captureButton2 {
    bottom: 10vh;
    position: absolute;
    bottom: 5vh;
    padding: 1vh 4vw;
    font-size: 2vw;
    background-color: white;
    color: #444;
    border: none;
    cursor: pointer;
    z-index: 2;
    border-radius: 0.2vw;
}

#camera-container, #captureScreen, #threejs-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1;
}




#threejs-container {
    width: 100vw;
    height: 100vh;
    display: none; 
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; 
}

#message1 {
    position: absolute;
    top: 2vw;
    width: 60vw;
    font-size: 2vw;
    font-weight: bold;
    color: white;
    background: #4b4b4b;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
    display: block;
}

#side-message1{
    font-size: 2vw;
    width: 60vw;
    top: 6vw;
    text-align: center;
    position: absolute;
    color: #d6d6d6;
}

#message2 {
    position: absolute;
    top: 2vw;
    width: 70vw;
    font-size: 2vw;
    font-weight: bold;
    color: white;
    background: #4b4b4b;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

#side-message2{
    font-size: 2vw;
    width: 70vw;
    top: 6vw;
    text-align: center;
    position: absolute;
    color: #d6d6d6;
    display: none;
}

#loading-popup {
    display: none; 
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1em 2em;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 2vw;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000; 
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    width: 30vw;
    height: 10vh;
}


@keyframes blurFade {
    0%, 100% {
        filter: blur(0);
    }
    50% {
        filter: blur(5px);
    }
}

.blur-fade-animation {
    animation: blurFade 2s ease infinite;
}

#result-container{
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 2;
    top: 0;
    left: 0;
    pointer-events: none;
}


#top-ment{
    text-align: left;
    font-size: 2vw;
    left: 1vw;
    width: 40vw;
    position: absolute;
    top: -1vw;
    line-height: 2vw;
}


#result-title{
    text-align: left;
    font-size: 3vw;
    padding-left: 1vw;
    position: absolute;
    top: 75%;
    left: 0;
}

#result-title2{
    text-align: left;
    font-size: 3vw;
    position: absolute;
    top: 75%;
    left: 50%;
}

#btn-container {
    position: absolute;
    display: flex;
    width: 20vw;
    top: 88%;
    left: 50%;
    justify-content: space-between;
}
#btn-container button{
    background: #444;
    color: white;
    border-radius: 0.2vw;
    border: none;
    font-size: 1.5vw;
    cursor: pointer;
    padding: 0.6vh 2.5vw;
    pointer-events: auto;
    line-height: 1.5vw;
    margin-right: 1vw;
}

#btn-container button:hover {
    background:white !important;
    color: #444 !important;
}

#btm-ment{
    font-size: 1vw;
    position: absolute;
    top: 86%;
    left: 1vw;
    width: 30vw;
}

#archive-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-direction: column-reverse;
    width: 10vw;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 3;
}

#archive-container img {
    width: 20vh;  
    height: 20vh; 
    object-fit: cover; 
    box-shadow: -10px 0 15px -5px rgba(255, 255, 255, 0.8);
    background: white;
}
