body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #673bb7;
    background-attachment: fixed;
    background-size: 40vw;
    background-image: url("resources/bg.png");
    background-repeat: no-repeat;
    background-position-x: 55vw;
    background-position-y: center;
    overflow: hidden;
    -webkit-transition: background-position-x 1s; 
    transition: background-position-x 1s;
}

body.down {
    background-position-x: 200vw;
}


body.up {
    background-position-x: 55vw;
}

input:focus, textarea:focus, select:focus {
    outline: none;
}

a {
    text-decoration: none;
    cursor: pointer;
}

bold {
    font-weight: bold;
}

#content {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* MAIN */

#main {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    -webkit-transition: -webkit-top 1s; 
    transition: top 1s; 
}

.pictures {
    position: absolute;
    top: 15%;
    left: 52.5%;
    right: 10%;
    bottom: 15%;
    width: 37.5%;
    height: 70%;
}

.idea {
    position: absolute;
    top: 15%;
    left: 10%;
    right: 0;
    bottom: 15%;
    width: 37.5%;
    height: 70%;
}

.logo {
    max-width: 100%;
    max-height: 5vw;
}

.click-down {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    bottom: 5;
    -webkit-transition: bottom 0.25s;
    transition: bottom 0.25s;
}

.click-down:hover {
    bottom: 0;
}

.chevron-down {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 2.5vw;
}

.text {
    margin: 5;
    text-align: center;
    font-family: 'Raleway';
    font-weight: 900;
    font-size: 1.5vw;
    color: #ffffff;
}

.subtitle {
    margin-top: 7vh;
    font-family: 'Open Sans';
    font-weight: 300;
    font-size: 1.5vw;
    text-align: justify;
    color: #ffffff;
}

.first-screen-title {
    position: absolute;
    top: 0;
    left: 12.5vw;
    right: 0;
    bottom: 0;
    width: 40vw;
}

.child-first {
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
}

.progressbar {
    background: #502998;
    width: 50%;
    height: 1.5vw;
    margin: 0;
}

#progress {
    background: #ec4086;
    width: 100%;
    height: 100%;
}

.text-progress {
    margin-left: 1vw;
    font-family: 'Open Sans';
    font-weight: 300;
    font-size: 1.5vw;
    color: #ffffff;
}

.div-progress {
    margin-top: 7vh;
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
}

/* PROJECTS */

#projects {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    -webkit-transition: -webkit-top 1s; 
    transition: top 1s; 
}

.all-screen-title {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.click-up {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    top: 5;
    -webkit-transition: top 0.25s;
    transition: top 0.25s;
}

.click-up:hover {
    top: 0;
}

.chevron-up {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 2.5vw;
}

.back-button {
    height: 2vw;
    position: absolute;
    top: 2vw;
    left: 2vw;
    -webkit-transition: -webkit-transform 1s; 
    transition: transform 1s; 
}

.back-button:hover {
    -webkit-transform: rotate(360deg); 
    transform: rotate(360deg); 
}

#scroll-pictures, #scroll-idea {
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100%;
}

.div-pictures {
    display: block;
    max-height: 100%;
}

.div-idea {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    max-height: 100%;
}

.text-idea {
    font-family: 'Open Sans';
    font-weight: 300;
    font-size: 1.5vw;
    color: #ffffff;
    text-align: right;
}

.another-div {
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    max-height: 100%;
}

.back-button {
    height: 2vw;
    position: absolute;
    top: 2vw;
    left: 2vw;
    -webkit-transition: -webkit-transform 1s; 
    transition: transform 1s; 
}

.back-button:hover {
    -webkit-transform: rotate(360deg); 
    transform: rotate(360deg); 
}

.imgs {
    width: calc(50% - 4px);
    height: calc(50% - 4px);
    object-fit: cover;
    margin-top: 2px;
    cursor: pointer;
    transition: 0.25s;
}

.imgs:hover {
    opacity: 0.5;
}

/* The Modal (background) */
.modal {
    display: none; 
    position: absolute; 
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
}

.close {
    user-select: none;
   -webkit-user-select: none;
   -khtml-user-select: none;
   -moz-user-select: none;
   -ms-user-select: none;
    position: absolute;
    top: 2vw;
    right: 2vw;
    color: #cacaca;
    font-size: 3vw;
    font-weight: bold;
}

.close:hover,
.close:focus {
  color: rgba(255, 255, 255);
  text-decoration: none;
  cursor: pointer;
}


@media only screen and (orientation: portrait) {

    body {
        background-size: 60vw;
        background-position-x: left;
        background-position-y: top;
    }

    body.up {
        background-position-x: left;
    }

    body.down {
        background-position-x: 100vw;
    }

    .child-first {
        margin: 0;
        position: absolute;
        top: 50vw;
        transform: none;
        -webkit-transform: none;
        -ms-transform: none;
    }

    .text-progress {
        margin-top: 0.5vh;
        margin-left: 0;
        font-size: 2.5vh;
    }

    .progressbar {
        width: 100%;
        height: 2.5vh;
    }    

    .div-progress {
        flex-direction: column;
        align-items: flex-start;
    }

    .pictures {
        position: absolute;
        top: 55%;
        left: 10%;
        right: 10%;
        bottom: 10%;
        width: 80%;
        height: 35%;
    }
    
    .idea {
        position: absolute;
        top: 10%;
        left: 10%;
        right: 10%;
        bottom: 55%;
        width: 80%;
        height: 35%;
    }
    
    .logo {
        width: 60vw;
        max-height: 10vh;
    }

    .first-screen-title {
        position: absolute;
        top: 0;
        left: 12.5vw;
        bottom: 0;
        width: 75vw;
    }

    .chevron-down, .chevron-up {
        width: 5vh;
    }
    
    .text {
        font-size: 2.5vh;
    } 
    .text-idea, .subtitle {
        font-size: 2.5vh;
        text-align: justify;
    }
    
    .click-down, .click-up {
        position: absolute;
        left: 30vw;
        right: 30vw;
    }

    .title {
        font-size: 12vw;
        -webkit-text-stroke-width: 0.1vh; 
    }

    .back-button {
        height: 3vh;
        top: 3vh;
        left: 3vh;
    }

    .close {
        user-select: none;
       -webkit-user-select: none;
       -khtml-user-select: none;
       -moz-user-select: none;
       -ms-user-select: none;
        position: absolute;
        top: 4vh;
        right: 4vh;
        color: #cacaca;
        font-size: 5vh;
        font-weight: bold;
    }
}