body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #FBE8ED;
    /* Soft pink */
    color: #136458;
    /* Muted teal */
    transition: background-color 0.3s, color 0.3s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.dark-mode {
    background-color: #222222;
    /* Dark gray (unchanged) */
    color: #BEB69B;
    /* Muted gold (unchanged) */
}

h1 {
    color: #65560f;
    /* Muted gold */
    margin-bottom: 10px;
    margin-top: 50px;
    font-size: 2.5em;
    font-weight: 600;
}

body.dark-mode h1 {
    color: #0EE4E7;
    /* Vibrant cyan (unchanged) */
}

p {
    color: #136458;
    /* Muted teal */
    font-size: 1.2em;
    margin-bottom: 20px;
}

body.dark-mode p {
    color: #BEB69B;
    /* Muted gold (unchanged) */
}

.top-right-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.mode-toggle {
    padding: 10px 20px;
    background-color: #a2424c;
    /* Light coral */
    color: #FFFFFF;
    /* White text */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mode-toggle:hover {
    background-color: #aa2065;
    /* Light gray */
}

body.dark-mode .mode-toggle {
    background-color: #163832;
    /* Deep teal (unchanged) */
    color: #FFFFFF;
}

body.dark-mode .mode-toggle:hover {
    background-color: #0B2B26;
    /* Darker teal (unchanged) */
}

.site-name {
    position: absolute;
    top: 11px;
    left: 20px;
    color: #076859;
    /* Light teal */
    text-shadow: 0.025em 0.025em 0 #db2777,
        0.05em 0.05em 0 #9f1239,
        0.075em 0.075em 0 rgba(217, 70, 239, 0.6),
        0.1em 0.1em 0 rgba(244, 63, 94, 0.5);
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
    z-index: 1000;
}

.site-name:hover {
    color: #cb3680;
    /* Light gray */
}

body.dark-mode .site-name {
    color: #0EE4E7;
    /* Vibrant cyan (unchanged) */
}

body.dark-mode .site-name:hover {
    color: #BEB69B;
    /* Muted gold (unchanged) */
}

.court-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    margin-top: 50px;
}

.court {
    background-color: rgba(251, 232, 237, 0.95);
    /* Soft pink with opacity */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border: 1px solid #DBD9DA;
    /* Light gray */
}

body.dark-mode .court {
    background-color: rgba(5, 31, 32, 0.95);
    /* Near-black (unchanged) */
    border: 1px solid #BEB69B;
    /* Muted gold (unchanged) */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.court:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border-color: #a2424c;
    /* Light coral */
}

.court h2 {
    margin: 0 0 10px;
    color: #65560f;
    /* Muted gold */
    font-size: 1.5em;
    font-weight: 600;
}

body.dark-mode .court h2 {
    color: #0EE4E7;
    /* Vibrant cyan (unchanged) */
}

.court p {
    font-size: 0.9em;
    color: #136458;
    /* Muted teal */
    margin: 0 0 15px;
    line-height: 1.4;
}

body.dark-mode .court p {
    color: #BEB69B;
    /* Muted gold (unchanged) */
}

.court a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #a2424c;
    /* Light coral */
    color: #FFFFFF;
    /* White text */
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.court a:hover {
    background-color: #901955;
    /* Light gray */
}

body.dark-mode .court a {
    background-color: #163832;
    /* Deep teal (unchanged) */
}

body.dark-mode .court a:hover {
    background-color: #0B2B26;
    /* Darker teal (unchanged) */
}

@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;
    }
}