/* FONT FACE */


/* Appelle les polices de la page */

@font-face {
    font-family: 'Dungeon';
    src: url('../font/dungeon.ttf') format('truetype');
}


/*GLOBAL */


/* Balises et class appelés à plusieurs endroits dans la page */

body {
    background-color: #e7e7db;
	margin: 0;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-content {
	flex: 1;
}

h1 a {
    color: black;
}

li a,
footer a,
article a {
    color: #e40812;
}

ul {
    list-style: none;
}

.red {
    color: #e40812;
}

h5 {
    margin: 0;
    padding: 0;
}

footer {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}


/* HEADER */


/* Ce qui concerne le header et la nav */

h1 {
    font-family: 'Dungeon';
    font-size: 5rem;
    padding: .5rem;
    margin: 3rem 0;
    text-align: center;
}

.fa-spin {
    -webkit-animation: fa-spin 7s infinite linear;
    animation: fa-spin 7s infinite linear;
}

@-webkit-keyframes fa-spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes fa-spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

#logo {
    color: #e40812;
}

/* Add a black background color to the top navigation */
.topnav {
    background-color: #333;
    overflow: hidden;
}

/* Style the links inside the navigation bar */
.topnav a {
    float: left;
    display: block;
    color: #e40812;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

/* Change the color of links on hover */
.topnav a:hover {
    background-color: #ddd;
    color: black;
}

.topnav a {
    display: none;
}

.topnav a.icon {
    float: right;
    display: block;
}

.topnav.responsive {
    position: relative;
}

.topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
}

.topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
}

/* MAIN */
/* Ce qui concerne le corps du site */

main {
    width: 90%;
    margin: auto;
}

main p {
    text-align: justify;
}

h2 {
    text-align: center !important;
    font-size: 4rem;
    font-family: 'Dungeon';
}

h3 {
    font-size: 3rem;
    padding-left: 2rem;
    margin-bottom: 0;
}

section {
    margin: 4rem 0;
}

article {
    padding: 0 2rem 0 4rem;
}

article img {
    width: 10rem;
    border: 0.2rem dashed black;
    padding: 0.2rem;
    margin-right: 1rem;
}

article a {
    font-weight: bold;
    margin-left: 0;
    padding: 0.5rem;
}

article a:hover {
    text-decoration: underline dashed black;
    color: black;
}

article:hover {
    margin: 0 2rem 0 -2rem;
    transition: all .2s ease 0s;
}



/* Slideshow container */
.slideshow-container {
    position: relative;
    margin-top: 1rem;
}

/* Slides */
.mySlides {
    display: none;
    padding: 5rem 8rem;
    text-align: center;
    margin: 0;
}

.mySlides:hover {
    margin: 0 !important;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -3rem;
    padding: 1.6rem;
    color: #e40812;
    font-size: 2rem;
    border-radius: 0 0.3rem 0.3rem 0;
    user-select: none;
}

/* Position the "next button" to the right */
.next {
    position: absolute;
    right: 0;
    border-radius: 0.3rem 0 0 0.3rem;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
}

/* Add a background color to the active dot/circle */
.active {
    background-color: #717171;
}

fieldset {
    border: 0.2rem dashed #000000;
    padding: 5rem;
}

legend {
    padding: 0 1rem;
    background-color: #e7e7db;
}

legend h4 {
    margin-top: 0;
    margin-bottom: 0;
}

fieldset p,
fieldset .buttons {
    display: flex;
    justify-content: space-between;
}

fieldset p {
    flex-flow: column;
}

input,
select,
textarea {
    width: 100%;
}

textarea {
    height: 10rem;
}

button {
    display: inline-block;
    width: 25%;
    margin: auto;
}

#delete,
#send {
    padding: 0.8rem;
}

#send {
    background-color: black;
    color: #e40812;
    border: 0.2rem solid black;
}

#send:hover {
    border: 0.2rem solid #e40812;
}

#delete {
    background-color: #e40812;
    color: black;
    border: 0.2rem solid #e40812;
}

#delete:hover {
    border: 0.2rem solid black;
}

/* FOOTER */


/* Ce qui concerne le footer */

footer {
    background-color: black;
    color: #e7e7db;
    padding: 1%;
    text-align: center;
}

footer small {
    padding-top: 3%;
    padding-bottom: 2%;
}

footer ul {
    margin: 0;
    padding: 1rem 0;
}

footer li::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f0da";
    color: #e40812;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    transition: all .2s ease 0s;
}

footer li:hover::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f0da";
    color: #e40812;
    display: inline-block;
    width: 2em;
    margin-left: -2em;
    transition: all .2s ease 0s;
}
.list {
    text-align: left;
}

@media screen and (min-width: 769px) {

    /* HEADER */
    /* Ce qui concerne le header et la nav */
    footer {
        display: flex;
        flex-flow: row wrap;
        justify-content: space-evenly;
        align-content: center;
    }

}

@media screen and (min-width: 1025px) {
    .topnav {
        display: flex;
        justify-content: center;
    }

    .topnav a {
        float: none;
        display: inline-block;
    }

    /* Hide the link that should open and close the topnav on small screens */
    .topnav a.icon {
        display: none;
    }

    fieldset p {
        flex-flow: row;
    }

    input,
    select,
    textarea {
        width: 50%;
    }

    textarea {
        width: 60%;
        height: 20rem;
    }

    .buttons {
        display: inline-block;
        width: 30%;
        margin: auto;
        margin-top: 5rem;
    }

    .buttons::before {
        clear: both;
        content: ".";
        display: block;
        height: 0;
        line-height: 0;
        visibility: hidden;
    }

    .float-left {
        float: left;
        padding-right: 1rem;
    }
}