@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;
}

body {
    margin: 0;
    padding: 0;
    background-size:100vw auto;
}

header {
    position: relative;
    margin: 0;
    box-sizing: border-box;
    background-image: url(../assets/bamboo-919052_1920.webp);
    background-position: 100% 10%;
    background-size: 120%;
    width: 100%;
    height: 30vh;
    z-index: 5;
}

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

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

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

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

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

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

header .links a:hover {
    color: var(--faceColor);
}

.content {
    height: 60vh;
    display: block;
    padding: 0 3vw;
    overflow: hidden;
}

.content h2 {
    font-size: 3vh;
    margin: 3vh 0;
}

.content section {
    margin: 0;
    padding: 5vh 0;
    max-height: 50vh;
    width: 100%;
    overflow: auto;
    overflow-y: hidden;
    white-space: nowrap;
    display: block;
}

article {
    background-color: transparent;
    perspective: 1000px;
    margin: 0 2vw;
    display: inline-block;
    padding: 0;
    text-decoration: none;
    width: 40vh;
    min-width: 250px;
    height: 40vh;
    min-height: 250px;
    position: relative;
}

.flip-card-inner {
    margin: 0;
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    word-wrap: break-word;
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.flip-card-front h3 {
    display: block;
    margin: 0;
    padding: 2vh;
    font-size: 2.5vh;
    height: 4vh;
    line-height: 4vh;
}

.flip-card-front .preview {
    display: block;
    min-height: 140px;
    height: 25vh;
    padding: 0;
}

.preview img {
    width: 100%;
}

.flip-card-front .tec {
    position: relative;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0;
    padding: 2vh;
    font-size: 2.5vh;
    height: 3vh;
}

.flip-card-front a {
    text-decoration: none;
    margin: 0;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.flip-card-back p {
    white-space: normal;
    display: block;
    text-align: left;
    height: 25vh;
    min-height: 150px;
    font-size: 2vh;
    line-height: 4vh;
    margin: 0;
    padding: 5vh;
    padding-bottom: 0;
    word-wrap: normal;
}

.flip-card-back .source {
    height: 10vh;
    display: flex;
    justify-content: space-around;
    margin: 0;
    padding: 0;
}

.flip-card-back .source a {
    text-decoration: none;
    position: relative;
    margin: 2.5vh;
    width: 5vh;
    height: 5vh;
    font-size: 3vh;
    text-align: center;
    line-height: 5vh;
}

.flip-card-back .source a:hover {
    font-size: 4vh;
    text-decoration: none;
    padding: 0;
}

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;
}
footer p {
    display: inline-block;
    text-align: right;
    padding-top: 4vh;
    padding-right: 1rem;
    margin: 0;
    font-size: .6rem;
    font-weight: 300;
}

@media only screen and (min-width: 1000px) {
    article:hover .flip-card-inner {
        transform: rotateY(180deg);
    }
}

@media only screen and (max-width: 1000px) {
    .flip-card-back p {
        padding-bottom: 0;
    }
    article:hover .flip-card-inner {
        transform: rotateY(180deg);
    }
}