body {
    font-family: "Abril Fatface", serif; /* Apply Abril Fatface font */
    background-color: #f4f4f4;
    transition: background-color 0.3s, color 0.3s; /* Smooth transition */
    line-height: 1.6; /* Improved readability */
    padding: 20px; /* Added padding for overall body */
}

.dark-mode {
    background-color: #181818; /* Dark background */
    color: #f4f4f4; /* Light text */
}

.player-card {
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 20px; /* Increased padding for better spacing */
    margin: 15px; /* Increased margin for better separation */
    text-align: center;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* Enhanced shadow for depth */
    transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transition */
    height: auto; /* Set height to auto for flexible content */
}

.player-card iframe {
    width: 100%; /* Full width of the card */
    height: 300px; /* Increased height for iframe */
    border-radius: 10px; /* Rounded corners for iframe */
}

.dark-mode .player-card {
    background-color: #2a2a2a; /* Slightly lighter dark card background */
    color: #f4f4f4; /* Light card text */
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1); /* Softer shadow for dark mode */
}

.table {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px; /* Space between tables */
}

.table th,
.table td {
    border: none;
    padding: 12px; /* Added padding for better spacing */
    text-align: left; /* Align text to the left for better readability */
}

.table th {
    background-color: #f8f9fa; /* Light gray header for tables */
}

.dark-mode .table {
    background-color: #333333; /* Dark table background */
    color: #f4f4f4; /* Light table text */
}

.dark-mode .table th {
    background-color: #444444; /* Darker header for tables in dark mode */
}

.navbar {
    border-radius: 0 0 15px 15px;
    transition: background-color 0.3s;
}

.dark-mode .navbar {
    background-color: #343a40; /* Dark navbar */
}

.terms-text {
    color: red; /* Set text color to red */
    font-weight: bold; /* Bold text for emphasis */
    margin: 10px 0; /* Margin for spacing */
}

#player-form {
    border-radius: 15px;
    padding: 20px; /* Increased padding for better form appearance */
    background-color: #ffffff; /* Form background color */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.alert {
    border-radius: 15px;
}

.dark-mode .alert {
    background-color: #444444; /* Dark alert background */
    color: #f4f4f4; /* Light alert text */
}

.celebration-text {
    font-family: 'Lobster', cursive;
    font-size: 3em; /* Increased font size for celebration */
    color: #ffcc00;
    margin-bottom: 20px;
}

#celebration-animation {
    font-size: 1.5em;
    color: #28a745;
    margin-top: 20px;
    animation: flash 1s infinite;
}

.hidden {
    display: none;
}

.modal-title {
    color: black; /* Set modal title color to black */
    font-size: 1.5em; /* Increased font size for better visibility */
}

@keyframes flash {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Additional styles for buttons */
.btn {
    border-radius: 25px; /* Rounded buttons */
    padding: 10px 20px; /* Padding for better touch target */
    transition: background-color 0.3s; /* Button color transition */
    background-color: #007bff; /* Default button color */
    color: white; /* Text color */
    border: none; /* No border */
}

.btn:hover {
    background-color: #0056b3; /* Darken button on hover */
    color: white; /* Text color on hover */
}
