body {
    margin: 0;  
    padding: 0;  
    height: 100vh;  
    background-image: url('../images/krasns_background.png');  
    background-size: cover;  
    background-position: center; 
    background-repeat: no-repeat;  
    font-family: Tahoma;
}

.paper-page {
    width:540px;
    height:540px;
    background-repeat: no-repeat;  
    background-image: url('../images/paper-page.png');  
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    padding:35px;
    float:right;
    text-align:left;
}

.items {
    float:left;
    margin-top:40px;
    max-width: 55%;
}

.item {
    width:200px;
    height:200px;
    background-repeat: no-repeat;  
    background-size: cover;   
    text-align:center;
    float: left;
    margin:15px;
    margin-bottom:40px;
} 

.item:nth-child(1) {
    background-image: url('../images/04_krasns.png');  
}

.item:nth-child(2) {
    background-image: url('../images/01_krasns.png');  
} 

.item:nth-child(3) {
    background-image: url('../images/03_krasns.png');  
} 

.item:nth-child(4) {
    background-image: url('../images/02_krasns.png');  
} 

.item:nth-child(5) {
    background-image: url('../images/05_krasns.png');  
} 

.item input {
    background-color: #cbc8bf;
    border:0;
    padding:10px;
    font-size:22px;
    text-align: center;
    border-radius: 50px;
    margin-top:-25px;
    width:50px;
}

/* For most modern browsers */
input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
}

.custom-container {
     
    padding: 20px;
    border-radius: 8px;
}

.highlight-text { 
    font-weight: bold;
    font-style: italic;
    font-size: 18px; 
} 

.illustration {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}


#game-container {
    position: relative;
    max-width: 800px; 
    margin-top:40px;
}
#main-image {
    width: 100%;
}
.drop-zone {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 150px;
    height: 150px; 
    border-radius: 50%;
    z-index: 2;
}
.draggable {
    width: 100px;
    height: 100px;
    margin: 20px;
    cursor: grab;
}
#pieces-container {
    text-align: center;
    margin-top: 30px;
}
 
@media (max-width: 768px) {

    body { 
        overflow-x: hidden;
    }

    .draggable {
        max-width:60px;
        max-height:60px;
        margin: 10px;
    }

}

.words1 a { 
}

#uzdevums {
    max-width:150px;
}

.home-button, .home-button:hover {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #910E37;
    border:0;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    margin-bottom:5px;
  }

.close-lightbox {
    background-color: #910E37;
    border:0;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;  
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;  
  }

  #loader.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }
 
  .spinner {
    border: 5px solid #f3f3f3; 
    border-top: 5px solid #910E37;  
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
 
  body.loading {
    overflow: hidden;
  }