/* Animations */

@keyframes arrowDownAnim {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ----- Main Content ----- */

body,
html {
    background: var(--body-bg);
    color: var(--body-color);
    margin: 0;
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
    font-family: Arial, Helvetica, sans-serif;
}

/* Titles & text */

h1 {
    transition: all 1s;
    margin: 0;
    font-size: 500%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

h1:hover {
    font-size: 550%;
}

h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    text-align: center;
}

h3 {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

h4 {
    margin: 0;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.postscriptum {
    font-style: italic;
}

.underlined {
    text-decoration: underline;
}


.titlePage {
    width: 50%;
}

@media all and (max-width : 500px) {
    .titlePage {
        width: 240px;
    }
}

/* Arrow Button */
.scrollDownArrow {
    animation: arrowDownAnim 1s ease-out 10;
    transition: all 0.5s;
    margin: auto;
}

.scrollDownArrow:hover {
    transform: translateY(3px);
}

/* Big Button */

.bigButton {
    border-radius: 20px;
    background-color: var(--button-bg);
    color: var(--body-color);
    padding: 10px;
    transition: all 0.2s;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.bigButton:hover {
    background-color: var(--button-bg-hover);
}

.bigButtonArrow {
    transition: all 0.2s;
}

.bigButton:hover>.bigButtonArrow {
    transform: translateX(3px);
}

.bigButtonText {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 30px;
    padding-top: 5px;
}

/* ----- Window sized backgrounds ----- */

.windowSized {
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.blockPage {
    background-color: var(--block-bg);
    border-radius: 10px;
    padding: 10px;
}

/* Welcome */

#welcome {
    background-color: var(--body-bg);
    background-image: url("../images/background1.jpg");
    background-size: cover;
    background-position: center;
}

#welcomeBlock {
    width: 69%;
    height: 50%;
    position: relative;
    top: 25%;
}

#welcomeCenter {
    position: relative;
    width: 69%;
    height: 50%;
    margin: auto;
    top: 25%;
    text-align: center;
}

/* Discord */

#discordBot {
    background-color: var(--body-bg);
    background-image: url("../images/chaline.jpg");
    background-size: cover;
    background-position: center;
}

#InfosBot {
    width: 40%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
}

#descriptionBot {
    height: auto;
}

#installConfig {
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    width: 40%;
    height: 100%;
}

#installBot {
    height: auto;
}

#configBot {
    height: auto;
}

.configChalineText {
    max-height: 300px;
    overflow: auto;
    display: block;
}


@media all and (max-height : 780px) {
    .configChalineText {
        max-height: 150px;
    }
}

@media all and (max-height : 620px) {
    .configChalineText {
        display: none;
    }
}

/* Chaline Project */

#chalineProject {
    background-color: var(--body-bg);
    background-image: url("../images/project.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-content: space-around;
}

#projectDescription {
    width: 90%;
}

.subtitle {
    color: var(--subtitle);
}

#projectZone {
    display: flex;
    flex-direction: column;
    align-content: space-around;
}

.descriptionZones {
    display: flex;
    justify-content: space-around;
    width: 90%;
    height: 50%;
    margin: auto;
    transition: all 0.5s;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    margin-top: 7px;
    margin-bottom: 7px;
}

.descriptionZones:hover {
    width: 91%;
}

.textDescriptionZone {
    width: 50%;
    display: block;
    max-height: 90%;
    overflow: auto;
    text-align: left;
}

.textDescriptionZone h4 {
    text-align: left;
}

@media all and (max-height : 500px) {
    .textDescriptionZone {
        max-height: 150px;
    }
}

@media all and (max-height : 400px) {
    .textDescriptionZone {
        max-height: 75px;
    }
}

.linkZone {
    color: var(--body-color);
    font-weight: 700;
    text-decoration: none;
}

.linkZone:hover {
    text-decoration: underline;
}

#imgZoneOne {
    width: 30%;
    height: auto;
    background-size: cover;
    background-position: center;
    display: block;
    transition: all 0.5s;
}

#imgOneProject {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

#imgZoneTwo {
    width: 20%;
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: space-around;
    align-items: center;
    transition: all 0.2s;
}

.imgsZoneLogo {
    width: 60px;
    height: 60px;
}

/* Other Projects */

#otherProjects {
    background-color: var(--body-bg);
    background-image: url("../images/otherbg.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-content: space-around;
    justify-content: space-around;
    align-items: center;
}


#listOtherProjects {
    height: 80%;
    width: 90%;
    overflow: auto;
    overflow-x: hidden;
    border-radius: 10px;
    /* IE and Edge */
    -ms-overflow-style: none;
    /* Firefox */
    scrollbar-width: none;
}

#listOtherProjects::-webkit-scrollbar {
    /* Chromium */
    display: none;
}

.otherProjectItem {
    transition: all 0.5s;
    width: 95%;
    height: 300px;
    margin: auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
    text-decoration: none;
}

.otherProjectItem:hover {
    width: 97%;
}

.otherProjectItem a {
    width: 40%;
    text-decoration: none;
}

.otherImageItem {
    width: 100%;
    height: 280px;
    background-color: var(--otherblenditem);
    background-blend-mode: hue;
    background-size: cover;
    background-position: center;
    transition: all 0.5s;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    border-radius: 10px;
}

#sc3dBlock .otherImageItem {
    opacity: 1;
    background-image: url("../projectsimages/sc3d.jpg");
}

#sc3dBlock:hover .otherImageItem {
    background-image: url("../projectsimages/sc3dhover.jpg");
}

#taxiBlock .otherImageItem {
    background-image: url("../projectsimages/taxi.jpg");
}

#taxiBlock:hover .otherImageItem {
    background-image: url("../projectsimages/taxihover.jpg");
}

#pixedelicBlock .otherImageItem {
    background-image: url("../projectsimages/pixedelic.jpg");
}

#pixedelicBlock:hover .otherImageItem {
    background-image: url("../projectsimages/pixedelichover.gif");
}


.otherImageItem h2 {
    color: var(--body-color);
    text-decoration: none;
    transition: all 0.5s;
}

.otherImageItem:hover h2 {
    transform: scale(120%);
}

.otherImageItem:hover {
    background-color: var(--otherblenditemhover);

}


.otherDescriptionItem {
    width: 50%;
    display: block;

}

.otherDescriptionItem p {
    max-height: 200px;
    overflow: auto;
}


@media all and (max-width : 550px) {
    .otherDescriptionItem {
        display: none;
    }

    .otherProjectItem a {
        width: 90%;
    }
}



/* Contact */

#contact {
    background-color: var(--body-bg);
    background-image: url("../images/contacbg.jpg");
    background-size: cover;
    background-position: center;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

#titleContact {
    height: 28px;
}

#listContact {
    width: 80%;
    height: 500px;
    list-style-type: none;
    margin: auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    overflow-y: auto;
    /* IE and Edge */
    -ms-overflow-style: none;
    /* Firefox */
    scrollbar-width: none;
}

#listContact::-webkit-scrollbar {
    /* Chromium */
    display: none;
}

@media all and (max-width : 1260px) {
    #listContact {
        width: auto;
        display: block;
        height: 80%;
    }
}


#listContact li {
    background-color: var(--contactbg);
    width: 300px;
    height: 450px;
    border-radius: 20px;
    padding: 10px;
    text-align: center;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    flex-direction: column;
    border: var(--body-color) 2px solid;
}

#listContact li a {
    width: 280px;
    height: 280px;
    transition: all 0.5s;
    background-color: var(--contactlinkbg);
    border-radius: 150px;
    margin: auto;
    margin-top: 10px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
}

#listContact li:hover a {
    background-color: var(--contactlinkbghover);
    border-radius: 75px;
}

#listContact li a img {
    width: 250px;
    height: 250px;
    transition: all 0.5;
}

#listContact li hr {
    background-color: var(--body-color);
    height: 1px;
    width: 40%;
}

/* Pop up About */

.popupWin {

    width: 100vw;
    height: 100vh;
    position: fixed;
    bottom: 0;
    right: 0;
    background-color: var(--block-bg);
    z-index: 666;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.popupBlock {
    position: relative;
    bottom: -100vw;
    background-color: var(--block-bg);
    transition: all 0.3s ease-in-out;
    width: 70%;
    height: 70%;
}

.popupBlock article {
    max-height: 100%;
    overflow: auto;
    overflow-x: hidden;
}

.popupWin:target {
    visibility: visible;
    opacity: 1;
}

.popupWin:target .popupBlock {
    bottom: 0;
    right: 0;
    /*transform: translateX();*/
}

.closePopup {
    position: absolute;
    text-decoration: none;
    font-size: 20px;
    line-height: 20px;
    font-weight: 300;
    border-radius: 100%;
    background-color: var(--body-color);
    z-index: 690;
    color: var(--body-bg);
    text-align: center;
    right: -1rem;
    top: -1rem;
    width: 20px;
    height: 20px;
}