/*five_night_at_candy_game1*/
.fangames {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.fangames h1 {
    color: #FF8AFD;
    text-shadow: 0 0 8px #FF8AFD, 0 0 2px;
}

.fangames h2 {
    color: #FFEA00;
    text-shadow: 0 0 8px #FFEA00, 0 0 2px;
    font-size: 24px;
    padding: 20px 40px 20px 40px;
    text-align: center;
    width: 50%;
}

.candy {
    display: flex;
    align-items: center;
    padding: 50px 80px 80px 80px;
}

.candy_title {
    width: 80%;
}

.candy_title h1 {
    transition: opacity 0.1s, filter 0.1s;
    width: 90%;
}

.candy_title p {
    width: 60%;
}

.candy_game {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-image {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    width: 70%;
}

.main-image img {
    width: 100%;
    border: 4px solid #969696;
    border-radius: 10px;
}

.image {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.image img {
    width: 30%;
    border: 4px solid #969696;
    border-radius: 10px;
}

/*popgoes_game2*/
.fangame2 {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
    padding: 50px;
}


.popgoes-game {
    display: flex;
    width: 50%;
    gap: 3%
}

.popgoes-game img {
    margin: 5px;
}

.popgoes1 {
    display: flex;
    width: 31%;
    flex-direction: column;
    justify-content: space-between;
}

.popgoes2 {
    display: flex;
    width: 66%;
    flex-direction: column;
}

.popgoes1 img,
.popgoes2 img {
    border: 4px solid #969696;
    border-radius: 10px;
}

.popgoes_title {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    padding-bottom: 150px;
}

.popgoes_title h1 {
    transition: opacity 0.1s, filter 0.1s;
}

.popgoes_title p {
    width: 90%;
}

/*the joy_game3*/

.fangame3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
}

.joy_title {
    display: flex;
    justify-content: center;
    padding-bottom: 30px;
}

.joy_title h1 {
    transition: opacity 0.1s, filter 0.1s;
}

.joy-game {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    width: 80%;
}

.joy-image {
    width: 90%;
}

.joy-image img {
    width: 100%;
}

.joy_font {
    width: 70%;
}


/*game4*/
.fangame4 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: black;
    padding: 50px;
}

.flumptys_title {
    padding-bottom: 50px;
}

.flumptys_title h1 {
    transition: opacity 0.1s, filter 0.1s;
}

.flumptys {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-bottom: 50px;
    width: 90%;
}

.flumptys img {
    width: 100%;
    border: 4px solid #969696;
    border-radius: 10px;
}

.flumptys_text {
    display: flex;
    justify-content: center;
    width: 90%;
    margin: auto;
    margin-bottom: 200px;
}


.footer_pic {
    display: flex;
    width: 500px;
    margin: -82px
}

.footer_pic img {
    width: 100%;
}

.footer {
    margin-top: 0;
}

@media screen and (max-width: 1375px) {

    .candy {
        padding: 50px 60px 80px 60px;
    }

    .candy_title {
        width: 70%;
    }

    .candy_title h1 {
        width: 70%;
    }

    .candy_title p {
        width: 90%;
    }

    .main-image {
        margin-bottom: 20px;
        width: 70%;
    }

    .main-image img {
        width: 100%;
    }

    .image {
        gap: 10px;
        width: 90%;
    }

    .image img {
        width: 30%;
    }

    /*game2*/
    .popgoes {
        gap: 10px;
        padding: 10px;
    }

    /*game3*/
    .joy_title {
        width: 80%;
    }

    /*game4*/
    .flumptys {
        gap: 20px;
        width: 80%;
    }

    .flumptys img {
        width: 100%;
    }

    .flumptys {
        gap: 20px;
        padding-bottom: 50px;
        width: 100%;
    }

    .flumptys img {
        width: 20%;
    }

    .footer_pic {
        width: 50%;
        margin: -82px;
    }

    .footer_pic img {
        width: 100%;
    }
}

@media screen and (max-width: 1175px) {

    .fangames h2 {
        width: 80%;
    }

    .candy {
        display: flex;
        flex-direction: column;
    }

    .candy_title {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .candy_title h1 {
        display: flex;
        font-size: 50px;
        width: 100%;
        justify-content: center;
    }

    .candy_title p {
        width: 92%;
        padding-bottom: 40px;
    }

    .main-image {
        width: 50%;
    }

    .image {
        gap: 10px;
        width: 70%;
    }

    /*fangame2*/

    .fangame2 {
        display: flex;
        flex-direction: column;
    }

    .popgoes {
        display: flex;
        justify-content: center;
    }

    .popgoes_title {
        width: 91%;
    }

    .popgoes_title h1 {
        display: flex;
        font-size: 50px;
        justify-content: center;
        text-align: center;
    }

    /*fangame3*/

    .fangame3 {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 5%;
    }

    .joy_title {
        padding-bottom: 30px;
    }

    .joy_title h1 {
        display: flex;
        justify-content: center;
        padding-top: 0;
        font-size: 50px;
    }

    .joy-image {
        width: 90%;
    }

    .joy-image img {
        width: 100%;
    }

    .joy_font {
        display: flex;
        justify-content: center;
        width: 90%;
    }

    .joy_font p {
        width: 90%;
    }

    /*fangame4*/

    .flumptys_title {
        display: flex;
        justify-content: center;
    }

    .flumptys_title h1 {
        font-size: 50px;
    }

    .flumptys {
        display: flex;
        flex-wrap: wrap;
        width: 70%;
    }

    .flumptys img {
        width: 45%;
        margin-bottom: 10px;
    }

    .flumptys_text {
        width: 90%;
    }

    .flumptys_text p {
        width: 90%;
    }
}

@media screen and (max-width: 895px) {

    .joy_title h1 {
        font-size: 50px;
    }

    .flumptys_text {
        margin-bottom: 140px;
    }

    .footer_pic {
        margin: -75px;
    }
}

@media screen and (max-width: 768px) {

    .fangames h2 {
        width: 88%;
    }

    .candy {
        padding: 20px 25px 80px 25px;
    }

    .candy_title h1 {
        display: flex;
        justify-content: center;
        text-align: center;
        font-size: 35px;
    }

    .candy_title p {
        width: 90%;
    }

    .image img {
        width: 33%;
    }

    /*fangame2*/
    .popgoes {
        width: 100%;
    }

    .popgoes_title h1 {
        text-align: center;
        font-size: 35px;
    }

    .popgoes-game {
        width: 80%;
    }

    /*fangame3*/

    .joy-game {
        display: flex;
    }

    .joy-image {
        display: flex;
        padding: 20px;
        gap: 25px;
    }

    .joy_title h1 {
        text-align: center;
        font-size: 35px;
    }

    .joy_title p {
        width: 90%;
    }

    /*fangame4*/
    .flumptys {
        width: 75%;
    }

    .flumptys_title h1 {
        text-align: center;
        font-size: 35px;
    }

    .flumptys img {
        width: 45%;
        margin-bottom: 10px;
    }

    .footer_pic {
        margin: -70px;
    }
}

@media screen and (max-width: 414px) {


    .fangames h2 {
        font-size: 13px;
        width: 100%;
    }

    .candy_title h1 {
        font-size: 24px;
    }

    .candy_title p {
        width: 90%;
        line-height: 150%;
    }


    .main-image {
        width: 60%;
    }

    .image {
        width: 80%;
    }

    /*fangame2*/

    .fangame2 {
        display: flex;
        flex-direction: column;
        padding: 30px;
    }

    .popgoes_title h1 {
        font-size: 24px;
    }

    .popgoes_title p {
        width: 100%;
    }

    .popgoes-game {
        justify-content: center;
        width: 100%;
    }

    .popgoes img {
        width: 80%;
    }

    /*fangame3*/
    .fangame3 {
        padding: 2%;
    }

    .joy-game {
        display: flex;
    }

    .joy-image {
        width: 100%;
    }

    .joy_title h1 {
        font-size: 24px;
    }


    .joy_title p {
        width: 90%;
    }

    /*fangame4*/
    .flumptys {
        width: 100%;
        gap: 10px;
    }

    .flumptys_title h1 {
        font-size: 24px;
    }

    .flumptys_text {
        margin-bottom: 100px;
    }

    .flumptys_text p {
        width: 100%;
    }

    .footer_pic {
        margin: -60px;
    }
}