/* Highscores page specific styles */
table {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 2;
    position: relative;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: rgba(0, 0, 0, 0.8);
    font-weight: normal;
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

form {
    text-align: center;
    margin: 0 auto 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    z-index: 2;
    position: relative;
}

input[type="text"] {
    font-family: 'Cinzel', serif;
    font-size: 1.2em;
    padding: 10px;
    width: 100%;
    max-width: 300px;
    border-radius: 5px;
    border: 1px solid white;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
}

form button[type="submit"] {
    margin-top: 10px;
    font-family: 'Cinzel', serif;
    font-size: 1.5em;
    padding: 10px 20px;
    background: none;
    border: 1px solid white;
    color: white;
    cursor: pointer;
    z-index: 2;
    position: relative;
}

.message {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    border: 2px solid white;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 1.2em;
    z-index: 2;
    position: relative;
}

.message h2 {
    font-size: 1.2em;
    white-space: normal;
    overflow: visible;
    word-break: break-word;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.notation {
    margin-top: 10px;
    font-size: 0.9em;
    max-width: 100%;
    z-index: 2;
    position: relative;
}

@media (max-width: 768px) {
    .message h2 {
        font-size: 1em;
    }

    .message {
        font-size: 1em;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    table {
        font-size: 0.9em;
    }

    th, td {
        padding: 5px;
    }

    form button[type="submit"] {
        font-size: 1.2em;
        padding: 8px 16px;
    }
}

@media (max-width: 767px) {
    table {
        display: table;
        overflow-x: visible;
        white-space: normal;
        margin: 20px auto;
        width: 100%;
    }

    th, td {
        text-align: center;
        padding: 8px;
    }
}

#form-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

#form-modal > div {
    background: white;
    width: 300px;
    margin: 100px auto;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

#modal-message {
    color: black;
    margin-bottom: 20px;
}

.message {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f9f9f9;
}

.message h2 {
    margin: 0;
    color: #333;
}

.message.error h2 {
    color: red;
}

