.pop-up {
    display: none;
    width: 80%;
    max-width: 500px;
    padding: 20px;
    background-color: #431971;
    border-radius: 12px;
    color: #FFFFFF;
    font-family: 'Wargate', sans-serif;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

dialog {
    display: none;
    width: 80%;
    max-width: 500px;
    padding: 20px;
    background-color: #431971;
    border-radius: 12px;
    color: #FFFFFF;
    font-family: 'Wargate', sans-serif;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

dialog[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

button.close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #FFFFFF;
    cursor: pointer;
    transition: color 0.3s;
}

button.close:hover {
    color: #ff5252;
}

.popup-content h2 {
    margin-bottom: 10px;
    color: #FFFFFF;
    font-size: 1.8em;
}

.popup-content p {
    font-size: 1.2em;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.pop-up form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

select[name="player2"] {
    width: 90%;
    padding: 8px;
    margin: 10px 0;
    border: 2px solid #431971;
    border-radius: 6px;
    background-color: #050630;
    color: #FFFFFF;
}

fieldset {
    width: 90%;
    border: 2px solid #270151;
    padding: 15px;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

fieldset legend {
    color: #FFFFFF;
    font-size: 1.2em;
}

label {
    color: #FFFFFF;
    font-size: 1em;
    margin: 5px 0;
}

button#submit_create {
    background-color: #5000A7;
    color: #FFFFFF;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 15px;
    transition: background-color 0.3s;
    width: 90%;
    font-family: 'Wargate', sans-serif;
}

button#submit_create:disabled {
    background-color: #555;
    cursor: not-allowed;
}

button#submit_create:hover:not(:disabled) {
    background-color: #050630;
}
