body {
    margin: 0;
    font-family: "Comic Sans MS", "Poppins", sans-serif;
    background: white;
    text-align: center;
    overflow-y: auto;
}

.navbar {
    background: #cfeaff;
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 20px;
    font-size: 22px;
    font-weight: bold;
}

.nav-item {
    text-decoration: none;
    color: black;
    padding: 12px 25px;
    border-radius: 40px;
    transition: 0.2s;
}

.nav-item.active {
    background: white;
    border: 3px solid #7db9ff;
    box-shadow: 0 0 12px rgba(0,0,0,0.15);
}

.nav-item:hover {
    background: white;
    border-radius: 40px;
}

.container {
    margin-top: 60px;
}

.info p {
    margin-top: 1em;
    padding: 2em;
    
}

h1 {
    font-size: 32px;
}

p {
    font-size: 22px;
    margin-top: -10px;
}

.start-btn {
    display: inline-block;
    padding: 20px 60px;
    background: #cfeaff;
    border-radius: 50px;
    font-size: 24px;
    color: black;
    text-decoration: none;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 80px;
    transition: 0.2s;
}

.start-btn:hover {
    background: #b9ddff;
}

/* Footeri */
.footer {
    background: #cfeaff;
    padding: 10px;
    position: static;
    bottom: 0;
    width: 100%;
    font-size: 18px;
    text-align: left;
    padding-left: 10px;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.burger div {
    width: 30px;
    height: 4px;
    background: black;
    border-radius: 5px;
}

@media (max-width: 768px) {

    .navbar {
        justify-content: space-between;
        padding: 15px 20px;
        position: relative;
        z-index: 1000;
    }

    .burger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #cfeaff;
        flex-direction: column;
        padding: 20px 0;
        gap: 20px;
        text-align: center;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-item {
        padding: 15px;
        font-size: 20px;
    }
}

/* peli jutut alkaa tästä: */
  
  h2 {
    margin-bottom: 10px;
  }
  
  #score {
    background: white;    
    padding: 8px 15px;
    border-radius: 20px;
    border: 2px solid #9cc9ff;
    width: fit-content;
    margin: 0 auto;
}

body.no-scroll {
    overflow: hidden;
    touch-action: none;
}

.game-container {
    display: flex;
    gap: 40px;
    padding: 20px;
    align-items: flex-start;
}

.questions {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.question {
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.question img {
    width: 15%;
    height: auto;
    border-radius: 8px;
}

.dropzone {
    border: 3px dashed #99b5d1;
    border-radius: 12px;
    background: #f0f7ff;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    min-width: 50%;
    max-width: 70%;
    height: auto;
    min-height: 20px;
    padding: 10px 16px;
    text-align: center;
    position: relative;
}

.answers {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 45px;
    position: relative;
}

.answer-box {
    background: #d9ecff;
    border: 2px solid #9cc9ff;
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    cursor: grab;
    user-select: none;
    touch-action: none;
}
.answer-box:active {
    cursor: grabbing;
    opacity: 0.7;
}



@media (max-width: 900px) {
    .answer-box {
        font-size: 12px;
    }
}

@media (max-width: 800px) {
    .answer-box {
        font-size: 11px;
    }
}

@media (max-width: 600px) {
    .answer-box {
        font-size: 10px;
    }
}

@media (max-width: 450px) {
    .answer-box {
        font-size: 7px;
    }
}

@media (max-width: 1000px) {
    .answers {
        gap: 15px;
    }
}

@media (max-width: 770px) {
    h1 {
        font-size:x-large;
    }
}

@media (max-width: 770px) {
    p {
        font-size: medium;
    }
}
