@font-face {
    font-family: 'Wargate';
    src: url('/fonts/Wargate-Normal.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Wargate', sans-serif;
}

body {
    background-color: #270151;
    color: #FFFFFF;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.bords img {
    position: absolute;
}

#bord-gauche {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 80%;
}

#bord-droit {
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    height: 80%;
}

#bord-haut {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
}

#bord-bas {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    width: 50%;
}

.home-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

button {
    background-color: #270151;
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 20px;
    margin-top: 20px;
    cursor: pointer;
    font-size: 16px;
}

.logo-container {
    width: 80%;
    display: flex;
    justify-content: space-between;
}

.logo-container form {
    margin-top: auto;
    margin-bottom: auto;
}

.logo-container button {
    margin-top: 0;
}

.logo-container hr {
    min-width: 180.4px;
    min-height: 106.8px;
    border: none;
}

.connexion-container {
    display: flex;
    flex-direction: row;
    min-width: 180.4px;
    min-height: 106.8px;
}

.connexion-container button {
    border: none;
    transition: color 0.3s;
}

.connexion-container button:hover {
    color: #ffffff60;
}

.profile-icon {
    margin-top: auto;
    margin-bottom: auto;
}

#new_game {
    width: 100%;
    max-width: 400px;
    max-height: 300px;
    background-color: #5000A7;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#new_game:hover {
    background-color: #050630;
}

.login-container button {
    background-color: #5000A7;
    transition: color 0.3s;
}

.login-container button:hover {
    color: #ffffff60;
}

@media screen and (max-width: 600px) {
    body {
        font-size: 14px;
        overflow-y: auto;
    }

    .home-container {
        width: 100%;
        height: auto;
    }

    .logo-container {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .logo {
        margin-bottom: 15px;
    }

    .bords img {
        display: none;
    }

    button {
        padding: 8px 16px;
        font-size: 14px;
    }

    #new_game {
        max-width: 80%;
        max-height: none;
    }

    .connexion-container {
        flex-direction: column;
        align-items: center;
    }

    .profile-icon, .logo-container form, .connexion-container button {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .bords img {
        position: absolute;
    }

    #bord-gauche, #bord-droit {
        height: 50%;
    }

    #bord-haut, #bord-bas {
        width: 80%;
    }

    #bord-gauche, #bord-droit, #bord-haut, #bord-bas {
        display: block;
    }
}
