/** =================== BODY =================== **/

body {
    background-size: cover;
    font-family: 'DM Sans', sans-serif;
    font-size: .8em;
    color: #222;
    margin: 0;
    opacity: 0;
    background-color: rgb(11, 0, 51);
    overflow: hidden;
    animation: fadeInAnimation ease 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-delay: 300ms;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

#animation_container,
#_preload_div_ {
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

#_preload_div_ {
    z-index: 10000;
}

#animation_container {
    border-left: 4px solid #000;
    border-right: 4px solid #000;
}

a {
    color: #333;
}

a:hover {
    color: #000;
}

/** =================== HEADER =================== **/

#header {
    position: fixed;
    width: 100%;
    height: 2em;
    background-color: rgba(1, 1, 1, .50);
    display: flex;
    z-index: 1000;
    vertical-align: middle;
}

#header a {
    text-decoration: none;
}

.logo {
    max-height: 2em;
    margin-left: 2em;
}

.site-title {
    color: #FFF;
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 1.5em;
    margin-left: 1em;
}

.header-title {
    line-height: 2em;
}

.site-menu {
    margin-top: .5em;
}

.site-menu li {
    display: inline;
    text-align: center;
    margin: 0;
}

li+li::before {
    content: " | ";
    color: rgb(77, 77, 77);
    padding-left: .3em;
    padding-right: .3em;
}

.site-menu a {
    color: rgb(173, 173, 173);
    text-decoration: none;
}

.site-menu a:hover {
    color: #FFF;
}

h1 {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 1.6rem;
    line-height: 1.6rem;
    margin-top: 0;
}

h2 {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 1.5em;
    line-height: 1.5rem;
}

.avis {
    font-size: 1em;
}

/** =================== StartPage =================== **/

.startpage-logo {
    margin-top: 2em;
    margin-bottom: -40px;
}

.button {
    border-radius: 28px;
    border: 1px solid #18ab29;
    display: inline-block;
    cursor: pointer;
    color: #ffffff;
    font-family: Arial;
    font-size: 14px;
    padding: 10px 10px;
    text-decoration: none;
    text-shadow: 0px 1px 0px #2f6627;
    margin-top: 10px
}

.green {
    background-color: #44c767;
}

.red {
    background-color: #d0451b;
}

.button:hover {
    background-color: #3d89e0;
}

.button:active {
    position: relative;
    top: 1px;
}

/** =================== Struct =================== **/

.desc-container {
    background-image: url("images/buildings/CDPL-Content-BG.png");
    background-size: cover;
    padding: 2em;
    padding-top: 3rem;
    color: #000;
}

#planet-pwd {
    display: none;
    opacity: 0;
    z-index: 1001;
}

input {
    font-size: 20px;
    margin-top: 5px;
}

button {
    font-size: 20px;
    background-color: white;
}

#planet-pwd-wrong {
    font-weight: bold;
    color: #4b110094;
}

#planets-slider {
    z-index: 1000;
    height: 40%;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: -38%;
    bottom: 0;
    opacity: 0;

    transition-property: opacity;
    transition-duration: 300ms;
}

#slider {
    position: relative;
    width: 40%;
    margin: auto;
    display: flex;
    align-items: center;
}

#slider img {
    min-height: 100%;
    min-width: 100%;
}

.btn_close {
    position: relative;
    right: 0;
    bottom: -2em;
    margin-top: -5em;
    text-align: right;
    margin-bottom: 2em;
}

.btn_close img {
    width: 30px;
    cursor: pointer;
}

/** =================== Krakoul Desc =================== **/

/** 
In animate btn:
this.btn_cow.addEventListener("click", btn_cow.bind(this));
function btn_cow()
{
	openDesc("desc-btn_cow");
} **/


.desc-wrap {
    z-index: 1000;
    padding-left: 29%;
    padding-right: 29%;
    height: 60%;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: -3%;
    bottom: 0;
    padding-top: 20%;
    padding-bottom: 20%;
    backdrop-filter: blur(5px);

    display: none;
    opacity: 0;
    transition-property: opacity;
    transition-duration: 500ms;
}

.desc-krakoul {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: flex-end;
}

.desc-krakoul-think {
    flex: 2 1;
    font-size: 1.2rem;
    height: 84%;
    margin-bottom: 2em;
}

.desc-krakoul-img {
    flex: 1;
    text-align: right;
    margin-right: -2em;
    margin-bottom: 0;
}

.desc-krakoul-img img {
    width: 100%;
}

/** =================== Content =================== **/

#startpage,
#homepage {
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    text-align: center;
    width: 40%;
}

.close-div {
    width: 100%;
    height: 30px;
    margin-top: -15px;
}

.content-container {
    height: 79%;
    overflow-y: scroll;
    padding-right: 10px;
    margin-left: 10px;
    margin-right: 10px;
    font-size: 2em;
}

#itw-page,
#tome1-page,
#tome2-page {
    display: none;
    z-index: 1000;
    padding-left: 32%;
    padding-right: 32%;
    padding-top: 5%;
    overflow-y: scroll;
    height: 100%;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 5%;
    bottom: 0;
}

.animate {
    opacity: 1 !important;
}

#desc-btn_touareg,
#desc-btn_world,
#desc-btn_worms,
#desc-btn_gun {
    display: none;
    z-index: 1000;
    padding-left: 36%;
    padding-right: 37%;
    height: 60%;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: -5%;
    bottom: 0;
}

/** =================== Media Query =================== **/

@media (max-width: 800px) {
    body {
        font-size: .6em;
    }

    h1,
    h2 {
        font-size: 1em;
    }

    .logo {
        margin-left: 1em;
    }

    .site-title {
        font-size: 1em;
        padding-top: 0.4 em;
    }

    .desc-krakoul {
        align-items: flex-end;
    }
}

@media (max-width: 530px) {
    .site-title {
        display: none;
    }

    .site-menu {
        padding-inline-start: .5em;
    }

    .logo {
        margin-left: .5em;
    }
}