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

@font-face {
    font-family: 'digital-clock-font';
    src: url('../../assets/digital-font/digital-7.ttf') format('truetype');
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #E0B1CB;
}

svg {
    width: 20rem;
    height: auto;
    margin: 1rem;
}

.header,
.footer {
    padding: 1rem;
    background-color: #231942;
    color: #BE95C4;
    text-transform: uppercase;
}

.footer {
    text-align: center;
    font-size: 0.9rem;
}

.instructions {
    padding: 1.5rem 1rem;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container-score {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container-score h2 {
    font-size: 4rem;
    color: #231942;
    text-transform: uppercase;
}

.container-players {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.scoreboard {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: 'digital-clock-font', monospace;
    font-size: 7rem;
    color: #F4F1DE;
    background-color: #9F86C0;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.left-player,
.right-player div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.usersPlaceholder,
.buttons button {
    width: 8rem;
    height: 8rem;
    background-color: azure;
    border-radius: 0.5rem;
    border: none;
}

.buttons button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background-color: #9F86C0;
    color: #F4F1DE;
    cursor: pointer;
    text-transform: uppercase;
}

.buttons button:hover {
    background-color: #231942;
}

.buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#swordsIcon svg,
.buttons svg {
    width: 4rem;
    height: auto;
    margin: 0;
}

#versusIcon svg {
    width: 6rem;
}

.btn-image svg {
    width: 4rem;
}

.alert-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    background-color: #23194298;
    color: white;
    border-radius: 5px;
    display: none;
}

@media (max-width: 600px) {
    svg {
        width: 10rem;
        margin: 0.4rem 1rem;
    }

    .scoreboard {
        font-size: 4rem;
    }

    .container-players {
        flex-direction: column;
    }

    #swordsIcon svg,
    #versusIcon svg {
        width: 3rem;
        margin: 0 1rem;
    }

    .usersPlaceholder {
        width: 5rem;
        height: 5rem;
    }

    .btn-image svg {
        width: 2rem;
    }

    .right-player {
        display: flex;
        flex-direction: column-reverse;
    }
}
