@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    background: linear-gradient(120deg,  #007bff, #ff0080);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    flex-direction: column;
    padding: 20px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, #007bff, #ff0080);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Typing effect */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

#preloader-text {
    font-size: 20px;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid white;
    display: inline-block;
    animation: typing 3s steps(40, end) forwards, blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: white; }
}

/* Main Content */
.container {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    animation: fadeIn 0.5s ease-in-out forwards;
}

/* Format Buttons */
.format-selector {
    margin: 10px 0;
}

.format-btn {
    background: white;
    color: black;
    padding: 10px 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    margin: 5px;
}

.format-btn.active {
    background: #ffcc00;
}

.input-group {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 10px;
    gap: 10px;
}

label, input {
    display: block;
}

input {
    width: 60px;
    padding: 5px;
    border-radius: 10px;
    border: none;
    text-align: center;
}

.get-team-btn {
    background: #ffcc00;
    color: black;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
}

.team-container {
    margin-top: 15px;
}

/* Team Reveal Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.team-container li {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        width: 100%;
    }

    .input-group {
        flex-direction: column;
        align-items: center;
    }

    .format-btn {
        width: 100%;
    }
    #preloader-text {
        font-size: 16px;
        max-width: 100%;
        white-space: normal;
        border-right: none;
    }
}
