header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px;
    color: #2196F3;
    font-size: 20px;
    font-weight: bold;
    border-bottom: #2196F3 solid;

}

header a {
    color: #2196F3;
    text-decoration: none;
}

header a:hover {
    text-decoration: underline;
    color: white;
    background-color: #2196F3;
    border-radius: 15px;
    padding: 0px 20px;
    transition: linear 0.3s;
}

header button {
    background-color: transparent;
    color: white;
    max-height: 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 1.5%;
    display: flex;
    /* Add */
    align-items: center;
    justify-items: center;
}


body {
    display: flex;
    flex-direction: column;
    text-align: center;
    background-color: white;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    max-width: 100vw;
}

#palabraActual {
    margin-bottom: 5px;
}

#silabas {
    margin-top: 5px;
    padding: 0;
    margin-bottom: 5px;
}

body input {
    width: 40%;
    height: 30px;
    border-radius: 5px;
    border: 1px solid #2196F3;
    text-align: center;
    position: relative;
    align-self: center;
    margin-inline: 10px;
}

#instrucciones {
    align-self: center;
    max-width: 70%;
    border: #2196F3 solid;
    border-radius: 10px;
    background-color: #ccc;
    margin-top: 20px;
}

#listaJugadores {
    max-width: fit-content;
    background-color: transparent;
    border: none;
    position: absolute;
    top: 220px;
    right: 10px;
}

#divBotones {
    display: flex;
    justify-content: space-between;
    margin-inline: 15%;
    font-weight: bold;
    font-size: 50px;
}

#nuevapartidaBtn {
    position: relative;
    max-width: fit-content;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 1%;
}

#nuevapartidaBtn:hover {
    background-color: white;
    color: #2196F3;
    transition: linear 0.3s;
}

#pistaBtn {
    position: relative;
    max-width: fit-content;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 1%;
}

#pistaBtn:hover {
    background-color: white;
    color: #2196F3;
    transition: linear 0.3s;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 17px;
    margin-inline: 1.5%;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    -webkit-transform: translateX(13px);
    -ms-transform: translateX(13px);
    transform: translateX(13px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 17px;
}

.slider.round:before {
    border-radius: 50%;
}

#bottom {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.401);
    color: #2196F3;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

#bottom p {
    background-color: rgb(255, 255, 255);
    border-radius: 15px;
    font-size: large;
    font-weight: bold;
    padding: 5px;
}

#bottomSpace {
    height: 40px;
}

#palabrasUsadas {
    align-self: center;
    min-width: 70%;
    border: #2196F3 solid;
    border-radius: 10px;
    background-color: #ccc;
    align-items: center;
    display: flex;
    flex-direction: column;
    margin: 0;
    margin-top: 5px;
    padding: 1% 0%;
}

#palabrasUsadas li {
    list-style: none;
}

#palabrasUsadas a {
    text-align: center;
    color: black;
    text-decoration: none;
    font-size: large;
}

#palabrasUsadas:empty {
    display: none;
}

#palabrasUsadas a:hover {
    background-color: white;
    padding: 0px 20px;
    border-radius: 15px;
    color: #2196F3;
    transition: linear 0.3s;
}

#palabraActual a {
    font-size: large;
    color: black;
    text-decoration: none;
    font-weight: bold;
}

#palabraActual a:hover {
    background-color: #2196F3;
    border-radius: 15px;
    padding: 0px 20px;
    color: white;
    transition: linear 0.3s;
}

#pista:empty {
    display: none;
}

#pista {
    padding-inline: 2%;
    border: red solid;
    max-width: fit-content;
    border-radius: 15px;
    margin: auto;
    margin-top: 15px;
}

#pista:hover {
    background-color: red;
    color: white;
    transition: linear 0.3s;
}

#resultado:empty {
    display: none;
}

#resultado {
    margin: 5px;
}

.dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: red;
    /* Color rojo */
    border-radius: 50%;
    /* Para que el punto sea redondo */
}

html.invert-colors {
    filter: invert(100%);
    transition: linear 0.5s;
}

#loginFormContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 60%;
}

#formElementLogin {
    background-color: rgba(255, 255, 255, 0.871);
    color: #2196F3;
    padding: 20px;
    border-radius: 10px;
    border: #2196F3 solid;
    font-weight: bold;

}

#formElementLogin input {
    background-color: #2195f372;
    color: black;
}

#formElementRegister {
    background-color: rgba(255, 255, 255, 0.871);
    color: #2196F3;
    padding: 20px;
    border-radius: 10px;
    border: #2196F3 solid;
    font-weight: bold;
}

#formElementRegister input {
    background-color: #2195f372;
    color: black;
}

.formInput {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
    background-color: #f4ede2;
    /* Adjust as needed */
    color: #2a303b;
    /* Adjust as needed */
    border: 1px solid #f4ede2;
    /* Adjust as needed */
    border-radius: 5px;
}

.formButtons button {
    cursor: pointer;
    position: relative;
    padding: auto;
    background: white;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    transition: all 1s;
    width: 60px;
    min-height: 30px;
    margin-bottom: 5px;


    &:after,
    &:before {
        content: " ";
        width: 10px;
        height: 10px;
        position: absolute;
        border: 0px solid #fff;
        transition: all 1s;
    }

    &:after {
        top: -1px;
        left: -1px;
        border-top: 2px solid black;
        border-left: 2px solid black;
    }

    &:before {
        bottom: -1px;
        right: -1px;
        border-bottom: 2px solid black;
        border-right: 2px solid black;
    }

    &:hover {
        border-top-right-radius: 0px;
        border-bottom-left-radius: 0px;

        &:before,
        &:after {

            width: 100%;
            height: 100%;
        }
    }
}

.formRow {
    margin-bottom: 15px;
    text-align: center;
}

.formRow label {
    display: block;
    margin-bottom: 5px;
}

#userListContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.871);
    color: #2196F3;
    font-weight: bold;
    padding: 20px;
    border-radius: 10px;
    border: #2196F3 solid;
    width: 90%;
}

#CloseUserList {
    background-color: red;
    color: white;
    top: 1px;
    right: 1px;
    position: absolute;
    border-radius: 10px;
    cursor: pointer;
    font-size: 26px;
}

#CloseUserList:hover {
    background-color: rgb(103, 0, 0);
    transition: all 0.4s ease-in;
}

#signOut-btn {
    background-color: #2196F3;
    color: white;
    border-radius: 10px;
    padding-inline: 10px;
    cursor: pointer;
}

#UserName {
    color: #2196F3;
    position: absolute;
    top: 120px;
    font-size: large;
    font-weight: bold;
    left: 15px;
    font-size: larger;
}

#UserName:hover {
    color: white;
    background-color: #2196F3;
    transition: all 0.3s;
    padding: 0px 20px;
    border-radius: 15px;
}

.hidden {
    display: none;
}

#faqHeader,
.faq-question {
    cursor: pointer;
    padding: 10px;
    background-color: #f4ede2;
    border: 1px solid #f4ede2;
    border-radius: 5px;
}

#faq{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
}

#faqHeader:hover,
.faq-question:hover {
    background-color: #e0e0e0;
}

.faq-answer {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.faq-question::after {
    content: '\25BC';
    float: right;
}

.faq-question.active::after {
    content: '\25B2';
}

details {
    margin-bottom: 10px;
    border-radius: 10px;
    padding: 10px;
    background-color: #f4ede2;
    border: 1px solid #f4ede2;
    border-radius: 5px;
}