@import url('https://fonts.googleapis.com/css2?family=Baloo+Tammudu+2:wght@400;700&display=swap');
:root {
    --tearColor: #4d8cc9;
    --noseColor: #2e2e2e;
    --faceColor: #59bbff;
    --bambooColor: #8c70a7;
    --articleHeight_m: 70vw;
    --tearColor_a: #4d8bc9bb;
    --noseColor_a: #2e2e2ebb;
    --faceColor_a: #59bbffbb;
    --bambooColor_a: #8c70a7bb;
}

body, * {
    margin: 0;
    padding: 0;
    background-size: auto 100vh;
    font-family: 'Baloo Tammudu 2', cursive;
}

body {
    overflow-x: hidden;
    transition: .5s;
}

header {
    position: relative;
    margin: 0;
    box-sizing: border-box;
    width: 100vw;
    height: 40vh;
    z-index: 20;
    background: linear-gradient(130deg, var(--tearColor) 0%, var(--faceColor) 40%, var(--faceColor) 60%, var(--bambooColor) 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100vw;
    opacity: 0;
    transition: opacity 0.4s;
    background: linear-gradient(130deg, black 0%, var(--noseColor) 40%, var(--noseColor) 60%, var(--bambooColor) 100%);
    z-index: -1;
}

header #startlogo {
    display: none;
    max-height: 50%;
    margin: 0 auto 0 auto;
    padding: 5vh;
    padding-bottom: 1vh;
}

#bloo {
    display: block;
    position: relative;
    width: 200px;
    /* Viewport-width */
    height: 144px;
    max-height: 20vh;
    max-width: 27.78vh;
    /* Viewport-height */
    margin: 0 auto;
    padding: 5vh 0 2vh;
    /* Little margin */
    overflow: hidden;
    z-index: 5;
}

#bloo img {
    height: 100%;
}

#bloo img.nightMode {
    height: 100%;
    animation: closeEyes .5s steps(6) forwards;
    animation-fill-mode: forwards;
}

#bloo.nightMode img.nightMode {
    height: 100%;
    -moz-animation-delay: 2s;
    -webkit-animation-delay: 2s;
    animation-delay: 2s;
    animation: openEyes .5s steps(6) forwards .3s;
    animation-fill-mode: forwards;
}

/* Animation keyframes for the sprite */

@keyframes openEyes {
    from {
        transform: translate(0px, 0);
    }
    to {
        transform: translate(-85.8%, 0);
    }
}

@keyframes closeEyes {
    from {
        transform: translate(-85.7%, 0);
    }
    to {
        transform: translate(0px, 0);
    }
}

header h1 {
    margin: 0 auto;
    font-family: 'Baloo Tammudu 2', cursive;
    font-size: 4vh;
    text-align: center;
}

header h1 a {
    color: white;
    text-decoration: none;
}

header h1 a span {
    color: var(--tearColor);
}

header .links {
    position: absolute;
    bottom: 3vh;
    right: 4vw;
}

header .links a {
    text-decoration: none;
    color: white;
    padding: 0 1.5vw;
}

.chapter_title {
    width: fit-content;
    width: -moz-fit-content;
    height: 3.2rem;
    position: sticky;
    color: white;
    z-index: 0;
}

.chapter_title::before {
    position: absolute;
    content: '';
    left: 0;
    top: -10vw;
    width: 100vw;
    height: 6rem;
    z-index: -1;
    background: linear-gradient(185deg, black 0%, black 30%, var(--noseColor) 40%, var(--noseColor) 100%);
    clip-path: polygon(0 0, 80% 20%, 38% 91%, 0 100%);
}

.chapter_title h2 {
    padding: 0 6rem .5rem 2rem;
    font-size: 1.7rem;
}

section {
    position: relative;
    display: block;
    margin: 20px 0 40px;
    padding: 1rem 0 3rem;
    width: 100vw;
    background: linear-gradient(90deg, var(--tearColor), var(--faceColor), var(--tearColor));
}

section::before {
    content: '';
    position: absolute;
    top: -3px;
    width: 100vw;
    height: 7vw;
    background: white;
    clip-path: polygon(0% 0%, 100% 0%, 100% 25%, 0 100%);
    transition: .5s;
}

section::after {
    position: absolute;
    content: '';
    bottom: -3px;
    right: 0;
    width: 100vw;
    height: 7vw;
    background: white;
    clip-path: polygon(0% 75%, 0% 100%, 100% 100%, 100% 0%);
    transition: .5s;
}

.sec_title {
    position: relative;
    height: fit-content;
    height: -moz-fit-content;
    padding-right: 5vw;
}

.sec_title h2 {
    position: relative;
    text-align: right;
    padding: 1rem .5rem;
    color: white;
}

.content_lock {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: .5s;
    max-height: 1200px;
}

.content_lock::before {
    content: '';
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5vh;
    background: linear-gradient(90deg, var(--tearColor), var(--faceColor), var(--tearColor));
}

.content_lock::after {
    content: '';
    z-index: 4;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5vh;
    background: linear-gradient(90deg, var(--tearColor), var(--faceColor), var(--tearColor));
}

.content_lock.closed {
    overflow: hidden;
    max-height: 10vh;
    padding: 0;
    -webkit-transition: max-height .5s ease-in-out;
    -moz-transition: max-height .5s ease-in-out;
    -ms-transition: max-height .5s ease-in-out;
    -o-transition: max-height .5s ease-in-out;
    transition: max-height .5s ease-in-out;
}

.content_lock.closed .upper_lock .lock_Icon {
    transform: rotate(360deg);
    transition: transform .5s ease-out;
}

.lock_Icon {
    transition: .5s ease-out;
}

.content_lock.closed .lock_paw {
    transform: rotate(-720deg);
    transition: transform .5s ease-out;
}

.upper_lock {
    display: block;
    position: absolute;
    width: 100vw;
    height: 10vh;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.upper_lock .lock_Icon {
    box-sizing: border-box;
    display: flex;
    width: 10vh;
    height: 10vh;
    margin: 0 auto;
    position: relative;
    justify-content: center;
    align-items: center;
    background-color: var(--faceColor);
    border-radius: 50%;
    border-top: 2px solid white;
    border-right: 2px solid white;
    border-bottom: 2px solid var(--tearColor);
    border-left: 2px solid var(--tearColor);
    z-index: 3;
}

.upper_lock .lock_bar {
    width: 100vw;
    height: 1vh;
    position: absolute;
    top: 4vh;
    left: 0;
    z-index: 2;
    background: linear-gradient(90deg, var(--noseColor_a), var(--tearColor), var(--noseColor_a));
}

.upper_lock .lock_Icon .lock_ring {
    position: relative;
    max-height: 9vh;
    max-width: 9vh;
}

.lock_Icon .lock_paw {
    width: 5vh;
    height: 5vh;
    position: absolute;
    top: 2.2vh;
    left: 2.2vh;
    transition: .5s ease-out;
}

.lower_lock {
    display: block;
    position: absolute;
    bottom: 0;
    width: 100vw;
    height: 10vh;
    z-index: 5;
}

.lower_lock .lock_Icon {
    box-sizing: border-box;
    display: flex;
    width: 8vh;
    height: 8vh;
    margin: 1vh auto;
    position: relative;
    justify-content: center;
    align-items: center;
    background-color: var(--faceColor);
    border-radius: 50%;
    border-top: 2px solid white;
    border-right: 2px solid white;
    border-bottom: 2px solid var(--tearColor);
    border-left: 2px solid var(--tearColor);
    z-index: 2;
    color: white;
    font-size: 1.5rem;
    padding-top: .5rem;
}

.lower_lock .lock_bar {
    width: 100vw;
    height: 1vh;
    position: absolute;
    bottom: 4vh;
    left: 0;
    z-index: 2;
    background: linear-gradient(90deg, var(--noseColor_a), var(--tearColor), var(--noseColor_a));
}

.content {
    background-color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10vh 0;
}

article {
    display: block;
    position: relative;
    height: var(--articleHeight_m);
    width: 100vw;
    overflow: hidden;
    margin: 5vh 0;
}

article .title_conainer {
    position: absolute;
    top: 0;
    left: 0;
    width: fit-content;
    width: -moz-fit-content;
}

article .title {
    position: relative;
    width: fit-content;
    width: -moz-fit-content;
    height: 2.5rem;
    z-index: 4;
}

.title::before {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    right: -10vw;
    height: 3rem;
    z-index: -1;
    background-color: white;
    clip-path: polygon(0 0, 100% 0%, 60% 80%, 0 100%);
}

article .title h3 {
    padding: .5rem 2rem;
    color: black;
}

article .tool_container {
    position: absolute;
    bottom: 0;
    right: 0;
    transition: 0.5s;
    width: fit-content;
    width: -moz-fit-content;
    height: 3rem;
    color: black;
    z-index: 4;
}

.tool_container .tools {
    height: 100%;
    position: relative;
    padding: 0 2rem;
    text-align: right;
    font-size: 1.7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tools::before {
    position: absolute;
    content: '';
    bottom: 0;
    right: 0;
    top: -5px;
    left: -10px;
    background-color: white;
    clip-path: polygon(15% 10%, 100% 0%, 100% 100%, 0 100%);
    z-index: -1;
}

.tools i {
    padding: 0 .5rem;
}

.tool_container.showDetails {
    right: -100vw;
    transition: 0.5s;
}

article .preview {
    position: absolute;
    top: 0;
    left: 0;
}

article .preview img {
    position: relative;
    top: 0;
    left: 0;
    width: 150%;
}

article .details {
    display: grid;
    grid-template-columns: 20vw 80vw;
    position: absolute;
    top: 0;
    left: 80vw;
    height: var(--articleHeight_m);
    z-index: 3;
    transition: 0.5s;
}

article .details .arrow {
    /*line-height: var(--articleHeight_m);*/
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    text-align: center;
    transition: .5s;
    position: relative;
    color: white;
}

.arrow::before {
    position: absolute;
    content: '';
    right: -5px;
    top: 0;
    left: 0;
    bottom: 0;
    clip-path: polygon(0 50%, 75% 0, 100% 0%, 100% 100%, 75% 100%);
    transition: .4s;
    background-color: var(--faceColor_a);
    z-index: -1;
}

.arrow.showDetails {
    clip-path: polygon(0 50%, 0% 0, 100% 0%, 100% 100%, 0% 100%);
    transition: .5s;
}

.details .arrow .fa-chevron-left {
    display: initial;
}

.details .arrow .fa-chevron-right {
    display: none;
}

.details.showDetails {
    cursor: pointer;
    transition: 0.5s;
    left: 0;
}

.details .arrow.showDetails .fa-chevron-left {
    display: none;
}

.details .arrow.showDetails .fa-chevron-right {
    display: initial;
}

article .details .description_container {
    display: grid;
    grid-template-rows: 20% 80%;
    overflow: hidden;
    position: relative;
    background-color: var(--faceColor_a);
    transition: .4s;
    border: none;
}

/*article .details .description_container::before {
    position: absolute;
    content: '';
    bottom: 0;
    width: 100%;
    height: 2rem;
    background-image: linear-gradient(transparent, var(--faceColor));
    z-index: 1;
}*/

article .details .description_container .description {
    position: relative;
    padding: 1.5rem .5rem 1.5rem 0;
    width: 95%;
    overflow-y: scroll;
}

/*article .details .description_container .links::before {
    position: absolute;
    content: '';
    bottom: -2rem;
    width: 100%;
    height: 2rem;
    background-image: linear-gradient(var(--faceColor), transparent);
    z-index: 1;
}*/

article .details .description_container .links {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
}

.links a {
    text-decoration: none;
    color: white;
    padding: 1rem 1rem 0;
    font-size: 1.5rem;
    position: relative;
}

footer {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 10vh;
}

footer span {
    display: inline-block;
    position: relative;
    padding-left: 1rem;
    padding-top: 4vh;
    text-align: left;
    font-size: .6rem;
    font-weight: 300;
}

footer span #version {
    display: none;
    position: absolute;
    bottom: 6vh;
    left: 0;
    margin: 0;
    padding: 0;
    padding-left: 1rem;
}

#version li {
    margin-top: .5rem;
    display: block;
    text-align: center;
    list-style-type: none;
    width: 7rem;
    line-height: 2rem;
    font-size: 1rem;
    cursor: pointer;
    padding-top: .5rem;
    border-radius: 2rem;
    border-top: 2px solid var(--faceColor);
    border-right: 2px solid var(--faceColor);
    border-bottom: 2px solid var(--noseColor);
    border-left: 2px solid var(--noseColor);
    background-color: var(--tearColor);
}

#version li a {
    text-decoration: none;
    line-height: rem;
    color: white;
}

footer p {
    display: inline-block;
    text-align: right;
    padding-top: 4vh;
    padding-right: 1rem;
    margin: 0;
    font-size: .6rem;
    font-weight: 300;
}