/* Police */
@keyframes float {
	0% {
		box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6);
		transform: translatey(0px);
	}
	50% {
		box-shadow: 0 25px 15px 0px rgba(0,0,0,0.2);
		transform: translatey(-20px);
	}
	100% {
		box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6);
		transform: translatey(0px);
	}
}
*,
*::after,
::before {
    box-sizing: border-box;
}

/* zones */

html {
    height: 100%;
    margin: 0;
    scroll-behavior: smooth;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -ms-scroll-snap-type: y mandatory;
    -webkit-scroll-snap-type: y mandatory;
    -o-scroll-snap-type: y mandatory;
    -moz-scroll-snap-type: y mandatory;
}

body {
    margin: 0;
    padding: 0;
    position: relative;
    font-family: 'VT323', monospace;
    cursor: url(img/cursorPacman.png) 16 16,auto;
}

header {
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    font-size: 21px;
    text-align: center;
    animation: fadein 2s;
}

img {
    width: 300px;
}

#fond {
    z-index: -49999;
    background-size: cover;
    position: fixed;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
  }

.left {
    flex-direction: row-reverse;
}

.img-desc {
    width: 40%;
    height: 70%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    z-index: 10;
}

/* POPUP */

.popup {
    z-index: 10000000;
    color:white;
    width: 1000px;
    display: flex; 
    border: solid 5px white;
    padding: 10px;
    background-color: black;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    visibility: hidden;
}

.popupvisible {
    visibility: visible;
}

.popupinvisible {
    visibility: hidden;
}

.onclick {
    position:absolute;
 
}

.gif {
    position: fixed;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    z-index: 65555;

}

.pacman {
    width: 70px;
    z-index: 65555;
    margin: 1px;
}

.pacman:hover {
    width: 90px;
    margin: 0px;
    cursor: url(img/pointerPacman.png) 16 16, auto;
}

.youpi {
    width: 100vw;
    height: 100vh;
    padding: 100px;
    padding-bottom: 35px;
    position: fixed;
    display: flex;
    align-items: flex-end;
    visibility: hidden;
    z-index: 100000;
}

article {
    width: 50%;
    display: flex;
    flex-direction: column;
}


/* textes */
header h1 {
    text-align: right;
    text-transform: uppercase;
}

h1{
    font-size: xx-large;
}

h3,
h4,
h5,
h6,
p {
    margin: 0;
    padding: 4px;
}


article {
    border: solid white 6px;
    padding: 20px;
}


section {
    color: white;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 75%;
    gap: 2rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    -moz-scroll-snap-align: start;
    -moz-scroll-snap-stop: always;
}


#mention {
    align-items: flex-start;
}

/* liens */

.triangle_container{
    width: 100%;
    display: flex;
    justify-content: end;
}

.triangle {
    width: 30px;
    height: 30px;
    display: flex;
    align-self: flex-end;
}

.triangle:hover {
    width: 32px;
    height: 32px;
    cursor: url(img/pointerPacman.png) 16 16, auto;
    pointer-events: fill;
}

/* Aller de page en page */

a {
    text-decoration: none;
    color: white;
    cursor: url(img/pointerPacman.png) 16 16, auto;
}

#play {
    margin-top: 50px;
    cursor: url(img/pointerPacman.png) 16 16, auto;
    animation: float 2s infinite;
z-index: 300;
}

#play:hover {
    color: rgb(38, 204, 212);
    cursor: url(img/pointerPacman.png) 16 16, auto;
}

#message {
    animation: float 2s infinite;
    margin-top: 30px;
}


/* animations */

.bloc {
    animation: float 2s infinite;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Internet Explorer */
@-ms-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Formulaire */

input {
    padding: 1rem;
    border: 2px solid;
    border-color: white;
    width: 15rem;
    background-color: black;
    margin-top: 8px;
    margin-bottom: 10px;
    color: white;
    font-family: 'VT323', monospace;
    font-size: large;
}

form {
    border: solid 6px;
    border-color: white;
    padding-left: 80px;
    padding-right: 80px;
    padding-bottom: 25px;
    padding-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

label {
    font-size: x-large;
}

#valider {
    color: white;
    cursor: url(img/pointerPacman.png) 16 16, auto;
    font-family: 'VT323', monospace;
    font-size: x-large;
    width: 10rem;

}

#valider:hover {
    background-color: white;
    color: black;
    border-radius: 5px;
}

#desc {
    height: 5rem;
}