@import url("base.css");
* {
    font-family: "Inter", sans-serif;
}
canvas {
    position: absolute;
    top: -7%;
    left: 0;
    z-index: 9999;
    pointer-events: none
}

.title {
    position:relative;
    font-size: 43vh;
    font-weight: 800;
    align-items: center;
}
.title2{
    display: none;
}
.title3{
    display: flex;
    flex-direction: column;
    position: relative;


}
.cherep{
    font-size: 15vh;
    font-weight: 800;
}
.reverse{
    display: flex;
    transform: scale(1, -1);
    position: absolute;
    top: 10vh;
}
.screen {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center; 
    overflow: hidden;
}

.screen-1{
    justify-content: center;
}
.screen-2 {
    justify-content: space-between;
    display: flex;
    flex-direction: column;


}

.puzzle-container {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 100px;
}
.drop-zone {
    width: 50%;
    aspect-ratio: 3 / 4;
    border: 2px dashed rgba(0,0,0,0.1); 
}
#skull-complete { width: 100%; height: 100%; object-fit: contain; }

.puzzle-pieces {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.piece { width: 150px; cursor: grab; }
.piece.dropped { display: none; }


.screen-3 {
    justify-content: center;
    flex-direction: column;
}
.bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20vw;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 3px #838383;
    z-index: 1;
    white-space: nowrap;
}
.game-area-smooth {
    position: relative;
    z-index: 10; 
    width: 80%;
    height: 300px;
}

.game-item-smooth {
    position: absolute;
    width: 25%;
    top: 50%;
    transform: translateY(-50%);
    transition: left 0.6s ease-in-out, filter 0.5s ease;
    cursor: pointer;
}
.game-item-smooth img { width: 100%; }
.is-blurred { filter: blur(40px); pointer-events: none; } 
.is-guessing { filter: blur(40px); pointer-events: auto; } 

.screen-4 {
    justify-content: center;
    flex-direction: column;
}

.tangle-container {
    position: relative;
    z-index: 10;
    width: 70%;
    height: 40vh;
    min-height: 400px;
    max-width: 900px;
    margin-top: 10%;
}
.tangle, .straight {
    width: 100%;
}

.modal { 
    position: relative; 
    background: #000; 
    color: #fff; 
    padding: 30px; 
    z-index: 20; 
    text-align: center; 
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
#game-task {
    font-size: 2rem;
    margin: 0 0 20px 0;
    text-transform: uppercase;
}
#start-game-btn {
    background: #fff;
    color: #000;
    font-family: 'Anton', sans-serif;
    font-size: 1.5rem;
    padding: 10px 40px;
    border: 2px solid #fff;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
#start-game-btn:hover {
    background: #000;
    color: #fff;
}
.hidden { display: none !important; }
.column {
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 60px;
}
.row{
    display:flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}
.row2{
    display:flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
}




@media (max-width: 768px) {
    .puzzle-container { flex-direction: column; }
    .drop-zone { width: 80%; aspect-ratio: 1; }
    .puzzle-pieces { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .piece { width: 20vw; }
    .modal { width: 80%; }
    #game-task { font-size: 1.5rem; }
    #start-game-btn { font-size: 1.2rem; }
    .title{ display:  none;}
    .title2{ display: flex; flex-direction: column; font-weight: 800; font-size: 320px;}
    .cherep{ display: none}
    .column{font-size:40px;}
    .row{flex-direction: column;}
}