@font-face {
    font-family: Roboto-Medium;
    src: url(./assets/fonts/Roboto-Medium.ttf);
}

@font-face {
    font-family: Roboto-Bold;
    src: url(./assets/fonts/Roboto-Bold.ttf);
}


* {
    margin: 5px;
    padding: 5px;
}

body {
    background: url(./assets/img/background_dark_1.png?dummy=371662) fixed 100%;
    background-position: center;
    background-size: cover;
}

.all {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    top: 18vh;
}

.logo {
    width: 15vw;
    height: auto;
}

h1 {
    text-align: center;
    font-family: Roboto-Bold;
    font-size: 35px;
    color: #ececec;
    padding-bottom: 4vh;
    text-shadow: 0 0 2px black, 0 0 2px black, 0 0 2px black, 0 0 2px black, 0 0 2px black, 0 0 2px black, 
                0 0 2px black, 0 0 2px black, 0 0 2px black, 0 0 2px black, 0 0 2px black, 0 0 2px black, 
                0 0 2px black, 0 0 2px black, 0 0 2px black, 0 0 2px black, 0 0 2px black, 0 0 2px black;
}

.buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    justify-content: center;
    align-content: center;
    gap: 4vw;
}

a.button {
    font-family: Roboto-Bold;
    font-size: 20px;
    color: #ececec;
    text-shadow: 0 0 2px black, 0 0 2px black, 0 0 2px black, 0 0 2px black, 0 0 2px black, 0 0 2px black, 
                0 0 2px black, 0 0 2px black, 0 0 2px black, 0 0 2px black, 0 0 2px black, 0 0 2px black;
    text-decoration: none;
    
    padding: 17px 45px;
    border-radius: 20px;
    border: solid 3px #ececec;

    background: linear-gradient(130deg, #353535, #6c6c6c, #e53900, #ffa309);
    background-size: 400% 150%;
    background-position: 90% 0;
    transform: scale(1);

    transition: background-position .5s, transform .3s ease-in-out;
}

a:hover {
    background-position: 0 0;
    transform: scale(1.05);
}

.discord {
    width: 5vw;
    height: 5vw;
    position: fixed;
    right: 1vw;
    bottom: 1vh;
    background: url("./assets/img/discord-256x256.png") no-repeat center/contain;
    transform: scale(1);
    transition: background-image .5s ease-in-out, transform .3s ease-in-out;
}

.discord:hover {
    background: url("./assets/img/discord-256x256_hover.png") no-repeat center/contain;
    transform: scale(1.05);
}


/* Tablettes et petits écrans */
@media (max-width: 991px) {
    .all {
        top: 7vh;
    }

    .logo {
        width: 40vw; /* Agrandissement du logo pour rester lisible */
    }

    h1 {
        font-size: 28px;
    }

    .buttons {
        flex-direction: column; /* Empile les boutons */
        gap: 2vh;
    }

    a.button {
        font-size: 40px;
        padding: 2vh 10vw;
    }

    .discord {
        width: 12vw;
        height: 12vw;
        right: 3vw;
        bottom: 2vh;
    }
}

/* Mobiles */
@media (max-width: 767px) {
    .all {
        top: 8vh;
    }

    .logo {
        width: 40vw;
    }

    h1 {
        font-size: 24px;
    }

    .buttons {
        gap: 1.5vh;
    }

    a.button {
        font-size: 16px;
        padding: 10px 30px;
    }

    .discord {
        width: 10vw;
        height: 10vw;
        right: 2vw;
        bottom: 2vh;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    h1 {
        font-size: 20px;
    }

    .logo {
        width: 50vw;
    }

    a.button {
        font-size: 14px;
        padding: 27px 45px;
    }

    .discord {
        width: 12vw;
        height: 12vw;
    }
}
