* {
    box-sizing: border-box;
    font-family: sans-serif;
    margin: 0;
}

body {
    background-color: rgba(209, 185, 149, 1);
}

.mtop {
    margin-top: 30px;
}

.centered {
    text-align: center;
}

#animcontent {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    
    z-index: 10;
    overflow: hidden;
}

#green {
    height: 42%;
    width: 100%;
    background: rgba(63, 109, 84, 1);
    align-self: flex-end;
    display: flex;
    flex-direction: row;
    overflow: visible;
    justify-content: space-between;
    z-index: 2;
    
    position: relative;
}

#lighthouse {
    height: 58%;
    width: 100%;
    /* background: pink; */
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    
    opacity: 0;
}

#sun {
    height: 320px;
    width: 320px;
    background: rgba(232, 207, 146, 1);
    border-radius: 50%;
    z-index: 20;
    align-self: flex-start;
    margin: 0 auto;
    margin-top: 3%;
    display: flex;
}

#addon-left {
    height: 90%;
    width: 30vw;
    background: url("../images/addon-left.png");
    background-size: contain;
    background-repeat: no-repeat;
    align-self: flex-end;
    background-position: bottom left;
    z-index: 4;
}

#addon-right {
    height: 90%;
    width: 30vw;
    background: url("../images/addon-right.png");
    background-size: contain;
    background-repeat: no-repeat;
    align-self: flex-end;
    background-position: bottom right;
    z-index: 4;
}

#iceberg-bottom {
    width: 63%;
    height: 58vh;
    position: absolute;
    bottom: 0;
    left: 19%;
    background-color: rgba(44, 126, 138, 1);
    border-top-left-radius: 36%;
    border-top-right-radius: 41%;
    
    overflow: hidden;
    
    opacity: 0;
}

#iceberg-logo {
    width: 63%;
    height: 42vh;
    position: absolute;
    top: -88%;
    left: 19%;
    /* background-color: red; */
    align-self: flex-start;
    display: flex;
    align-items: flex-end;
    
    opacity: 0;
}

#iceberg-top {
    width: 100%;
    height: 42%;
    position: absolute;
    top: 0;
    background-color: rgba(80, 158, 168, 1);
    z-index: 30;
    border-top-left-radius: 36%;
    border-top-right-radius: 41%;
    border-bottom-left-radius: 42%;
    border-bottom-right-radius: 50%;
    
    opacity: 0;
}

#iceberg-text {
    width: 100%;
    height: 100%;
    position: static;
    margin: 0 auto;
    background: url("../images/iceberg-text.png") no-repeat;
    background-position: center center;
    background-size: contain;
    z-index: 30;
}

#logo {
    z-index: 100;
    background: url("../images/logo.png") no-repeat;
    background-size: contain;
    background-position: bottom center;
    height: 50%;
    width: 20%;
    align-self: flex-start;
    margin: 0 auto;
    display: flex;
}

#iceberg-next {
    width: 100%;
    height: 50%;
    position: absolute;
    bottom: 0;
   /* background-color: red; */
    z-index: 30;
    
    opacity: 0;
}

#iceberg-next a {
    text-decoration: none;
    color: white;
    font-family: 'Barlow', sans-serif;
    font-size: 1.3em;
    text-shadow: 0px 2px darkgray;
    
    position: static;
    display: block;
    margin: 0 auto;
    text-align: center;
}

#iceberg-next a p {
    margin: 0 auto;
    text-align: center;
}

#iceberg-next a span {
    position: static;
    margin: 0 auto;
    margin-top: 30px;
    margin-bottom: 15px;
    display: block;

    width: 24px;
    height: 24px;
    
    border-left: 1px solid #fff;
    border-bottom: 1px solid #fff;
    transform: rotate(-45deg);
    
    animation-name: scrollableloop;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-out;
}

/* -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_- BELOW -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_- */

#maincontent {
    padding: 20px;
    background-color: azure;
    z-index: 100;
}

h1, h2, h3 {
    font-family: 'Shadows Into Light', cursive;
    font-size: 2em;
    line-height: 1.4em;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.4rem;
    display: inline-block;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.4rem;
}

p {
    font-family: 'Barlow', sans-serif;
    font-size: 1em;
    margin-bottom: 15px;
}

#maincontent ul {
    list-style-type: none;
    margin-left: 5px;
    padding-left: 0;
    margin-bottom: 10px;
}

.hello {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
}

.hello-text {
    width: 80%;
}

.limited {
    max-width: 450px;
}

#hello-text-image {
    text-align: center;
}

#hello-logo {
    width: 25%;
    background: url("../images/iys-logo.png") no-repeat;
    background-size: contain;
    background-position: center center;
    height: auto;
}

#hello-image {
    width: 100%;
    background: url("../images/iys-bos.jpg") no-repeat;
    background-size: cover;
    background-position: center left;
    height: 300px;
    align-self: center;
}

#versions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: nowrap;
}

.download {
    float: right;
    width: 15%;
    height: 100px;
    margin-right: 5%;
}

.version-description {
    float: left;
    width: 70%;
    margin-left: 5%;
    margin-right: 5%;
}

.version {
    height: auto;
    margin: 10px auto;
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 20px 0;
    background-color: aliceblue;
    width: 100%;
    box-shadow: 2px 7px 20px 0px lightgray;
    
    transition-duration: .4s;
}

.version:hover {
    border: 2px solid dodgerblue;
}

#ver-dl-pdf {
    background: url("../images/pdf.png") no-repeat;
    background-size: contain;
    background-position: center center;
}

#ver-dl-epub {
    background: url("../images/epub.png") no-repeat;
    background-size: contain;
    background-position: center center;
}

#ver-dl-web {
    background: url("../images/web.png") no-repeat;
    background-size: contain;
    background-position: center center;
}

#versions ul {
    margin-top: 20px;
}

#versions li {
    margin-bottom: 15px;
}

footer, .infowide {
    margin-top: 20px;
    background-color: aliceblue;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 2px 7px 20px 0px lightgray;
}

.infowide {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    margin-top: 30px;
}

#iframecontainer {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.infowide iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#creators-logos {
    width: 90%;
    margin: 0 auto;

    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}

#creators-logos img {
    max-width: 100%;
    height: auto;
}

#ablogo {
    width: 20px;
    height: 20px;
    margin-left: 5px;
}

#wdb {
    margin-bottom: 50px;
}

#formselection {
    margin: 0 auto;
    text-align: center;
    max-width: 100%;
}

#formselection input, #formselection select {
    font-family: 'Barlow', sans-serif;
    font-size: 1em;
}

#formselection input {
    width: 50px;
}

#formselection select {
    width: 70%;
    margin-bottom: 20px;
}

/* -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_- RWD -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_- */

@media screen and (min-width: 600px) {
    #versions {
        flex-direction: row;
        width: 100%;
        justify-content: flex-end;
        align-items: flex-end;
    }
    
    .version {
        width: 27%;
    }
    
    .download, .version-description {
        float: none;
    }
    
    .version-description {
        width: 90%;
    }
    
    .download {
        margin: 0 auto;
        width: 30%;
    }
    
    #hello {
        margin-bottom: 20px;
    }
    
    #creators-logos {
        flex-wrap: wrap;
        align-items: center;
    }

    .creators-logo {
        max-width: 180px;
    }
}

@media screen and (min-width: 900px) {
    #wdb {
        margin-bottom: 0px;
    }
}

@media screen and (min-width: 1100px) {
    
    p {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.8rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
}

/* -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_- ANIMATIONS -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_- */

.addons {
    animation-name: fly-from-bottom;
    animation-duration: 0.6s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}

#iceberg-bottom {
    animation-name: fly-from-bottom;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
    animation-delay: 0.6s;
}

#iceberg-top {
    animation-name: fly-from-top;
    animation-duration: 0.4s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
    animation-delay: 1.1s;
}

#lighthouse {
    animation-name: fadein;
    animation-duration: 1.5s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
    animation-delay: 1.4s;
}

#iceberg-logo {
    animation-name: fadein;
    animation-duration: 1.5s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
    animation-delay: 2.6s;
}

#iceberg-next {
    animation-name: fadein-scale;
    animation-duration: 1.5s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
    animation-delay: 3.1s;
}

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

@keyframes fadein-scale {
    from {opacity: 0; transform: scale(0);}
    to {opacity: 1; transform: scale(1);}
}

@keyframes scrollableloop {
    from {transform: translateY(0) rotate(-45deg);}
    to {transform: translateY(-20px) rotate(-45deg);}

}

@keyframes fly-from-bottom {
    0% {
        transform: translateY(300px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fly-from-top {
    0% {
        transform: translateY(-200px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
