*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/*-------globales-------*/

html{
    scroll-behavior: smooth;
}

a{
    text-decoration: none;
}

/*-------cabecera-------*/

.cabecera{
    width: 100%;
    height: 700px;
    background: url("../image/fondo.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.cabecera::before{
    content: '';
    background: rgba(0, 0, 0, .5);
    width: 100%;
    height: 100%;
    position: absolute;
}

.container{
    width: 50%;
    height: 100vh;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: center;
    *align-items: center;
    z-index: 100;
    position: relative;
}

.container a{
    border: 1px solid #fff;
    margin: 15px;
    padding: 15px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all .5s;
    height: 50px;
}

.container a:nth-child(1){
    color: #fff;
    background-color: rgb(16, 177, 16);
}

.container a:nth-child(2){
    color: white;
}

.container a:nth-child(1):hover{
    background: none;
}

.container a:nth-child(2):hover{
    color: #fff;
    background: rgb(16, 177, 16);
}

.plano{  
    width: 100%;
    height: 100vh;
    *max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url("../image/fondo-game.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.plano::before{
    content: '';
    background: rgba(0, 0, 0, .5);
    width: 100%;
    height: 100%;
    position: absolute;
}

canvas{
    position: relative;
    z-index: 1;
    background-color: #62d8ac;
    margin: 40px;
    border: 1px solid #000;
}

/*-------instrucciones-------*/

#instrucciones{
    background: rgba(0, 0, 0, .5);
    background-attachment: fixed;
    padding: 50px;
    *margin: 20px 0 0 0;
    height: 750px;
}

.iniciarjuegoins{
    text-align: center;
    color: #fff;
    font-size: 30px;
}

.logo{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    *margin: 30px;
    z-index: 1;
    position: relative;
}

.logo img.logoimg {
    margin-top: 95px;
}

#instrucciones p, #instrucciones h4{
    font-family: sans-serif;
    color: #fff;
}

#instrucciones h4{
    font-size: 30px;
    margin-bottom: 20px;
    *text-transform: uppercase;
}

#instrucciones h4.controls{
    text-align: center;
}

#instrucciones img{
    width: 300px;
    height: 190px;
    margin-left: 480px ;
    margin-top: -20px;
}

#instrucciones .copy{
    text-align: center;
    font-size: 20px;
}

/*-------controles-------*/

.play-stop{
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    margin: 20px;
}

.play-stop button, .play-stop a{
    margin: 20px;
    padding: 20px;
    text-transform: uppercase;
    cursor: pointer;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 25px;
}

.play-stop a{
    background: rgb(66, 112, 66);
    transition: all .3s;
}

.play-stop a:hover{
    background: rgb(81, 135, 81);
}

.play-stop .play{
    background: rgb(21, 219, 21);
    transition: all .3s;
}

.play-stop .play:hover{
    background: rgb(16, 177, 16);
}

.play-stop .stop{
    background: rgb(226, 16, 16);
    transition: all .3s;
}

.play-stop .stop:hover{
    background: rgb(255, 50, 50);
}

/*-------modales-------*/

.modalales{
    position: relative;
    z-index: 2;
}

.modal-win, .modal-lost {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
}

.modal-content-win, .modal-content-lost {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 1rem 1.5rem;
    width: 24rem;
    border-radius: 0.5rem;
}

.close-win, .close-lost {
    float: right;
    width: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    cursor: pointer;
    border-radius: 0.25rem;
    background-color: lightgray;
}

.close-win:hover, .close-lost:hover {
    background-color: darkgray;
}

.perdiste-title, .ganaste-title{
    text-align: center;
}

.perdiste, .ganaste{
    width: 200px;
    height: 200px;
    margin: 10px 60px;
}

#reanudar{
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: #d7d7d7;
    margin: 5px 120px;
}

#reanudar:hover{
    background: #f3f3f3;
}

