* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a4a3a 0%, #2d5a4a 50%, #0f2f1f 100%);
    color: #f0f8f0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Beer Bubble Animation */
.bubble {
    position: absolute;
    bottom: -100px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    border-radius: 50%;
    opacity: 0.7;
    animation: rise linear infinite;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0px) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        bottom: 100vh;
        transform: translateX(-100px) scale(1.2);
        opacity: 0;
    }
}

/* Header Styling */
.header {
    position: relative; /* Gør det muligt at placere børn absolut */
    text-align: center;
    padding: 2rem 0;
    background: rgba(15, 47, 31, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}



h1 {
    font-size: 4rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.5rem;
    color: #a8d8a8;
    font-weight: 300;
}

/* Form Container */
.form-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    z-index: 10;
    position: relative;
}

/* Fjern browser default */
.category {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    width: 200px;
    height: 60px;
    padding: 0 3rem 0 1.2rem; /* plads til pil */
    font-size: 1.2rem;
    color: #f0f8f0;
    background: linear-gradient(145deg, rgba(45, 90, 74, 0.95), rgba(35, 75, 60, 0.8));
    border: 2px solid #4a7a5a;
    border-radius: 15px;
    box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

/* Custom pil til dropdown */
.category::after {
    content: "";
    pointer-events: none;
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 0;
    height: 0;
    margin-top: -6px;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 10px solid #ffd700;
    filter: drop-shadow(0 0 2px #ffd700);
}

/* Hover & Focus effekt */
.category:hover,
.category:focus {
    border-color: #ffd700;
    background: linear-gradient(145deg, rgba(45, 90, 74, 1), rgba(40, 85, 70, 0.9));
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    outline: none;
}

/* Dropdown option styling */
.category option {
    background-color: #2d5a4a;
    color: #f0f8f0;
    font-size: 1.2rem;
    padding: 0.8rem 1rem;
}

/* Option hover og selected er desværre browserstyret, men vi kan prøve lidt */
.category option:hover,
.category option:checked {
    background-color: #3f8a5f;
    color: #fff;
}

/* Responsive */
@media (max-width: 480px) {
    .category {
        width: 100%;
        max-width: 350px;
    }
}

/* Scoreboard Container */
.scoreboard-container {
    max-width: 1500px;
    margin: 0 auto;
    margin-bottom: 40px;
    padding: 0 2rem;
    position: relative;
    z-index: 5;
}

/* New container for buttons and sort */
.form-controls {
    max-width: 1500px; /* same max width as scoreboard */
    margin: 0 auto 1.5rem; /* center horizontally, add bottom margin */
    
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.left-buttons {
    display: flex;
    gap: 1rem;
}

.right-sort {
    display: flex;
    justify-content: flex-end;
}

/* Scoreboard Columns */
.columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    background: rgba(15, 47, 31, 0.6);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Score Entry Styling */
.score-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    margin-bottom: 0.8rem;
    background: rgba(45, 90, 74, 0.4);
    border-radius: 12px;
    border-left: 4px solid #4a7a5a;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.score-entry.gold {
    border-left-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.score-entry.silver {
    border-left-color: #c0c0c0;
    background: rgba(192, 192, 192, 0.1);
}

.score-entry.bronze {
    border-left-color: #cd7f32;
    background: rgba(205, 127, 50, 0.1);
}

.position-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.position {
    font-size: 1.8rem;
    font-weight: bold;
    margin-right: 1rem;
    min-width: 60px;
}

.gold .position {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.silver .position {
    color: #c0c0c0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.bronze .position {
    color: #cd7f32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.time {
    font-size: 1.6rem;
    font-weight: bold;
    color: #a8d8a8;
    margin-right: 1rem;
}

.name {
    font-size: 1.4rem;
    color: #f0f8f0;
    flex: 1;
}

.date {
    font-size: 1rem;
    color: #8fb88f;
    opacity: 0.8;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .columns {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .category {
        width: 100%;
        max-width: 400px;
    }

    .score-entry {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .position-info {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .date {
        align-self: flex-end;
    }
    
    .form-controls {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    .right-sort {
        justify-content: center;
        width: 100%;
    }
    .left-buttons {
        justify-content: center;
        width: 100%;
    }
}

/* Trophy Icons for Top 3 */
.trophy {
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

#bubbles-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    background: transparent;
    border: none;
}

/* Buttons styling */
.map-button,
.my-page-button {
    height: 50px;
    padding: 0 1.8rem;
    font-size: 1.1rem;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffdf00, #f7c600);
    color: #0f2f1f;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.map-button:hover,
.my-page-button:hover {
    background: linear-gradient(145deg, #ffe94d, #fcd835);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.map-button:active,
.my-page-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Contact buttons */
.map-call-icon {
    position: absolute;
    top: 50%;
    right: 80px;
    transform: translateY(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 0.6rem;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.map-call-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

