@font-face {
    font-family: 'AmaticSC'; 
    src: url('font/amatic/AmaticSC-Regular.ttf') format('woff'); 
    font-weight: normal; 
}
  
@font-face {
    font-family: 'AmaticSC'; 
    src: url('font/amatic/AmaticSC-Bold.ttf') format('woff'); 
    font-weight: bold; 
}

/* de schimbat in format woff */


* { 
    -moz-box-sizing: border-box; 
    -webkit-box-sizing: border-box; 
     box-sizing: border-box; 

}

html{
	height:100%;
}

body{
	min-height:100%;
	width:100vw;
    background-color:black;
    position:relative;
    margin: 0;
    padding:0;
    overflow-x:hidden ;
    font-family:'AmaticSC';
}


a{
    text-decoration:none;
    color:black;
}


.catimage{
    position:absolute;
    width:80vw;
    height:auto;
    max-width:90%;
    max-height:120vh;
    right:0px;
    top:0px;   
}


.dummycatdiv{
    aspect-ratio:12/9;
    position:relative;
    top:0;
    max-height:120vw;
}


.arrow {
    width: 0; 
    height: 0; 
    border-left: 20vw solid transparent;
    border-right: 20vw solid transparent;
    position: absolute;
    border-top: 100vw solid #c2c2c2;
}
.arrow-left{
    transform:rotate(-40deg);
    top:0vw;
    left:-5vw
} 
.arrow-right{
    transform:rotate(50deg);
    right:-20vw;
    top:-35vw;
}

.relative-container{
    position: absolute;
    width:100vw;
    overflow:hidden;
    aspect-ratio:1/1;
    height: fit-content;
    
}



.sketch-div
{
    position:absolute;
    background-image:url("div.svg");
    background-size: 100% 100%;
}

/* div-urile din index */
#greeting-div{
    font-size: 3vw;
    aspect-ratio:3/4;
    width:35vw;
    left:15vw;
    top:7vw;
}
/* #roses-div{
    position:absolute;
    background-image:url("roses.svg");
    background-size: 100% 100%;
    background-color: rgba(255, 0, 0, 0.219);
    top:-1vw;
    width:93vw;
    height: 93vw;
    left:4vw;
} */
#menu-div{
    aspect-ratio:1/1;
    width:40vw;
    top:27vw;
    left:45vw;
}
#about-div{
    font-size:3vw;
    aspect-ratio:3/2;
    width:35vw; 
    top:62vw;
    left:20vw;
}



/* ------------ */
/* divs din ctfmenu */
#menu-footer{
    padding-left:7vw;
    padding-top:1.5vw;
    padding-bottom:0;
    width:80vw;
    height:7vw;
    left:10vw;
    top:75vw;
}

.category{
    top:5%;
    height:90%;
    width:0.2vw;
    right:1vw;
}
#category-container{
    padding:0;
    padding-top:1vw;
    font-size:3vw;
    padding-left: 4vw;
    width: 60vw;
    height:5vw;
    left:30vw;
    top:23vw;
}
#platform-container{
    position:absolute;
    top:0;
    width:100%;
    padding-top:0.5vw;
    padding-bottom:1vw;
}
.list-header{
    width:100%;
    height:6%;
    position:relative;
    top:13%;
    text-align:center;
    font-size:2.5vw;
}

#list-of-type{
    position:absolute;
    top:0; 
    width:100%;
    padding-top:0.5vw;
    padding-bottom:1vw;
}
#list-of-difficulty{
    width:100%;
    height:5%;
    position:relative;
    top:13%;
    padding-left:17%;
}
#category-filter-container{
    padding:0;
    width:17vw;
    height:50vw;
    left:10vw;
    top:22vw;
}
#ctfmenu-searchbox{
    width:20vw;
    height:3vw;
    right:15%;
    top:50%;
}
#CTF-text{
    top:20%;
    left:6vw;
    position:absolute;
    font-size:9vw;
}
#writeups-text{
    top:5vw;
    left:15vw;
    font-size:6.5vw;
    position: absolute;
}
#ctfmenu-header{
    padding:0vw;
    width:80vw;
    height:15vw;
    left:10vw;
    top:5vw;
}
/* -------------- */
/* ctfsolution divs */
.solution-category{
    position:relative;
    padding:1vw;
    width:fit-content;float:left;
    font-size:3vw;
}
#solution-flower{
    width:18vw;
    height:17vw;
    right:8vw;
    top:4vw;
}
#solution-content{
    background-color: rgb(255, 255, 255);
    padding-left:5vw;
    padding-right:5vw;
    width:80vw;
    height:fit-content;
    left:10vw;
    top:15vw;
    position:relative;
    border-radius: 5vw;
    border:2px solid black;
    overflow-wrap: break-word;
    white-space: normal; 
    font-size:1rem;
    font-family: Arial, Helvetica, sans-serif;
    
}

#solution-content > div > div > div > div > span,
#solution-content > div > div > div > span,
#solution-content > div > div > span,
#solution-content > div > span,
#solution-content > span,
#solution-content > div > div > div > div,
#solution-content > div > div > div,
#solution-content > div > div,
#solution-content > div
{
    overflow-wrap: break-word;
    position: relative;
    white-space: normal;
    border-radius: 1vw;
    font-size:1rem;
    
}
#solution-content>img,
#solution-content>div>img
{
    border:0.2vw solid black;
    border-radius: 1vw;
}

#solution-duck{
    width:17vw;
    bottom:0vw;
    right:0vw;
    aspect-ratio:0.85;
    position:absolute;
}

/* 
@keyframes MoveUpDown {
    0%, 100% {
      top: 46vw;
    }
    50% {
      top:50vw;
    }
  } */
#solution-iepure{
    width:10vw;
    aspect-ratio: 0.351;
    left:2vw;
    top:50vw;
    /* animation: MoveUpDown 10s linear infinite; */
}
/* -------------- */

/* RESIZED DIVS */


@media only screen and (max-width: 600px) {
    #ctfmenu-header{
        padding:0vw;
        width:90vw;
        height:40vw;
        left:5vw;
        top:5vw;
    }

    #CTF-text{
        font-size:15vw;
        left:10vw;
        top:10vw
    }
    #writeups-text{
        left:23vw;
        font-size:8vw;
        top:15vw;
    
    }
    #ctfmenu-searchbox{
        width:30vw;
        height: 5vw;
        top:26vw;
        right:15vw;
        
    }
    .search-box input[type=text] {
        font-size: 3.5vw !important;
        width:20vw;
        font-weight:bold;
        position:absolute;
        top:0vw;
        right:10vw;
        background-color: rgba(255, 0, 0, 0);
    }
    .sketch-div-button{
        width:5vw !important ;
        height:4vw !important;
        right:-5vw !important;
    }


    #category-filter-container{
        width:90vw;
        height: 35vw;
        left:5vw;
        top:50vw;
        visibility: hidden;
        
    }
    .list-header{
        position:absolute;
        height:35vw;
        width:30vw;
        visibility: visible;
        padding:5vw;
    }

    #menu-footer-mini{
        visibility: visible;
    }

    #dificultate-header{
        font-size:5vw;
        visibility: visible;
        background-image: url("div.svg");
    }
    #tip-header{
        left:30vw;
        font-size:5vw;
        visibility: visible;
        background-image: url("div.svg");
        top:-1vw;
       
    }

    #platforma-header{
        left:60vw;
        font-size:5vw;
        visibility: visible;
        background-image: url("div.svg");
    }
    .pannel-scroll{
        width:30vw !important;
        visibility: visible;

    }
    .pannel-scroll-effect{
        display:none;
        

    }
    #small-screen-tip-container{
        left:30vw;
        position: absolute;
        top:11vw;
        height:20vh;
        visibility: visible;
    }
    #small-screen-platforma-container{
        left:60vw;
        position: absolute;
        top:15vw;
        height:20vh;
        visibility: visible;

    }
    .pannel-choice{
        font-size: 3.5vw;
        visibility: visible;
    }
    #list-of-difficulty{
        height:3vw;
        top:15vw;
        padding-left:7vw;
        visibility: visible;
    }

    .checkbox{
        left:0px;
        height: 3vw !important;
        visibility: visible;
    }
    .checkmark{
        height:1.5vw!important;
        left:0.5vw !important;
        top:0.5vw !important;
        visibility: visible;

    }



    .field{
        text-align:center;
        height: 5vw;
        font-size:3.5vw;
    }
    #sort-dificultate{
        height: 3.5vw;
        top:10%;
    }



    #category-container{
        width:90vw;
        left:5vw;
        height: 7vw;
        top:95vw;
    }




    .ctfdatawrapper{
        top:105vw !important;
        left:10vw !important;
        width:90vw !important;
        left:5vw !important;
        height:60vw !important;
        
    }
    .ctfdata{
        width:98% !important;
        height: 6vw !important;
    }
    .ctf-field{
        height: 100% !important;
    }

    

    #menu-footer{
        top:170vw;
        width:90vw;
        left:5vw;
    }

    .back{
        display:none;
    }

}





.flower-div
{
    position:absolute;
    background-image:url("old_img/flower.svg");
    background-size:cover;
}

.flowers-div
{
    position:absolute;
    background-image: url(flowers.svg);
    background-size: cover;

}

.frame-div
{
    position:absolute;
    background-image: url(old_img/frame.svg);
    background-size: cover;

}



.border-div
{
    position:absolute;
    background-image:url("old_img/border.svg");
    background-size:cover;
}
/* .dino-div
{
    position:absolute;
    background-image:url(dino.svg);
    background-size:cover;
}
*/
.iepure-div
{
    position:absolute;
    background-image:url(iepure.svg);
    background-size:cover;


}

.tree-div
{
    position:absolute;
    background-image:url(old_img/tree.svg);
    background-size:cover;


}

.duck-div
{
    position:absolute;
    background-image: url(old_img/duck.svg);
    background-size: cover;
}

.sleepy-duck-div{
    position:absolute;
    background-image: url("old_img/sleepy_duck.svg");
    background-size: cover;
    aspect-ratio: 1.4/1;
}

.wojack-div
{
    position:absolute;
    background-size:cover;
    background-image: url(wojack.svg);
}

.no-space-bold{
    line-height: 1;
    font-weight: bold;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

.sketch-link{
    line-height: 5vw;
    font-size: 4vw;
    font-weight: bold;
}
.sketch-link:hover{
    font-size:4.2vw;
}

.search-box{
    padding:0;
    position: absolute;
    /* background-color:red; */
}
#s1{
    top:5%;
    height:90%;
    width:0.2vw;
}
#s2{
    left:5%;
    width:90%;
    height:0.2vw;
}
#s3{
    left:5%;
    width:90%;
    height:0.2vw;
    bottom:0;
}
#s4{
    top:5%;
    height:90%;
    width:0.2vw;
    right:0;
}

.search-box1{
    position:absolute;
    background-color:black;
    border-radius:10vw;
}


.hover-underline-animation {
    display: inline-block;
    position: relative;
    color: black;
}
  
.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 0.2vw;
    bottom: 0;
    left: 0;
    background-color: black;
    transform-origin: bottom left;
    transition: transform 0.25s ease-out;
}
  
.hover-underline-animation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}


/* The container */
.container {
    position: absolute;
    cursor: pointer;
}
  
  /* Hide the browser's default checkbox */
.container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}


.checkbox {
    position: relative;
    float:left;
    height: 2vw;
    border-radius:100%;
    background-color: white;
    aspect-ratio: 1/1;
    border:0.2vw solid black;
    cursor:pointer;
    margin-left:0.2vw;
}

.checkmark{
    position: absolute;
    left:0.35vw;
    top:0.35vw;
    height: 1vw;
    border-radius:100%;
    background-color: rgb(0, 0, 0);
    aspect-ratio: 1/1;
}


.pannel-scroll{
    overflow-y:scroll;
    width:100%;
    height:20%;
    width:80%;
    left:10%;
    position:relative;
    top:13%;
    text-align:center;
    font-size:2vw;

}
.pannel-scroll-effect{
    background: linear-gradient(0deg, rgb(255, 255, 255) 0%, rgba(255,255,255,0) 25%,rgba(255,255,255,0) 75%, rgb(255, 255, 255) 100%);
    height:100%;
    width:100%;
    position:sticky;
    top:0;
    pointer-events: none;
}

.pannel-scroll::-webkit-scrollbar {
    display:none;
}


.pannel-choice{
    display: inline-block;
    width:100%;
    text-decoration:underline;
    cursor:pointer;
}

  
.search-box input:focus{
    outline:none;

}
  
.search-box input[type=text] {
    font-size: 2.5vw;
    border: none;
    width:20vw;
    padding-left:2vw;
    padding-right:2vw;
    padding-top:0px;
    font-family:'AmaticSC','Kalam','Brush Script MT';
    font-weight:bold;
}
  
.sketch-div-button {
    background-color: white;
    float: right;
    width:3vw;
    height:2vw;
    border: none;
    cursor: pointer;
    position:absolute;
    top:0.5vw;
    right:-4vw;
    background-image:url("lupa.svg");
    background-position: center;
    background-repeat: no-repeat;
}

.sketch-div-button:hover {
    width:3.3vw;
    height:2.3vw;
}

.sketch-div-button:active {
    width:3vw;
    height:2vw;
}

.down-arrow{
    background-image: url("down_arrow.svg");
    position:absolute;
    aspect-ratio:1/1; 
    height:100%;
    right:1vw;
    top:0;
    cursor: pointer;
}
  


.ctfdatawrapper{
    position:absolute;
    width:60vw;
    height:40vw;
    top:30vw;
    left:30vw;
    padding:0;
    overflow-y:scroll;
    overflow-x: hidden;
}

.ctfdatawrapper::-webkit-scrollbar {
    display:none;
}
.ctfdata{
    margin-bottom:0.5vw;
    position:relative;
    padding:0;
    padding-left:4vw;
    width:58vw;
    height:3.5vw;
    font-size: 2vw;
    font-weight:bold;
    padding-top:0.75vw;
    float:left;
}

.ctfdata:nth-of-type(odd){
    right:-1.5vw;
}


.field{
    position:relative;
    float:left;
    width:23%;
    overflow:hidden;
    
    
}

.ctf-field{
    padding-left:1vw;
    height:2.5vw;
}

.back{
    font-weight: bold;
    font-size:3vw;
}
.back::after{
    content:"meniu";
    transition: all 0.6s ease;
}
.back:hover::after{
    content:"< meniu";
}


.ctfdescription-div{
    font-weight:normal;
    font-family: Arial, Helvetica, sans-serif;
    word-wrap: break-word;
    font-size: 2vw; 
    position:relative;
    width:60vw;
    padding-top:3vw;
    left:0;
}

.ctftitlu-div{
    font-size: 7vw;
    position:relative;
    width:fit-content;
    border-bottom:0.3vw solid black;
}

.ctfcontent-div{
    font-family: Apple Chancery, cursive, sans-serif;
    font-size: 1.5vw;
    padding:10vw;
    width:85%;
    height:fit-content;
    min-height:10%;
    left:7.5%;
    top:7vw;
    position:relative;
}
.ctfflag-div{
    z-index:0;
    font-size: 2.5vw;
    position:relative;
    width:80%;
    padding:2vw;
    padding-left:10%;
    top:23vw;
    left:10vw;
}



/* de pus dupa ce pun un element cu float */
.clear {
    clear: both;
}

#TextArea {
    resize: none;
    position:absolute; 
    width:70vw; 
    height: 30vw;
    right:5%;
    border:2px solid black;
    font-size:1.5vw;
    padding:5%;
    font-family:'Courier New';
    overflow: scroll;
    border-radius:20px;
    overflow-x: hidden;
}

#TextArea::-webkit-scrollbar{
    display: none;
}

.color-box {
    width: 1.7vw;
    height: 1.7vw;
    cursor: pointer;
    margin: 0;
    border:1px solid rgb(201, 203, 190);
}

#movable-Div2 button{
    background-color: rgb(255, 255, 255);
    border:1px solid rgb(208, 208, 208);
    border-radius: 3px;
    font-family:'AmaticSC';
    font-weight: bold;
    font-size:1vw;
}

#movable-Div2 color-box{
    background-color: rgb(255, 255, 255);
    border:1px solid rgb(208, 208, 208);
    border-radius: 3px;
    font-family:'AmaticSC';
    font-weight: bold;
}


#movable-Div2 button:active{
    background-color: rgb(199, 199, 199);
    border:1px solid rgb(112, 112, 112);
    border-radius: 3px;
}

#movable-Div input{
    background-color: rgb(255, 255, 255);
    border:1px solid rgb(208, 208, 208);
    border-radius: 3px;
    font-family:'AmaticSC';
    font-weight: bold;
    font-size:1.5vw;
}


#movable-Div button{
    background-color: rgb(255, 255, 255);
    border:1px solid rgb(208, 208, 208);
    border-radius: 3px;
    font-family:'AmaticSC';
    font-weight: bold;
}


#movable-Div button:active{
    background-color: rgb(199, 199, 199);
    border:1px solid rgb(112, 112, 112);
    border-radius: 3px;
}

#loaded_ctf{
    background-color: white;
    /* pus sa nu mai apara eroare */
}

#loaded_ctf::-webkit-scrollbar {
    display:none;
}

input[type="range"] {
    width: 10vw;
}


.editor-ctf{
    padding:0;
    font-size:1.2vw;
    text-align: center;
    border:1px solid black;
    position:relative;
    width:15vw;
    height:2vw;
}

.resurse-column{
    position:relative;
    padding:1vw;
    padding-left:2vw;
    height:5vw;
}

.resurse-border-left{

    transform: scaleX(-1);
    width:14vw; left:12vw;
    top:-4vw;
    aspect-ratio: 0.63;
}
.resurse-border-right{
    width:14vw;
    right:12vw;
    top:-4vw;
    aspect-ratio: 0.63;
}

.resurse-container{
    position:relative;
    top:70vw;
    width:100vw;
    height:60vw; 
}
#a-mimir{
    margin-bottom:100vw;
    width:80vw;
    height: 10vw;
    padding:0;
    top:300vw;
    left:10vw;
    text-align:center;
    padding-top:3vw;
    font-size:4vw;
}
#resurse-duck{
    top:-4vw;
    right:10vw;
    width:18vw;
}
.resurse-title{
    width:60vw;
    height: 13vw;
    padding:0;
    top:0vw;
    left:20vw;
    text-align:center;
    padding-top:5vw;
    font-size:4vw;
}


.padding-7vw{
    padding:7vw;
}



