body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.preloader .spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

header.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #ffffff;
    border-radius: 10px;
    margin-bottom: 20px;
}

header.header h1 {
    margin: 0;
}

header.header {
    position: relative;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s forwards 0.2s;
}

.section {
    text-align: center;
    padding: 30px;
    border: 1px solid #dddddd;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    margin: 20px;
    min-width: 280px;
    max-width: 500px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

input[type="text"], input[type="number"] {
    padding: 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    width: calc(100% - 30px);
    margin-bottom: 20px;
    font-size: 16px;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

#result, #spyNumbersResult {
    margin-top: 20px;
    font-size: 18px;
    color: #555555;
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    input[type="text"], input[type="number"] {
        width: 100%;
        padding-right: 0px;
    }

    button {
        width: 100%;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
