:root {
    --back-color: turquoise;
    --back-color-dark: teal;
    --accent-color: red;
    --text-dark: black;
    --anim-speed: transform .5s;
}

*, *:before, *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html, body {
    background-color: var(--back-color);
    margin: 0;
    font: 16px verdana;
    min-width: 300px;
    width: 100%;
    z-index: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

header {
    width: 100%;
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    box-shadow: 0 .5px .4px rgba(0, 0, 0, 0.034), 0 1px .8px rgba(0, 0, 0, 0.048), 0 2px 1.6px rgba(0, 0, 0, 0.06), 0 4px 3.2px rgba(0, 0, 0, 0.072), 0 8px 6.4px rgba(0, 0, 0, 0.086), 0 16px 12.8px rgba(0, 0, 0, 0.12);
    height: 70px;
    min-height: 70px;
    transition: .5s;
    flex: 0 0 70px;
}

.center {
    text-align: center;
    flex: 1;
}

header div:not(.center), header nav {
    width: 50px;
}

.center span {
    font-weight: bold;
    margin: auto 0 auto 0;
}

.header_text {
    font-size: max(5vw, 16px);
}

#trigger {
    opacity: 0;
    width: 0;
    height: 0;
    appearance: none;
    position: fixed;
    z-index: 25;
}

ul.tb_menu {
    margin: 0;
    position: fixed;
    left: 0;
    top: 70px;
    right: 0;
    height: 0;
    background: var(--back-color);
    box-shadow: 0 .5px .4px rgba(0, 0, 0, 0.034), 0 1px .8px rgba(0, 0, 0, 0.048), 0 2px 1.6px rgba(0, 0, 0, 0.06), 0 4px 3.2px rgba(0, 0, 0, 0.072), 0 8px 6.4px rgba(0, 0, 0, 0.086), 0 16px 12.8px rgba(0, 0, 0, 0.12);
    z-index: 20;
    transition: .7s;
}

ul.tb_menu li {
    list-style-type: none;
    padding: 10px 0;
    left: 0;
    transform: translateX(-400px);
    font-size: 1.6rem;
    transition: var(--anim-speed);
    width: fit-content;
}

ul.tb_menu li:nth-child(1) {
    transition-delay: 0s;
}

ul.tb_menu li:nth-child(2) {
    transition-delay: .1s;
}

ul.tb_menu li:nth-child(3) {
    transition-delay: .2s;
}

ul.tb_menu li:nth-child(4) {
    transition-delay: .3s;
}

#trigger:checked~ul.tb_menu li {
    transform: translateX(0);
}

#trigger:not(:checked)~ul.tb_menu li:nth-child(1) {
    transition-delay: .15s;
}

#trigger:not(:checked)~ul.tb_menu li:nth-child(2) {
    transition-delay: .1s;
}

#trigger:not(:checked)~ul.tb_menu li:nth-child(3) {
    transition-delay: .05s;
}

#trigger:not(:checked)~ul.tb_menu li:nth-child(4) {
    transition-delay: .0s;
}



ul.tb_menu li a {
    text-decoration: none;
    color: var(--text-dark);
}

ul.tb_menu li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    margin-left: 50%;
    background: var(--text-dark);
    transition: width .5s, margin .5s;
}

ul.tb_menu li a:hover::after {
    margin: 0;
    width: 100%;
}

#trigger:checked~ul.tb_menu {
    height: calc(100% - 70px);
}



.body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--back-color-dark);
    flex: 1;
    padding-top: 20px;
}

button {
    position: relative;
    font-size: 1.25rem;
    margin: 10px 0;
    color: var(--text-dark);
    background: var(--back-color-dark);
    border: none;
    padding: 2px 50px;
}

button:focus {
    outline: none;
}

button::before, button::after {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    transition: width .5s, height .5s, border-color .5s;
}

button::before {
    top: -1px;
    left: -1px;
    border-top: solid 2px var(--back-color-dark);
    border-left: solid 2px var(--back-color-dark);
}

button::after {
    right: -1px;
    bottom: -2px;
    border-right: solid 2px var(--back-color-dark);
    border-bottom: solid 2px var(--back-color-dark);
}

button:hover::before, button:active::before, button:focus::before, button:hover::after, button:active::after, button:focus::after {
    border-color: var(--text-dark);
    width: calc(100% + 2px);
    height: calc(100% + 2px);
}

.type {
    font-size: 2rem;
}

footer {
    flex: 0 0 60px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: 50px;
    background: var(--back-color);
    box-shadow: 0 -.5px .4px rgba(0, 0, 0, 0.034), 0 -1px .8px rgba(0, 0, 0, 0.048), 0 -2px 1.6px rgba(0, 0, 0, 0.06), 0 -4px 3.2px rgba(0, 0, 0, 0.072), 0 -8px 6.4px rgba(0, 0, 0, 0.086), 0 -16px 12.8px rgba(0, 0, 0, 0.12);
    z-index: 25;
}

@media screen and (min-width: 900px) {
    .header_text {
        font-size: 45px;
    }
    header {
        flex-wrap: wrap;
        flex: 0 0 110px;
    }
    .center {
        flex-basis: 100%;
    }
    header div:not(.center) {
        display: none;
    }
    header nav {
        flex-basis: 100%;
    }
    .bt_menu_trigger {
        display: none;
    }
    ul.tb_menu {
        height: auto;
        transform: unset;
        position: unset;
        box-shadow: none;
        padding: 0 10px;
        float: right;
        transition: 0s;
    }
    ul.tb_menu li, #trigger:checked~ul.tb_menu li {
        padding: unset;
        font-size: 1.2rem;
        display: inline;
        margin: 0 10px;
        opacity: 1;
        transition: margin 0s, opacity 0s;
    }
    ul.tb_menu li a::after {
        display: contents;
    }
}

/*                                                                  Hamburger */

.bt_menu_trigger {
    position: absolute;
    font-size: 18px;
    cursor: pointer;
    transition: var(--anim-speed);
    height: 20px;
    width: 20px;
    right: 3vw;
    bottom: 1vw;
    margin: 0;
    z-index: 25;
    will-change: transform;
}

.bt_menu_trigger span {
    position: absolute;
    width: inherit;
    top: 50%;
    height: 2px;
    margin-top: -1px;
    background-color: var(--text-dark);
}

.bt_menu_trigger span:after, .bt_menu_trigger span:before {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-dark);
    content: '';
    transition: var(--anim-speed);
}

.bt_menu_trigger span:before {
    transform: translateY(-8px);
}

.bt_menu_trigger span:after {
    transform: translateY(8px);
}

#trigger:checked+.bt_menu_trigger {
    transform: rotate(45deg) scale(1.2);
}

#trigger:checked+.bt_menu_trigger span:before {
    transform: translateY(-4px) rotate(90deg) scaleX(0.6);
}

#trigger:checked+.bt_menu_trigger span:after {
    transform: translateY(4px) rotate(90deg) scaleX(0.6);
}