@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: 17vw;
    --tearColor_a: #4d8bc9bb;
    --noseColor_a: #2e2e2ebb;
    --faceColor_a: #59bbffbb;
    --bambooColor_a: #8c70a7bb;
}

body, * {
    margin: 0;
    padding: 0;
    background-size: auto 100vh;
}

h2, h3, p{
    font-family: 'Baloo Tammudu 2', cursive;
}

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

header {
    position: relative;
    margin: 0;
    box-sizing: border-box;
    width: 100vw;
    height: 25vw;
    z-index: 5;
    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%;
    min-height: 10vw;
    margin: 0 auto 0 auto;
    padding: 5vh;
    padding-bottom: 1vh;
}

#bloo {
    display: block;
    position: relative;
    width: 200px;
    /* Viewport-width */
    height: 144px;
    /* Viewport-height */
    margin: 0 auto;
    padding: 2em 0;
    /* 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.7%, 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: 2.5vw;
    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;
    font-size: 2em;
}

.chapter_title {
    width: fit-content;
    width: -moz-fit-content;
    height: 3.2rem;
    position: relative;
    color: white;
    z-index: 0;
    padding-bottom: 3vw;
}
.chapter_title::before {
    position: absolute;
    content: '';
    left: 0;
    top: -7vw;
    width: 100vw;
    height: 15vw;
    z-index: -1;
    background: linear-gradient(181deg, black 0%, black 55%, var(--noseColor) 65%, var(--noseColor) 100%);
    clip-path: polygon(0 0, 80% 20%, 38% 91%, 0 100%);
}
.chapter_title h2 {
    padding: 0 6rem .5rem 2rem;
    font-size: 2.2vw;
}

section {
    position: relative;
    display: block;
    margin: 0 0 40px;
    padding: 7vw 0;
    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%);
}
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%);
}

.sec_title {
    position: relative;
    height: fit-content;
    height: -moz-fit-content;
    padding-right: 5vw;
}
.sec_title h2 {
    position: relative;
    text-align: right;
    padding: 1vw .5rem 0;
    color: white;
    font-size: 2vw;
}

.content_lock {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: .5s;
    max-height: 50vw;
}
.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 {
    cursor: pointer;
    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 {
    cursor: pointer;
    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: row;
    justify-content: space-around;
    padding: 10vh 0 5vh;
}

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

article .title_container {
    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: fit-content;
    height: -moz-fit-content;
    z-index: 4;
}
.title::before {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    right: -5vw;
    height: 3vw;
    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;
    font-size: 1.3vw;
}

article .tool_container {
    position: absolute;
    bottom: 0;
    right: 0;
    transition: 0.5s;
    width: fit-content;
    width: -moz-fit-content;
    height: 2vw;
    color: black;
    z-index: 4;
}
.tool_container .tools {
    height: 100%;
    position: relative;
    padding: 0 2rem;
    text-align: right;
    font-size: 1.5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tools::before {
    position: absolute;
    content: '';
    bottom: -2px;
    right: -2px;
    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: 110%;
}

article .details {
    display: grid;
    grid-template-columns: 20% 80%;
    position: absolute;
    top: 0;
    left: 25vw;
    width: 30vw;
    height: var(--articleHeight);
    z-index: 3;

    -webkit-transition: .5s ease-in-out; 
    -moz-transition: .5s ease-in-out; 
    -ms-transition: .5s ease-in-out; 
    -o-transition: .5s ease-in-out; 
    transition: .5s ease-in-out;
}

article .details .arrow {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2vw;
    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%);
    background-color: var(--faceColor_a);
    z-index: -1;
}
.arrow.showDetails {
    clip-path: polygon(0 50%, 0% 0, 100% 0%, 100% 100%, 0% 100%);
    transition: .4s;
    cursor: pointer;
}

.details .arrow .fa-chevron-left {
    display: initial;
}
.details .arrow .fa-chevron-right {
    display: none;
}
.details.showDetails {
    transition: 0.4s;
    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);
    border: none;
}

article .details .description_container .description {
    position: relative;
    padding: 1.5rem .5rem 1.5rem 0;
    font-size: 1vw;
    width: 95%;
    overflow-y: hidden;
}

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

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

footer {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 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: .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;
    color: white;
}

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