html {
    scroll-behavior: smooth;
}

body {
    background-image: linear-gradient(to right top, #000000, #0a0a0a, #121212, #181818, #1e1e1e);
    background-repeat: repeat-x;
    color: white;
    margin: 0;
    padding: 0;

    -webkit-animation: fadein 1s;
    /* Safari, Chrome and Opera > 12.1 */
    -moz-animation: fadein 1s;
    /* Firefox < 16 */
    -ms-animation: fadein 1s;
    /* Internet Explorer */
    -o-animation: fadein 1s;
    /* Opera < 12.1 */
    animation: fadein 1s;
}

@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;
    }
}

#hr-header {
    width: auto;
    border: none;
    background-color: #00a66e;
    height: 10px;
    margin: 0;
    padding: 0;
}

#hr-footer {
    width: 75%;
    height: 2px;
    border: none;
    background-color: #00a66e;
    margin-top: 50px;
    margin-bottom: 50px;
}

body hr {
    width: 75%;
    height: 2px;
    border: none;
    background-color: #00a66e;
    margin-top: 50px;
    margin-bottom: 50px;
}



header ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    position: absolute;
    right: 0px;
}

header .menu {
    display: inline-block;
    margin: 0;
    text-align: center;
}

header .menu a {
    /* text-shadow: 1px 0 0 #00a66e, -1px 0 0 #00a66e, 0 1px 0 #00a66e, 0 -1px 0 #00a66e, 1px 1px #00a66e, -1px -1px 0 #00a66e, 1px -1px 0 #00a66e, -1px 1px 0 #00a66e; */
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 20px;
    /* color: #00a66e; */
    color: white;
    display: block;
    padding: 30px 10px;
}

header .menu a:hover {
    color: #00a66e;
    background-color: #181818;
    animation: border-bottom-transition 0.5s;
    border-bottom: 5px solid #00a66e;
}

@keyframes border-bottom-transition {
    from {
        border-bottom: 0px solid #00a66e;
    }

    to {
        border-bottom: 5px solid #00a66e;
    }
}

header .logo {
    position: absolute;
    left: 50px;
    height: 80px;
    padding: 10px 0;
}


header .logo img {
    width: 100%;
    height: 100%;
    transition: all .3s ease-in-out;
}

header .logo img:hover {
    transform: scale(1.1);
}

header .header_background {
    width: max-content;
}

header {
    /* margin-bottom: 100px; */
    height: 700px;
    background-image: url("../images/Screenshot_The_Abyss_1.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}



/* FOOTER */
footer {
    text-align: center;
    margin: auto;
    margin-bottom: 50px;
}

footer a {
    font-size: 20px;
    color: #00a66e;
    font-weight: bold;
    text-decoration: none;
}

footer .logos {
    margin: auto;
    padding-top: 20px;
    width: 300px;
    height: 50px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

footer .logos a {
    width: 75px;
    height: 50px;
}

footer .iconGit {
    background: url("../images/icon_github_green.png") no-repeat center;
}

footer .iconGit:hover {
    background: url("../images/icon_github_filled.png") no-repeat center;
}

footer .iconLinkedin {
    background: url("../images/iconlinkedin.png") no-repeat center;
}

footer .iconLinkedin:hover {
    background: url("../images/iconlinkedin_filled.png") no-repeat center;
}

.retourHaut {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    vertical-align: middle;
    background: black;
    border: #008b5d 3px solid;
    box-shadow: 0 2px 4px 0 black, 0 3px 10px 0 black;
    transition: all .2s ease-in-out;
}

.retourHaut:hover {
    /* background: black;
    border: #00865a 3px solid; */
    transform: scale(1.1);
    box-shadow: none;
    cursor: pointer;
}

.retourHaut img {
    width: 20px;
    height: 20px;
}

h1,
h2 {
    background: linear-gradient(to right, #00A66E 0%, #004b32 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 {
    text-align: center;
    padding: 60px 0;
    font-size: 60px;
    text-transform: uppercase;
    margin: 0;
}

h2 {
    font-size: 40px;
    text-align: center;
}



#realisations_home h2 {
    margin: 0;
    padding: 15px;
}

#realisations_home {
    margin: auto;
    text-align: center;
}

.realisation_home_div {
    /* display: flex;
    flex-direction: row;
    flex-wrap: wrap;*/
    justify-content: center;
    display: grid;
    row-gap: 100px;
    column-gap: 50px;

    margin: 50px 0;
    /* margin: auto; */
}

.realisation_home_div .item1 {
    grid-row: 1;
    grid-column: 1;
}

.realisation_home_div .item2 {
    grid-row: 1;
    grid-column: 2;
}

.realisation_home_div .item3 {
    grid-row: 2;
    grid-column: 2;
}

.realisation_home_div .item4 {
    grid-row: 2;
    grid-column: 1;
}

.realisation_home_div .item5 {
    grid-row: 3;
    grid-column: 1;
}

.realisation_home_div .item6 {
    grid-row: 3;
    grid-column: 2;
}

.realisation_home_div .item7 {
    grid-row: 4;
    grid-column: 2;
}

.realisation_home_div .item8 {
    grid-row: 4;
    grid-column: 1;
}

.realisation_home_div .item9 {
    grid-row: 5;
    grid-column: 1;
}

.realisation_home_div .item10 {
    grid-row: 5;
    grid-column: 2;
}

.realisation_home_div .item11 {
    grid-row: 6;
    grid-column: 2;
}

.realisation_home_div .item12 {
    grid-row: 6;
    grid-column: 1;
}

.realisation_home_div .item13 {
    grid-row: 7;
    grid-column: 1;
}

.realisation_home_div .item14 {
    grid-row: 7;
    grid-column: 2;
}

.realisation_home_div .aimg {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-color: #000000;
    height: 300px;
    width: 380px;
    /* margin: 20px 50px; */
    transition: all .2s ease-in-out;
}

body::after {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    z-index: -1;
    content: url(../images/Masocats_logo.png) url(../images/GamblingHell.png)  url(../images/Memorize.jpg) url(../images/Thumbnail_itch.png) url(../images/KickCurling.png) url(../images/Solopong_Thumbnail.png) url(../images/pfc2.jpg) ;
    content: url(../images/MasocatCover.gif) url(../images/Reflexion_game.gif) url(../images/KickCurling_game.gif) url(../images/SoloPong_gif.gif) url(../images/pfc-gif.webp);
}


.realisation_home_div a.aimg:nth-of-type(1) {
    background-image: url(../images/Masocats_logo.png);
    background-size: cover;
}

.realisation_home_div a.aimg:nth-of-type(1):hover {
    background-image: url(../images/MasocatCover.gif);
} 

.realisation_home_div a.aimg:nth-of-type(2) {
    background-image: url(../images/GamblingHell.png);
    background-size: cover;
}

/* .realisation_home_div a.aimg:nth-of-type(2):hover {
    background-image: url(../images/Memorize.gif);
} */

.realisation_home_div a.aimg:nth-of-type(3) {
    background-image: url(../images/Memorize.jpg);
}


.realisation_home_div a.aimg:nth-of-type(3):hover {
    background-image: url(../images/Memorize.gif);
}

.realisation_home_div a.aimg:nth-of-type(4) {
    background-image: url(../images/Reflexion.png);
}

.realisation_home_div a.aimg:nth-of-type(4):hover {
    background-image: url(../images/Reflexion_game.gif);
}

.realisation_home_div a.aimg:nth-of-type(5) {

    background-image: url(../images/Solopong_Thumbnail.png);
}

.realisation_home_div a.aimg:nth-of-type(5):hover {
    background-image: url(../images/SoloPong_gif.gif);
}

.realisation_home_div a.aimg:nth-of-type(6) {
    background-image: url(../images/pfc2.jpg);
    background-size: cover;
}

.realisation_home_div a.aimg:nth-of-type(6):hover {
    background-image: url(../images/pfc-gif.webp);
}

.realisation_home_div a.aimg:nth-of-type(7) {
    background-image: url(../images/KickCurling.png);
}

.realisation_home_div a.aimg:nth-of-type(7):hover {
    background-image: url(../images/KickCurling_game.gif);
}


.realisation_home_div p {
    /* margin: 50px; */
    width: 400px;
    text-align: left;
}

.realisation_home_div p .titre {
    font-size: 35px;
}

.realisation_home_div p .content {
    font-size: 20px;
    border-left: #00a66e solid 5px;
    padding-left: 10px;
    margin: auto;
}

.voirplus {
    /* width: 300px; */
    /* width: inherit; */
    padding: 0 50px;
    height: 50px;
    font-size: 30px;
    background-color: initial;
    border: 2px solid #00a66e;
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 black, 0 6px 20px 0 black;
    transition: all .1s ease-in-out;
}

.voirplus a {
    color: #00a66e;
    text-decoration: none;
}

.voirplus:hover {
    transform: scale(1.1);
}






/* Page REALISATION */

#realisations {
    text-align: center;
}

#realisations .groupflex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

#realisations .apercu:hover {
    transform: scale(1.1);
}

#realisations .apercu {
    border: 2px black solid;
    width: 500px;
    margin: 20px 50px;
    box-shadow: 0 4px 8px 0 black, 0 6px 20px 0 black;
    padding-bottom: 20px;
    transition: all .2s ease-in-out;
    justify-content: center;
}

#realisations .apercu .titre {
    display: block;
    font-size: 40px;
    padding: 20px 0 0 0;
}

#realisations .apercu .aimg {
    width: inherit;
}

.apercu img {
    width: inherit;
    padding: 0;

}

#realisations .apercu p {
    margin: 20px 15px;
}

#dessins .groupflex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    width: 90%;
    margin: auto;
}

#dessins .apercu {
    display: flex;
    border: 2px black solid;
    text-align: center;
    width: 300px;
    height: fit-content;
    margin: 20px 30px;
    box-shadow: 0 4px 8px 0 black, 0 6px 20px 0 black;
    transition: all .3s ease-in-out;
}

#dessins .apercu:hover {
    transform: scale(1.8);
}






/* START header responsive rules */

@media screen and (max-width: 1200px) {
    #realisations .apercu {
        width: 400px;
    }
}

@media screen and (max-width: 930px) {

    header {
        margin-bottom: 0;
        height: auto;
    }

    header div {
        text-align: center;
    }

    header .logo {
        display: block;
        position: initial;
        height: 150px;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    header .logo img {
        width: inherit;
    }

    header ul {
        position: initial;
    }

    header .menu {
        text-align: center;
        display: block;
        padding: 0;
    }

    header .menu a {
        /* width: 100%; */
        display: block;
        font-size: 20px;
        padding: 15px;
    }


    h1 {
        padding: 30px 0;
        font-size: 8vw;
    }

    h2 {
        font-size: 30px;
        font-size: 5vw;
    }

    .realisation_home_div {
        column-gap: 0;
        row-gap: 0;
    }

    .realisation_home_div .item1 {
        grid-row: 1;
        grid-column: 1;
    }

    .realisation_home_div .item2 {
        grid-row: 2;
        grid-column: 1;
        margin-bottom: 100px;
    }

    .realisation_home_div .item3 {
        grid-row: 3;
        grid-column: 1;
    }

    .realisation_home_div .item4 {
        grid-row: 4;
        grid-column: 1;
        margin-bottom: 100px;
    }

    .realisation_home_div .item5 {
        grid-row: 5;
        grid-column: 1;
    }

    .realisation_home_div .item6 {
        grid-row: 6;
        grid-column: 1;
    }

    .realisation_home_div .item7 {
        grid-row: 7;
        grid-column: 1;
    }

    .realisation_home_div .item8 {
        grid-row: 8;
        grid-column: 1;
    }

    .realisation_home_div .item9 {
        grid-row: 9;
        grid-column: 1;
    }

    .realisation_home_div .item10 {
        grid-row: 10;
        grid-column: 1;
    }

    .realisation_home_div .item11 {
        grid-row: 11;
        grid-column: 1;
    }

    .realisation_home_div .item12 {
        grid-row: 12;
        grid-column: 1;
    }

    .realisation_home_div .item13 {
        grid-row: 13;
        grid-column: 1;
    }

    .realisation_home_div .item14 {
        grid-row: 14;
        grid-column: 1;
    }

}

@media screen and (max-width: 670px) {

    #realisations .apercu:hover,
    #dessins .apercu:hover,
    .voirplus:hover {
        transform: none;
    }

    .realisation_home_div .aimg {
        background-size: cover;
    }

    .realisation_home_div a.aimg:nth-of-type(1):hover {
        background-image: url(../images/Masocats_logo.png);
    }

    .realisation_home_div a.aimg:nth-of-type(2):hover {
        background-image: url(../images/GamblingHell.png);
    }

    .realisation_home_div a.aimg:nth-of-type(3):hover {
        background-image: url(../images/Memorize.jpg);
    }

    .realisation_home_div a.aimg:nth-of-type(4):hover {
        background-image: url(../images/Reflexion.png);
    }

    .realisation_home_div a.aimg:nth-of-type(5):hover {
        background-image: url(../images/SoloPong.jpg);
    }

    .realisation_home_div a.aimg:nth-of-type(6):hover {
        background-image: url(../images/pfc2.jpg);
    }

    .realisation_home_div a.aimg:nth-of-type(7):hover {
        background-image: url(../images/KickCurling.png);
    }

    .voirplus {
        font-size: 20px;
        padding: 5px;
    }

}

@media screen and (max-width: 480px) {

    #realisations .apercu {
        width: 300px;
    }

    h2 {
        font-size: 25px;
    }

    .realisation_home_div .aimg {
        height: 220px;
        width: 280px;
    }

    .realisation_home_div p {
        width: 300px;
        text-align: left;
    }

    .realisation_home_div p .content {
        font-size: 16px;
    }
}

@media screen and (max-width: 390px) {

    header .logo {
        height: 100px;
    }

    section hr {
        margin-top: 25px;
        margin-bottom: 25px;
    }



    #realisations .apercu a {
        font-size: 30px;
    }

    .voirplus {
        font-size: 15px;
        padding: 5px;
    }

    .retourHaut {
        width: 30px;
        height: 30px;
        bottom: 20px;
        right: 20px;
    }

    .retourHaut img {
        width: 10px;
        height: 10px;
    }
}

/* END header responsive rules */