body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #4a148c, #311b92);
    color: #f5f5f5;
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.dark-mode {
    background: linear-gradient(135deg, #d1c4e9, #f3e5f5);
    color: #1a1a1a;
}

h1 {
    color: #ffab40;
    margin-bottom: 10px;
    margin-top: 50px;
    font-size: 2.5em;
    text-align: center;
}

body.dark-mode h1 {
    color: #ef6c00;
}

p {
    color: #e0e0e0;
    font-size: 1.2em;
    margin-bottom: 20px;
}

body.dark-mode p {
    color: #3e2723;
}

.top-right-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.mode-toggle {
    padding: 10px 20px;
    background-color: #ff8f00;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.mode-toggle:hover {
    background-color: #e65100;
}

body.dark-mode .mode-toggle {
    background-color: #f57c00;
}

body.dark-mode .mode-toggle:hover {
    background-color: #ef6c00;
}

.site-name {
    position: absolute;
    top: 11px;
    left: 20px;
    color: #e91e63;
    text-shadow: .025em .025em 0 #b71c1c,
        .05em .05em 0 #d81b60,
        .075em .075em 0 rgba(106, 27, 154, 0.566),
        .1em .1em 0 rgba(171, 71, 188, 0.505);
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
    z-index: 1000;
}

.site-name:hover {
    color: #c2185b;
}

body.dark-mode .site-name {
    color: #6a1b9a;
}

body.dark-mode .site-name:hover {
    color: #8e24aa;
}

.court-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    margin-top: 50px;
}

.court {
    background-color: #5e35b1;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

body.dark-mode .court {
    background-color: #ede7f6;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.court:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.court h2 {
    margin: 0 0 10px;
    color: #ff8f00;
    font-size: 1.5em;
}

body.dark-mode .court h2 {
    color: #7b1fa2;
}

.court p {
    font-size: 0.9em;
    color: #e0e0e0;
    margin: 0 0 15px;
    line-height: 1.4;
}

body.dark-mode .court p {
    color: #4e342e;
}

.court a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff8f00;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s;
}

.court a:hover {
    background-color: #e65100;
}

body.dark-mode .court a {
    background-color: #f57c00;
}

body.dark-mode .court a:hover {
    background-color: #ef6c00;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.8em;
        margin-top: 20px;
    }

    p {
        font-size: 1em;
        margin-top: 0px;
    }

    .court-container {
        grid-template-columns: 1fr;
        margin-top: 0px;
    }

    .court {
        padding: 15px;
    }

    .court h2 {
        font-size: 1.3em;
    }

    .court p {
        font-size: 0.85em;
    }

    .court a {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .top-right-container {
        position: static;
        text-align: center;
    }

    .mode-toggle {
        font-size: 0.9em;
        padding: 8px 15px;
    }

    .site-name {
        position: static;
        font-size: 1em;
        text-align: center;
        display: block;
    }
}