body {
    background-color: #adb5bd;
    margin: 0;
    padding: 0;
    height: 100vh;
}

.inputDA {
    margin:0 5px;
    border-radius:16px;
    background-color: #393c3f;
    color: wheat;
    padding:10px;
    z-index: 1;
    border:none;
    outline:none;
    box-sizing: border-box;
    font-weight: bold;
}

/*----------Boutons----------*/

.buttonretro {
    font-family: inherit;
    border: none;
    outline: 1px dotted rgb(37, 37, 37);
    outline-offset: -4px;
    background: hsl(0deg 0% 75%);
    box-shadow: inset -1px -1px #292929, inset 1px 1px #fff, inset -2px -2px rgb(158, 158, 158), inset 2px 2px #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 30px;

}

.buttonretro:active {
    box-shadow: inset -1px -1px #fff, inset 1px 1px #292929, inset -2px -2px #ffffff, inset 2px 2px rgb(158, 158, 158);
}

/* From Uiverse.io by SelfMadeSystem */
.buttonblack,
.selectblack {
    position: relative;
    cursor: pointer;
    padding: 4px 8px;
    border: 1px solid black;
    border-radius: 4px;
    color: #fff;
    text-shadow: 1px 1px #000;
    box-shadow:
        inset 0px 4px 4px -3px #fff0,
        inset 0px -3px 4px -3px #fff;
    background: linear-gradient(#3e3939, #423f3f 50%, #000 50%);
    isolation: isolate;
    transition:
        0.25s all,
        0.1s background-position;
}

.buttonblack::after,
.selectblack::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: radial-gradient(circle at 50% 150%, #969797, #0000 50%);
    background-size: 300% 50%;
    background-position: 50% 100%;
    background-repeat: no-repeat;
    opacity: 0;
    transition: inherit;
}

.buttonblack::before,
.selectblack::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: radial-gradient(circle at 50% 320%, #969797, #0000 50%);
    background-size: 300% 50%;
    background-position: 50% 0%;
    background-repeat: no-repeat;
    opacity: 0;
    transition: inherit;
}

.buttonblack:hover,
.selectblack:hover {
    box-shadow:
        inset 0px 4px 4px -3px #fff5,
        inset 0px -3px 4px -3px #fff;
}

.buttonblack:hover::before,
.buttonblack:hover::after,
.selectblack:hover::before,
.selectblack:hover::after {
    opacity: 1;
}

.buttonblack:active::before,
.buttonblack:active::after,
.selectblack:active::before,
.selectblack:active::after {
    opacity: 0;
}

.buttonblack:active,
.selectblack:active {
    box-shadow:
        inset 0px 4px 4px -3px #000,
        inset 0px -4px 4px -3px #000c,
        inset 0px 0px 24px -3px #000a;
    background-position: 1px 1px;
}

.buttonblack div,
.selectblack div {
    transition: 0.1s translate;
}

.buttonblack:active div,
.selectblack:active div {
    translate: 1px 1px;
}

.buttonblack {
    margin: 0 10px;
}


/*----------Damier/Plateau/----------*/

.damier {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 95%;
    overflow: scroll;
    z-index: 0;
}

#jeu {
    width: 2229px;
    height: 1440px;
    margin-top: -24px;
    margin-left: -40px;
}

#jeuprev {
    width: 2230px;
    height: 1440px;
    margin-top: -24px;
    margin-left: -40px;
}

/*----------Composants hauts----------*/

.haut {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 0;
    top: 0;
    width: 100%;
    height: 5%;
    background-color: rgb(23, 23, 23);
    z-index: 1;
    color: wheat;
    box-sizing: border-box;
}

#nomPartie, #nomJoueur {
    margin-right: auto;
    background-color: rgb(31, 30, 30);
    height: 100%;
    width: 25%;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.boutonHaut1, .boutonHaut2, .boutonHaut3, .ressources{
    background-color: rgb(31, 30, 30);
    width: 8%;
    height: 100%;
    display : flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.ressources {
    width: auto;
    margin-right: auto;
    gap: 10px;
    padding: 20px;
    box-sizing: border-box;
}

.ressources img {
    height: 50px;
    margin-right: 10px;
    vertical-align: middle;
}

.boutonHaut2{
    background-color: rgb(23, 23, 23);
}

.boutonHaut1:hover, .boutonHaut2:hover {
    background-color: #393c3f;
}

.boutonHaut3 img, .boutonHaut3 img {
    width: 75px;
    height: 75px;
    margin: 5px;
}

.boutonHaut3 img:hover, .boutonHaut3 img:hover {
    cursor: pointer;
    transform: scale(1.1);
}

.boutonHaut3 img:active , .boutonHaut3 img:active {
    transform: scale(0.9);
}

.boutonHaut3 {
    width: 15%;
}


/*----------Vues prev et partie----------*/


.partie {
    width: 100vw;
    height: 100vh;
    display: none;
}

.rejoindrePartie {
    width: 100vw;
    height: 100vh;
    display: none
}

/* Jeu */

.ouvrier {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: baseline;
}

.txtchamp {
    text-align: center;
    right: 0;
    position: absolute;
    bottom: 0;
}

#vueForge,
#vueChamp,
#vueMine,
#vueTour,
#vueNotificationMessage,
#vuePort,
#vueEntrepot {
    color: wheat;
    display: none;
    height: 500px;
    width: 700px;
    background-color: #000000e3;
    position: fixed;
    left: 30%;
    top: 25%;
    z-index: 4;
    border: 4px double #212529;
    overflow: auto;
}

#vueNoificationMessage p {
    word-wrap: break-word;
}

#vueNotifications {
    color: wheat;
    display: none;
    height: 94%;
    width: 15%;
    background-color: #000000e3;
    position: fixed;
    left: 0%;
    bottom: 0%;
    z-index: 4;
    border: 4px double #212529;
    overflow: auto;
    display: none;
    flex-direction: column;
}

.notifications {
    display: flex;
    padding: 10px;
    background-color: #212529;
    color: wheat;
    cursor: pointer;
    margin: 5px;
}

.notifications:hover {
    background-color: #343a40;

}

#vueChamp p {
    text-align: center;
    margin: 0;
}

#vueMine p {
    text-align: center;
    margin: 0;
}

.hautvue {
    display: flex;
    align-items: center;
    justify-content: space-between;
    left: 0;
    top: 0;
    width: 100%;
    height: 10%;
    z-index: 1;
    color: wheat;
    box-sizing: border-box;
    border: 4px double #212529;
    position: sticky;
}

.hautvue button {
    margin-left: auto;
}

/* Prev */

#choixdialogue p:hover {
    cursor: pointer;
    user-select: none;
    color: white;
}

#choixdialogue {
    display: flex;
    justify-content: center;
    align-items: center;
}

#choixdialogue p {
    margin: 20%;
    color: wheat;
    font-size: 18px;
    font-weight: bold;
}

.inputblack {
    margin: 30px;
    background: #262525;
    border: none;
    outline: none;
    padding: 5px 15px;
    font-size: 17px;
    border-radius: 9999px;
    box-shadow: inset 2px 5px 10px rgb(5, 5, 5);
    color: #fff;
}

#afficherNotif {
    all: unset;
    cursor: pointer;
    font-size: 25px;
}

#vueDiplomatie,
#vueEspionnage,
#vueEspions {
    display: none;
}

#envoyerMail,
#contenuMail {
    z-index: 6;
}

.uniteMode {
    display: flex;
    flex-direction: row;
}

/* Tutoriel */

#tuto {
    display: flex;
}

.tutorielContainer {
    color: wheat;
    display: none;
    height: 80%;
    width: 55%;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    border: 4px double #212529;
    overflow: auto;
    border-radius: 24px;
}

.contenuTutoContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 60%;
    background-color: #000000e3;
    overflow: auto;
    margin: auto;
}

.contenuTuto {
    width: 80%;
    border-radius: 16px;
    background-color: #393c3fb2;
    margin: 5%;
    position: relative;
}

.contenuTutoTitre {
    display: flex;
    align-items: center;
    height: 20%;
    width: 100%;
    font-size: 20px;
    font-weight: bold;
    position: absolute;
    top: -8%;
    left: 50%;
    transform: translateX(-50%);
    color: rgb(152, 129, 88);
}

.contenuTutoTexte {
    margin: 15px;
}

.titreTutoContainer {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 40%;
    background-color: black;
    overflow: auto;
}

.titreTuto1,
.titreTuto2 {
    display: flex;
    align-items: center;
    height: 13%;
    width: 100%;
    gap: 50px;
    font-weight: bold;
}

.titreTuto1 {
    background-color: rgb(23, 23, 23);
}

.titreTuto2 {
    background-color: rgb(31, 30, 30);
}

.titreTuto1:hover,
.titreTuto2:hover {
    background-color: #393c3f;
    cursor: pointer;
}

.titreTutoImage img {
    height: 100%;
    width: 75px;
    margin-left: 10px;
}


#nbBateaux {
    background-color: #393c3fb2;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    padding: 15px;
    font-size: large;
    width: 50%;
    height: 50px;

}

#titreNbBateaux {
    margin-bottom: -10px;
    font-size: x-large;
}

#boutonCreerBateau {
    border-radius: 16px;
    background-color: #393c3f;
    color: wheat;
    padding: 10px;
    z-index: 1;
    border: none;
    outline: none;
    box-sizing: border-box;
    font-weight: bold;

    margin: 5%;

    width: 30%;
    cursor: pointer;
}

#entrepotArriveSelectEntrepot {
    background-color: #393c3fb2;
    border-radius: 16px;
    padding: 15px;
    width: 70%;
}

#containerBoutonTEntre {
    display: flex;
    flex-direction: row-reverse;
}

#boutonEnvoyerTransfertEntrepot {
    border-radius: 16px;
    background-color: #393c3f;
    color: wheat;
    padding: 10px;
    z-index: 1;
    border: none;
    outline: none;
    box-sizing: border-box;
    font-weight: bold;
    margin: 5%;
    width: 30%;
}

#boutonEnvoyerTransfertEntrepot:hover {
    cursor: pointer;
    background-color: rgb(23, 23, 23);
}

#entrepotArriveSelectEntrepot {
    background-color: #393c3fb2;
    border-radius: 16px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
}