@font-face {
    font-family: "dogica";
    src: url("./polices/dogica.otf");
}

@font-face {
    font-family: "retroGame";
    src: url("./polices/RetroGaming.ttf");
}

/*  BODY, HTML & GENERAL RULES  */
html,
body {
    width: 100%;
    height: 100%;
    font-family: "retroGame";
    color: white;
    font-size: 1.5em;
}

body {
    padding: 0px;
    margin: 0px;
    background-color: rgb(3, 15, 26);
    overflow: hidden;
}

/*  DIV QUI COMPOSENT LA PAGE  */
.gameContainer {
    position: absolute;
    width: 95%;
    height: 95%;
    left: 2.5%;
    top: 2.5%;
    border-width: 5px;
    border-style: solid;
    background-color: rgb(3, 15, 26);
    border-image:
        linear-gradient(to bottom,
            white,
            rgba(3, 15, 26, 0)) 1;
}

.topScreen {
    width: 100%;
    height: 60%;
}

.titleGame {
    width: 100%;
    height: 10%;
}

.gameScreen {
    width: 80%;
    height: 90%;
    margin-left: 10%;
}

.bottomScreen {
    z-index: -1;
    width: 100%;
    height: 40%;
    border-width: 5px 0px 0px 0px;
    border-style: solid;
    border-image:
        linear-gradient(to left,
            rgba(3, 15, 26, 0),
            white,
            rgba(3, 15, 26, 0)) 5;
}

.enterTxt {
    width: 50%;
    height: 25%;
    margin-left: 25%;
}

.menuDiv {
    width: 100%;
}

.commandsList {
    width: 80%;
    height: 70%;
    margin-left: 10%;
    padding-top: 1%;
    border-width: 5px 0px 0px 0px;
    border-style: solid;
    border-image:
        linear-gradient(to left,
            rgba(3, 15, 26, 0),
            white,
            rgba(3, 15, 26, 0)) 5;
}

.mesStyles {
    width: 15%;
    height: 1.25em;
    position: absolute;
    top: 6%;
    left: 5%;
    text-align: center;
}

/*  COMMANDES ET LEURS AFFICHAGES  */
.baseCommands {
    float: left;
    width: 49%;
    height: 100%;
    padding-top: 1%;
    padding-left: 1%;
}

.baseCommands div {
    width: 49%;
    float: left;
}

.command span {
    cursor: pointer;
}

.iAmAngry {
    color: rgb(230, 97, 45);
}

.iAmBargain {
    color: rgb(12, 145, 67);
}

.iAmSad {
    color: rgb(92, 128, 206);
}

.iAmAccept {
    color: rgb(252, 220, 132);
}

.command span:hover {
    color: rgba(255, 255, 255, 0.2);
}

/*  INPUT  */
.inputCommand {
    text-align: center;
    color: white;
    font-size: 1em;
    width: 100%;
    height: 100%;
    font-family: "retroGame";
    background-color: rgba(0, 0, 0, 0);
    border: none;
    text-transform: uppercase;
    caret-color: white;
}

.inputCommand:focus {
    outline: none;
}

/*  CSS TEXTE GÉNÉRIQUE  */
.titleDiv {
    text-align: center;
    font-size: 1.25em;
}

.textDiv {
    display: inline;
    font-size: 0.75em;
}

.bigTextDiv {
    font-size: 1.25em;
    cursor: pointer;
}

.interactiveText {
    cursor: pointer;
    display: inline-block;
}

.hoverableText {
    cursor: pointer;
    display: inline-block;
    user-select: none;
}

.decorationTxt {
    display: inline-block;
}

.interactiveText:hover,
.menuTxt:hover,
.hoverableText:hover {
    color: rgba(255, 255, 255, 0.2);
}

/*  DIV QUI COMPOSENT L'ALERT  */
.alertBox {
    width: 60%;
    height: 50%;
    top: 20%;
    margin-left: 20%;
    border-width: 5px 0px 5px 0px;
    border-style: solid;
    border-image:
        linear-gradient(to left,
            rgba(3, 15, 26, 0),
            white,
            rgba(3, 15, 26, 0)) 5;
    position: absolute;
    background-color: rgb(3, 15, 26);
    z-index: 1;
    font-size: 0.9em;
}

.txtAlert {
    width: 80%;
    height: 60%;
    margin-top: 25px;
    margin-left: 10%;
}

/*  BOUTON ALERT  */
.buttonAlert {
    width: 50%;
    height: 20%;
    border: none;
    margin-left: 25%;
    background-color: rgba(3, 15, 26, 0);
    color: white;
    text-transform: uppercase;
    font-family: "retroGame";
    font-size: 1em;
    transition: width 0.2s;
    transition: margin-left 0.2s;
}

.buttonAlert:hover {
    cursor: pointer;
    background: linear-gradient(90deg, rgba(3, 15, 26, 0) 0%, white 50%, rgba(3, 15, 26, 0) 100%);
    color: rgb(3, 15, 26);
    width: 54%;
    margin-left: 23%;
}

.buttonAlert:active {
    background: none;
    background-color: rgba(3, 15, 26, 0);
    color: white;
}

/*  BOUTON SANS MARGIN-LEFT  */
.buttonGo {
    width: 50%;
    height: 20%;
    border: none;
    background-color: rgba(3, 15, 26, 0);
    color: white;
    text-transform: uppercase;
    font-family: "retroGame";
    font-size: 1em;
    transition: width 0.2s;
    transition: margin-left 0.2s;
}

.buttonGo:hover {
    cursor: pointer;
    background: linear-gradient(90deg, rgba(3, 15, 26, 0) 0%, white 50%, rgba(3, 15, 26, 0) 100%);
    color: rgb(3, 15, 26);
    width: 54%;
}

.buttonGo:active {
    background: none;
    background-color: rgba(3, 15, 26, 0);
    color: white;
}

.submitName {
    padding-top: 10px;
    padding-bottom: 10px;
}

/*  BOUTON COULEURS INVERSÉES  */
.buttonGoBack {
    width: 50%;
    height: 20%;
    border: none;
    margin-left: 25%;
    background-color: white;
    color: rgb(3, 15, 26);
    text-transform: uppercase;
    font-family: "retroGame";
    font-size: 1em;
}

.buttonGoBack:hover {
    cursor: pointer;
    background: linear-gradient(90deg, white 0%, rgba(3, 15, 26) 50%, white 100%);
    color: white;
}

.buttonGoBack:active {
    background: none;
    background-color: white;
    color: rgb(3, 15, 26);
}

/*  BOUTON LARGE SANS MARGIN-LEFT  */
.buttonGoForward {
    width: 80%;
    height: 20%;
    border: none;
    background-color: rgba(3, 15, 26, 0);
    color: white;
    text-transform: uppercase;
    font-family: "retroGame";
    font-size: 1em;
}

.buttonGoForward:hover {
    cursor: pointer;
    background: linear-gradient(90deg, rgba(3, 15, 26, 0) 0%, white 50%, rgba(3, 15, 26, 0) 100%);
    color: rgb(3, 15, 26);
}

.buttonGoForward:active {
    background: none;
    background-color: rgba(3, 15, 26, 0);
    color: white;
}

/*  STYLE POUR LA DIV .FLICKER  */
.flicker {
    pointer-events: none;
    position: absolute;
    width: auto;
    min-width: 100%;
    height: 105%;
    z-index: 15;
    background: rgba(9, 8, 8, 0.1);
}

/* STYLE POUR LA LETTRE */
.myLetter {
    background-color: white;
    position: absolute;
    top: 100%;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 2;
    color: rgb(3, 15, 26);
}

.myLetterText {
    width: 80%;
    height: 80%;
    margin-left: 10%;
    margin-top: 10%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/*  BOUTON LETTRE */
.buttonLetter {
    width: 60%;
    height: 15%;
    margin-left: 20%;
    margin-bottom: 15%;
    border: none;
    background-color: white;
    color: rgb(3, 15, 26);
    text-transform: uppercase;
    font-family: "retroGame";
    font-size: 1em;
}

.buttonLetter:hover {
    cursor: pointer;
    background: linear-gradient(90deg, white 0%, rgba(3, 15, 26) 50%, white 100%);
    color: white;
}

.buttonLetter:active {
    background: none;
    background-color: white;
    color: rgb(3, 15, 26);
}

/* STYLE POUR LA FIN */
.endSection {
    position: absolute;
    top: 100%;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: rgb(3, 15, 26);
}

.endSectionText {
    width: 80%;
    height: 80%;
    margin-left: 10%;
    margin-top: 10%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/*  BOUTON LETTRE */
.buttonEnd {
    width: 80%;
    height: 15%;
    margin-left: 10%;
    margin-bottom: 15%;
    border: none;
    text-transform: uppercase;
    font-family: "retroGame";
    font-size: 1em;
    background-color: rgba(3, 15, 26, 0);
    color: white;
}

.buttonEnd:hover {
    cursor: pointer;
    color: rgb(3, 15, 26);
    background: linear-gradient(90deg, rgba(3, 15, 26, 0) 0%, white 50%, rgba(3, 15, 26, 0) 100%);
}

.buttonEnd:active {
    background: none;
    background-color: rgba(3, 15, 26, 0);
    color: white;
}

/* DRAPEAUX */
.mesFlags {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 120px;
    position: relative;
    top: 85%;
    left: 5%;
    z-index: 10;
}

.flag {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.line {
    display: flex;
}

.pixel {
    height: 5px;
    background-color: black;
    display: inline-block;
    margin: 0px;
    padding: 0px;
}

.one {
    flex: 0 0 5px;
}

.two {
    flex: 0 0 10px;
}

.three {
    flex: 0 0 15px;
}

.five {
    flex: 0 0 25px;
}

.six {
    flex: 0 0 30px;
}

.eigth {
    flex: 0 0 40px;
}

.maximum {
    flex: 0 0 90px;
}

.white {
    background-color: rgba(0, 0, 0, 0);
}
.flag:hover .white {
    background-color: rgba(255, 255, 255, 1);
}
.flag:active .white {
    background-color: rgba(0, 0, 0, 0);
}

.blue {
    background-color: rgb(92, 128, 206);
}

.red {
    background-color: rgb(230, 97, 45);
}