@charset "ISO-8859-1";/* CSS Document */

body{
    font-family:Arial, sans-serif;
    background-color: rgb(42, 41, 41);
    color : white;
    margin: 0;
    width :100%;
    display: flex;
    flex-direction: column;
}



h1{
    text-align: center;
    color: #f5c542;
}
#container{
    display:flex;
    justify-content: center;
}

#container img{
    min-width:30%;
    width:400px;
}
h2{
    color: #ff914d;
    border-bottom: 2px solid #444;
    padding-bottom: 5px;
}
#rules{

    margin-left: 5%;
    margin-right: 5%;
}
#rules>p{
    margin-left: 5%;
    margin-right: 5%;
}
#lore{
    margin-left: 5%;
    margin-right: 5%;
}
#lore>p{
    margin-left: 5%;
    margin-right: 5%;
}
#choice{
    display:flex;
    flex-wrap: wrap;
    justify-content: center;
    gap :30px;
}
button{
    align-self: center;
    background-color: #f5c542;
    color: #111;
    border: none;
    cursor: pointer;
}
button:hover {
    background-color: #ff914d;
    transform: scale(1.05);
}

button:disabled{
    opacity: 0.5;
    cursor: not-allowed;
    background-color: grey;
    pointer-events: none;
}
button:disabled:hover {
    background-color: initial;
    transform: none;
}


#fight{
    display:flex;
    flex-direction: column;
}
#fight #content{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
}
#fight #container{
    min-width:30%;
    width:400px;
    border-style: dashed;
    flex-shrink: 0;
}

#fight img{
    min-width:30%;
    width:400px;
    height:auto;
    flex-shrink: 0;
}

#fight #log{
    min-width:30%;
    flex-shrink: 0;
    width:400px;
    height:400px;
    background-color: azure;

    overflow-y:auto;
    padding:10px;
    color:black;

    margin-bottom:5px;
}
#fight #choice{
    display: flex;
    flex-direction: column;
}

#fight #choice button{
    width:150px;
    height:50px;
}

#footer{
    display: flex;
    flex-direction: row;
    width :100%;
}

#footer ul{
    border-top-style: solid;
    display: flex;
    flex-direction: column;
}



#GameOverPopUp{
    position:fixed; /*Le pop up ne bouge pas quand on scrolle*/
    top: 0; /*Le pop up prends toute la page, il commence en haut à gauche*/
    left:0;
    width:100%;
    height:100%;
    background-image:url("images/gameOverScreen.png");

    /*background-color: rgba(255,0,5,0.2);*/
    background-size: cover;
    background-position: center;

    z-index:999; /*Place le pop up au premier plan*/
    display:flex;
    font-size:20px;
    justify-content: center;
    align-items: center;
}

#GameOverPopUp #content{
    /*border-color: black; // Pour faire le fond en CSS, mais avec une image on peurt avoir quelque chose de plus détaillé
    border-style: solid;
    border-radius: 100px;
    border-width: 30px;
    background-color: rgba(129,82,83,1);*/
    padding-top: 100px;
    display:flex;
    height:500px;
    width:90%;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
}
#GameOverPopUp #content p{
    justify-self: flex-start;
    white-space: pre-line; /* permet de faire \n un vrai retour à la ligne*/
}
#GameOverPopUp button{
    width:150px;
    height:50px;
    text-align: center;
}

#GameOverPopUp.hidden{
    display: none;
}

.no-scroll{ /*empèche le scroll de la page*/
    overflow: hidden;
}
#Dialogues.hidden{
    display:none;
}
button.hidden{
    display:none;
}

#Dialogues{
    position:fixed; /*Le pop up ne bouge pas quand on scrolle*/
    top: 0; /*Le pop up prends toute la page, il commence en haut à gauche*/
    left:0;
    width:100%;
    height:100%;
    background-color: rgb(42, 41, 41);
    background-size: cover;
    background-position: center;

    z-index:200; /*Place le pop up au premier plan*/
    display:flex;
    font-size:20px;
    justify-content: center;
    align-items:flex-start;
}

#Dialogues #content{
    display:flex;
    height:700px;
    width:90%;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
}

#Dialogues #pictureBox{
   height: 70%;
}
#Dialogues img{
    object-fit:contain;
    height:100%;
    width:auto;
}

#speaker{
    color: #ff914d;
    border-bottom: 2px solid #444;
    padding-bottom: 5px;
}