body {
    display: inline-grid;
    place-items: center;
    width: 100%;
    font-family: 'Merriweather', serif;

    background-image: url(./imgs/fondo.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;  
}


.simon {
    position: relative;
    margin-top: 50px;
    padding: 10px;
    border-radius: 5px;
    
}

.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    text-align: center;
}

.modal-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.modal-image-2 {
    width: 90%;
    height: auto;
    margin-bottom: 20px;
}

.close{
    color:#aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus{
    color: blac;
    text-decoration: none;
    cursor: pointer;
}

#acceptBtn{
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;

}

.buttonContainer {
    display: inline-grid;
    grid-gap: 10px;
    grid-template-columns: auto auto;
    transform: rotate(45deg);
}

.square {
    border-radius: 5px;
    width: 150px;
    height: 150px;
    cursor: pointer;
}

.square:active,
.active {
    filter: brightness(125%);
}

.red {
    background-color: #EE6352;
}

.blue {
    background-color: #08B2E3;
}

.green {
    background-color: #57A773;
}

.yellow {
    background-color: #FFDF64;
}

#startButton {
    width: 125px;
    position: absolute;
    /* top: 25px; */
    /* right: 25px; */
    border: none;
    font-family: 'Merriweather', serif;
    cursor: pointer;
    border-radius: 25px;
    color: #fff;
    background-color: #0843a0;
    padding: 10px;
    font-size: 25px;
}

#startButton:disabled {
    background-color: #eee;
}

p.title {
    width: min-content;
    color: #ff9100ce;
    font-size: 50px;
    height: 150px;
    left: 50px;
    position: relative;
    top: 0;
    width: 350px;
}



p.instrucciones{
    text-align: start;
    width: 200px;
    height: 200px;
    font-size: 20px;
    color: #14b6b6;
    height: 150px; left: 0;
    position: relative;
    top: -50px;
    width: 150px;
}

.winner {
    animation: spin 1s ease-in-out;
}

#gameOverModal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

#gameOverModal .modal-content {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
}

#gameOverModal .btn {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #587792;
    color: #fff;
}


@keyframes spin { 
    100% { transform:rotate(180deg) } }