body {
  font-family: Arial, sans-serif;
  background: linear-gradient(to right, #663573, #225668 );
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: linear-gradient(45deg, #663573, #225668, #6643a7);
  background-size: 300% 300%;
  animation: gradientAnimation 20s infinite;
}
@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: #e3ecf6;
  }
  h3 {
    font-size: 1.2rem;
    margin: 1rem 0;
    color: #dfebee;
  }
button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
    margin-top: 1%;
}

button:hover {
    background-color: #218838;
}

.grid {
    display: grid;
    grid-template-columns: repeat(5, 60px);
    gap: 10px;
    justify-content: center;
    margin-top: 5%;
}

.cell {
    width: 60px;
    height: 60px;
    border: 2px solid #333;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    line-height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.correct {
    background-color: rgb(54, 162, 54);
    color: white;
}

.present {
    background-color: rgb(207, 158, 44);
    color: black;
}

.absent {
    background-color: rgb(84, 83, 83);
    color: white;
}

#message {
    font-size: 20px;
    font-weight: bold;
    margin-top: 15px;
    color: #333;
}

input[type="text"] {
    width: 100%;
    max-width: 350px;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #dddddd;
    border-radius: 5px;
    margin-top: 3%;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}
#otherPageBtn {
    top: 8%;
    left: 50%;
    padding: 11px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    background-color: rgba(183, 135, 93, 0.01);
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    margin-top: 2%;
  } 
  #otherPageBtn:hover {
    background-color: #d79a48;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  }
  
  #otherPageBtn:active {
    background-color: #d79a48;
    transform: scale(1);
  }

/* Dropdown-Menü */
.dropdown {
    position: relative;
    display: inline-block;
    margin-top: 0.5%;
}

.dropdown-btn {
    background: linear-gradient(to right, #225668, #20687e );
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.dropdown-btn:hover {
    background-color: #cdabd5;
    transform: scale(1.05);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    padding: 10px;
    color: black;
    border-radius: 5px;
    left: -30%;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content p {
    margin: 5px 0;
}

/* Media Queries für kleinere Bildschirme */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
        margin-top: 5%;
    }

    button {
        font-size: 16px;
        padding: 8px 16px;
    }

    .grid {
        grid-template-columns: repeat(5, 60px);
        gap: 8px;
    }

    .cell {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    input[type="text"] {
        max-width: 280px;
        font-size: 0.9rem;
    }

    #otherPageBtn {
        font-size: 0.9rem;
        padding: 10px 18px;
    }

    .dropdown-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    .message {
        text-align: center;
        font-size: 0.5rem;
        left:50%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1rem;
        margin-top: 5%;
    }
    .dropdown-content {
        left: -60%;
    }
    button {
        font-size: 14px;
        padding: 6px 12px;
    }

    .grid {
        grid-template-columns: repeat(5, 60px);
        gap: 6px;
    }

    .cell {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    input[type="text"] {
        max-width: 250px;
        font-size: 0.8rem;
    }

    #otherPageBtn {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .dropdown-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    #message {
        text-align: center;
        font-size: 1rem;
        left:50%;
    }
}
