body {
    background-color: #f8f9fa;
    font-family: 'Roboto', sans-serif;
    background-size: cover;
    background-attachment: fixed;
}

.logo {
    width: 150px;
    margin-bottom: 20px;
}

.container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #4b2e83;
    font-family: 'Roboto', serif;
    font-weight: 700;
}

.form-inline-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.form-inline-container .form-control, 
.form-inline-container .btn {
    flex: 1;
    min-width: 150px;
}

.form-control::placeholder {
    color: #6c757d;
    font-weight: 400;
}

.btn-primary {
    background-color: #4b2e83;
    border-color: #4b2e83;
    transition: all 0.3s ease;
    font-weight: 700;
}

.btn-primary:hover {
    background-color: #3a2366;
    border-color: #3a2366;
}

.btn-success {
    background-color: #ffc107;
    border-color: #ffc107;
    transition: all 0.3s ease;
    font-weight: 700;
}

.btn-success:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    transition: all 0.3s ease;
    font-weight: 700;
}

.btn-danger:disabled {
    background-color: #e6e6e6;
    border-color: #e6e6e6;
    color: #ccc;
}

.btn-danger:hover:enabled {
    background-color: #bd2130;
    border-color: #bd2130;
}

.square {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 18px;
    font-family: 'Roboto', serif;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    border-radius: 10px;
    background-color: #4b2e83;
    transition: transform 0.3s, background-color 0.3s;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.square:hover {
    transform: scale(1.1);
    background-color: #3a2366;
}

.square.animate {
    animation: pulse 0.5s infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.square.light-up {
    animation: lightUp 0.1s linear infinite;
}

@keyframes lightUp {
    0% { background-color: rgba(255, 255, 255, 0.3); }
    50% { background-color: rgba(255, 255, 255, 0.5); }
    100% { background-color: rgba(255, 255, 255, 0.3); }
}

.winner-tag {
    position: absolute;
    top: 0;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: red;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 0 0 10px 10px;
    padding: 2px;
}

.winner-tag .winner-text {
    display: block;
    font-size: 14px;
    font-weight: bold;
}

.winner-tag .rounds-text {
    display: block;
    font-size: 12px;
    font-weight: normal;
}

#winner {
    border: 3px solid red;
    animation: highlight 1s infinite;
}

@keyframes highlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.winner-modal-text {
    font-size: 2em;
    color: #28a745;
    animation: celebrate 1s infinite;
}

@keyframes celebrate {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

#scoreboard, #squaresContainer, .form-inline-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#scoreboard ul {
    list-style-type: none;
    padding: 0;
}

#scoreboard li {
    margin: 5px 0;
    background-color: #4b2e83;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}
