:root {
    --text-color: #e0e0e0;
    --background-color: #1b1b1b;
    --accent-background: #313131;
    --secondary-color: #EECF6D;
}

* { user-select: none; }

html, body {
    margin: 0;
    padding: 0;
}

[class*="btn"]:hover {
    filter: brightness(1.1);
}

button {
    cursor: pointer;
}

img {
    user-select: none;
}

video {
    max-width: 100%;
}

.btn-yellow {
    border-color: black;
    color: var(--background-color);
}

#vote-button:hover {
    color: var(--background-color) !important;
    border-color: var(--text-color);
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    border-bottom: 3px solid var(--background-color);
    background-color: rgba(27, 27, 27, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-wrapper {
    width: 80%;
    margin: 40px auto 0 auto;
    display: flex;
    align-items: center;
    padding: 10px 20px;
}

.nav-left, .nav-right {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.nav-left {
    margin-right: auto;
    gap: 50px;
}

.nav-right {
    margin-left: auto;
    gap: 20px;
}

.profile-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

#pfp {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: auto;
}

#login-name {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    margin-top: 4px;
}

#pfp:hover + #login-name {
    opacity: 1;
}

li {
    margin: 10px 0;
}

a {
    position: relative;
}

a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

#logo {
    height: 160px;
    position: fixed;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
}

#awards-hero {
    margin: 40px 0;
    padding: 200px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
        url('/assets/wishmc/awards/awardsbanner.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    border: 2px solid black;
    box-shadow: 0 0 300px rgba(255, 220, 0, 0.1169);
}

#awards-hero h1 {
    color: inherit;
    width: auto;
}

#awards-hero h1::after {
    content: none;
}

#awards-hero p {
    max-width: 55%;
}

h1 {
    display: block;
    width: auto;
    margin: 10px auto;
    color: var(--secondary-color);
    position: relative;
    text-wrap: wrap;
}

h1::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -8px;
    width: 80px;
    height: 2px;
    background: var(--secondary-color);
    filter: brightness(0.5);
}

#awards-kategorien {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

footer {
    margin-top: 60px;
    padding: 20px 0;
    text-align: center;
    border-top: 3px solid var(--background-color);
    color: var(--text-color);
}

footer small {
    filter: brightness(0.7);
}

.voting-hero {
    margin: 100px 0;
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-background);
}

.category {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    justify-content: center;
}

.category-candidates {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    z-index: 0;
    position: relative;
}

.category-players {
    grid-template-columns: repeat(4, 1fr);
    .candidate { max-width: 180px; }
}

.candidate {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 5px solid var(--accent-background);
    max-width: 500px;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 1;
}

.candidate:hover {
    cursor: pointer;
    transform: scale(1.05);
    border: 5px solid var(--text-color);
    z-index: 10;
}

.candidate-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 90%;
    margin: 10px 0;
}

.candidate-info h2 {
    margin: 0;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-wrap: wrap;
}

.candidate-icon {
    position: absolute;
    top: 0;
    right: 0;
    margin: 5px;
    width: 20px;
    height: 20px;
    color: var(--gray);
    border: 1px solid var(--gray);
    border-radius: 50%;
    text-align: centre;
    line-height: 20px;
    z-index: 5;
    transition: transform 0.2s ease;
}

.candidate-icon:hover {
    transform: scale(1.1);
}

.candidate-icon:hover::after {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    
    content: attr(data-info);
    padding: 5px 10px;
    background-color: var(--background-color);
    border: 1px solid var(--accent-background);

    display: inline-block;
    width: max-content;
    max-width: 250px;

    white-space: normal;
    overflow-wrap: break-word;
}

.candidate img {
    width: 100%;
    height: auto;
    position: relative;
}

.selected {
    border-color: var(--secondary-color);
}

.selected:hover {
    border-color: var(--secondary-color);
}

.candidate:hover .candidate-info h2 {
    color: var(--accent-background);
}

.candidate:hover:after {
    content: "Click to vote";
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: fit-content;
    color: var(--secondary-color);
    font-weight: bold;
}

.candidate.selected:hover:after {
    content: "Voted";
}

.vote-ending {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
    padding: 40px;
}

@media screen and (max-width: 768px) {
    nav {
        width: 100%;
        height: 90px;
    }
    
    #logo {
        height: 90px;
        top: -8px;
    }

    .nav-wrapper {
        width: 90%;
        margin: 20px auto 0 auto;
        padding: 10px;
    }

    .nav-left, .nav-right {
        gap: 15px;
    }

    .nav-left a, .nav-right a {
        font-size: 14px;
    }

    #awards-hero {
        width: 110%;
        transform: translateX(-5%);
        margin-top: 10px;
        padding: 100px 0;
    }

    #awards-hero p {
        max-width: 90%;
    }
    
    .voting-hero {
        margin: 30px 0;
        padding: 30px 10px;
    }
    
    .voting-hero h1 {
        width: auto;
        text-align: center;
    }
    
    .category-candidates {
        grid-template-columns: 1fr;
    }
    
    .category-players {
        grid-template-columns: repeat(2, 1fr);
        
        .candidate { max-width: 150px; }
        .candidate-info h2 { font-size: 0.7rem; }
    }
    
    .candidate-icon:hover::after {
        left: -560%;
    }
}