@font-face {
    font-family: 'Magnetar';
    src: url(../font/Magnetar.otf);
}

@font-face {
    font-family: 'Enixe';
    src: url(../font/Enixe.ttf);
}


body{
    height: 100vh;
    overflow: hidden;
    background: url(../media/fond_intro.jpg);
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

.back{
    top: 0;
    z-index: 2;
    background-color: rgb(24, 24, 24);
    position: absolute;
    height: 100vh;
    width: 100%;
    animation-duration: 2s;
    animation-name: show;
    animation-delay: 2.5s;
    animation-fill-mode: forwards;
    opacity: 1;
}

.choose{
    z-index: 1;
}



@keyframes show{
    from{
        opacity: 1;
        z-index: 2;
    }
    to{
        opacity: 0;
        z-index: -1;
    }
}




img{
    z-index: 2;
    margin-top: 50px;
    width: 35%;
    filter: drop-shadow(0 0 5px black);
    animation-duration: 3s;
    animation-name: pulse;
    animation-delay: 0.5s;
}


@keyframes pulsy1{
    from{
        transform: scale(1);
    }

    to{
        transform: scale(500);
    }
}

@keyframes pulse{
    5% {
        transform: scale(1);
    }
    10% {
        transform: scale(1.05);
        
    }
    15% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
        
    }
    /* 25% {
        transform: scale(1);
    } */
    55% {
        transform: scale(1);
    }
    60% {
        transform: scale(1.05);
    }
    65% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.2);
    }
    /* 75% {
        transform: scale(1);
    } */
    100% {
        transform: scale(1);
    }
}

h2{
    z-index: 3;
    font-family: 'Enixe';
    font-weight: 100;
    font-size: 35px;
    text-shadow: 0px 0px 5px black;
    margin-top: 0;
    color: black;
}

a{
    width: 25%;
    display: block;
    padding: 100px 0;
    text-align: center;
    box-shadow: 0 0 5px black;
    background-size: cover;
    text-decoration: none;
    color: rgb(255, 255, 255);
}

.choose{
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 100px;
}


@media screen and (1080px <= width){
    
    a{
        position: absolute;
        transition: 0.3s;
        top: 2000px;
        overflow: hidden;

        animation-delay: 3s;
        animation-name: up;
        animation-duration: 1.1s;
        animation-fill-mode: forwards;
        animation-timing-function: cubic-bezier(0,.81,.44,1.13);
    }


    a::before{
        position: absolute;
        top: 0;
        content: '';
        display: block;
        z-index: 2;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.301);
        transition: 0.3s;
    }

        
    a:hover::before{
        background-color: rgba(0, 0, 0, 0);
        top: 100px;
        height: 0%;
    }

}




@keyframes up{
    from{
        top: 2000px;
    }
    to{
        top: 0px;
    }
}

.choose h2{
    position: relative;
    z-index: 3;
    margin: auto;
    font-family: 'Enixe';
    font-weight: 100;
    font-size: 35px;
    text-shadow: 0px 0px 5px black;
    color: white;
}



.island{
    background-image: url(../media/the_island_small.jpg);
    left: 20%;
}
.island:hover{
    transform: rotate3d(-1,0,1, -10deg) scale(1.1);
}
.scorched{
    background-image: url(../media/scorched_earth_small.jpg);
    right: 20%;
}

.scorched:hover{
    transform: rotate3d(-1,0,1, 10deg) scale(1.1);
}


@media screen and (0px <= width <= 780px) {
    img{
        margin-top: 50px;
        width: 70%;
    }

    body{
        background-image: url(../media/fond_mobile.jpg);
        background-size: cover;
        margin: 0;
    }

    .choose{
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        align-items: center;
    }

    .choose a{
        width: 90%;
        padding: 50px 0;
        animation-name: none;
        margin: 0 3%;
        font-size: 20px;
    }

    .scorched{
        top: 200px;
        left: 0;
    }

    .choose h2{
        font-size: 25px;
        z-index: 1;
    }

}