/* Global styles */
body {
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    margin: 0;
    color: #fff;
    overflow: hidden;
}

header {
    text-align: center;
    margin-bottom: 20px;
    position: absolute;
    top: 20px;
    width: 100%;
}

header h1 {
    color: #00ffff;
    font-size: 3em;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
    margin: 0;
}

.container {
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.7), 0 0 20px rgba(0, 255, 255, 0.7);
    z-index: 10;
    position: relative;
    width: 350px;
    max-width: 90%;
    margin-top: 0px;
    animation: glowAnimation 2s ease-in-out infinite alternate;
}

.container h2 {
    color: #00ffff;
    font-size: 2em;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
    margin-bottom: 20px;
}

.password-input {
    position: relative;
    margin-bottom: 20px;
}

input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

#display {
    font-size: 48px;
    color: #00ffff;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
}

#criteria-list {
    margin-bottom: 20px;
}

#criteria-list ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.criteria {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    list-style: none;
    padding: 5px 10px;
    margin: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.criteria.complete {
    opacity: 0.5;
}

#laps {
    list-style: none;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    color: #00ffff;
    border-top: 1px solid #00ffff;
    margin-top: 20px;
    text-align: center;
    padding: 10px;
}

#laps li {
    padding: 8px 0;
    border-bottom: 1px solid #00ffff;
    font-size: 16px;
    display: flex;
    justify-content: center;
    animation: fadeInOut 2s forwards;
}

footer {
    width: 100%;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    position: absolute;
    bottom: 0;
}

/* Neon glowing animation */
@keyframes glowAnimation {
    0% {
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.7), 0 0 20px rgba(0, 255, 255, 0.7);
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.7), 0 0 40px rgba(0, 255, 255, 0.7);
    }
}

/* Animation for fading in and out feedback laps */
@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}
