*{
    font-size: 0;
    box-sizing: border-box;    
}

html,
body {
    font-family: sans-serif;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    position:relative;
    cursor: crosshair;

}

#background{
    width: 100%;
    height: 100%;
    transition: 1s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.woods {
    width: calc(100% + 80px);
    height: calc(100% + 80px);
    position: absolute;
    bottom: -40px;
    right: -40px;
    background-size: cover;
    background-position: bottom right;
}

canvas {
    width: 200%;
    height: 200%;
    position: absolute;
    z-index: 999;
    left:-50%;
    top:-50%;
    pointer-events: none;
    opacity: 1;
    transition: opacity 1s;
}

#projects{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 1s cubic-bezier(0.65, 0.05, 0.36, 1);
    opacity:0;
    display:none;
}

#wrap{
    width: calc(100% - 20vh);
    height: 80%;
    margin: 10vh;
    border: 1px solid black;
}

#plist{
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: inline-block;
    border-right: 1px solid black;
    width: 25%;
    height: 100%;
    overflow: auto;
}

#plist li{
    width: 100%;
    padding: 5px;
    font-size: 2vw;
    transition: 0.5s cubic-bezier(0.65, 0.05, 0.36, 1);
    display:table;
}

#plist li:not(:first-child){
    border-top: 1px solid black;
}

#plist li:hover {
    text-shadow: 0 0 5px #0d163b;
}

#plist li span {
    font-size: 2vw;
    display:table-cell;
}
#plist li span:last-child {
    text-align: right;
    word-break: keep-all;
    vertical-align: bottom;
}

#plist li span a{
    font-size: 1.5vw;
    color: #2d2d2d;
    text-decoration: none;
    cursor: pointer;
    text-shadow: none;
}

#plist li.header{
    position:sticky;
    top:0;
    background-color: #353535;
    color:white;
    border-top: none;
}

#pprev{
    display: inline-block;
    width: 75%;
    padding: 5%;
    vertical-align: top;
    height: 100%;
    background-image: url();
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-origin: content-box;
    transition: 0.5s cubic-bezier(0.65, 0.05, 0.36, 1);
    filter: drop-shadow(0px 0px 5px black);
}

#contacts{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 1s cubic-bezier(0.65, 0.05, 0.36, 1);
    opacity:0;
    display:none;
}

#clist{
    position: relative;
    margin: auto;
    padding: 0;
    list-style-type: none;
    top: 50%;
    transform: translate(0, -50%);
    border: 1px solid black;
    display: table;
}

#clist li{
    width: 100%;
    padding: 5px;
    text-align: center;
}

#clist li:not(:first-child){
    border-top: 1px solid black;
}

#clist li a{
    font-size: 20pt;
    color: black;
    text-decoration: none;
    text-align: center;
    transition: 0.5s cubic-bezier(0.65, 0.05, 0.36, 1);
}

#clist li a:hover {
    text-shadow: 0 0 5px #0d163b;
}


#buttons {
    color: white;
    position: absolute;
    bottom: 0;
    margin: 0 20px;
    width: calc(100% - 40px);
    height: 10%;
    transition: 1s cubic-bezier(0.65, 0.05, 0.36, 1);
}

#buttons span {
    position:relative;
    top:25%;
    transition: 0.5s cubic-bezier(0.65, 0.05, 0.36, 1);
    font-size: 5vh;
    cursor: pointer;
}

#buttons span:hover {
    text-shadow: 0 0 5px #f2e9c4;
}

#buttons span:last-child {
    float:right;
}


#covers {
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    display: table;
    background-color: #252525;
    z-index: 9;
    transition: 0.7s;
    opacity: 1;
    z-index: 999999999;
}

#conts {
    position: absolute;
    display: block;
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

@keyframes load {
    0% {
        bottom: 0%;
        left: 40%;
        opacity: 0;
    }

    20% {
        left: 0%;
        opacity: 0.2;
    }

    30% {
        width: 20%;
        height: 20%;
    }

    40% {
        left: 80%;
    }

    50% {
        opacity: 0.7;
        width: 30%;
        height: 30%;
    }

    60% {
        left: 0%;
    }

    70% {
        width: 20%;
        height: 20%;
    }

    80% {
        left: 80%;
        opacity: 0.2;
    }

    100% {
        bottom: 100%;
        left: 33%;
        opacity: 0;
    }
}

.elems {
    animation: load 2.5s infinite cubic-bezier(.5, 0, .5, 1);
    width: 25%;
    height: 25%;
    border-radius: 50%;
    background-color: #eee;
    opacity: 0;
    position: absolute;
}

#qs {
    animation-delay: 0.15s;
}

#ws {
    animation-delay: 0.3s;
}

#es {
    animation-delay: 0.45s;
}

#rs {
    animation-delay: 0.6s;
}

#ts {
    animation-delay: 0.75s;
}


@media only screen and (max-width : 600px) {

    #wrap{
        width: calc(100% - 10vh);
        margin: 10vh 5vh;
    }

    #plist {
        display: block;
        border-right: 0px solid black;
        width: 100%;
        height: 25%;
        border-bottom: 1px solid black;
    }

    #plist li{
        font-size: 5vw;
    }

    #plist li span {
        font-size: 5vw;
    }

    #plist li span a{
        font-size: 3.5vw;
    }

    #pprev{
        width:100%;
        height:75%;
    }
}

@media only screen and (max-width : 300px) {

    #plist li{
        font-size: 7vw;
    }

    #plist li span {
        font-size: 7vw;
    }

    #plist li span a{
        font-size: 5.5vw;
    }
}