@import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap');

* {
    box-sizing: border-box;
}

html, body {
    font-family: 'Play', sans-serif;
    margin: 0;
    padding: 0;
    color: #eee;
    text-shadow: 0px 0px 3px #555;
}

h1 {
    font-size: 4em;
}

h2 {
    font-size: 3em;
}

h3 {
    font-size: 2em;
}

.main {
    position: absolute;
    right: 0;
    width: 100%;
    min-height: 100vh;
    padding: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    transition: 0.5s;
}

.main.active {
    right: 300px;
}

.main header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 50px 100px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main video {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
}

.logo {
    font-size: 3em;
    cursor: pointer;
}

.toggle {
    position: relative;
    width: 50px;
    height: 50px;
    background: url('./graphics/icons/times-solid.svg');
    background-repeat: no-repeat;
    background-size: 40px;
    background-position: center;
    cursor: pointer;
}

.toggle.active {
    background: url('./graphics/icons/bars-solid.svg');
    background-repeat: no-repeat;
    background-size: 40px;
    background-position: center;
}

.text {
    position: relative;
    z-index: 3;
    text-shadow: 2px 2px 8px #000;
}

.text > div.part:not(:first-child) {
    display: none;
}

/*.part {
    transition: opacity 0.5s linear;
}*/

.overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(61, 200, 255, 0.5);
    /* mix-blend-mode: overlay; */
    mix-blend-mode: screen;
    z-index: 200;
}

.overlay video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
    /*mix-blend-mode: overlay;*/
    /*mix-blend-mode: color-burn;*/
}

.button {
    display: inline-block;
    background: white;
    padding: 10px;
    text-decoration: none;
    color: #111;
    margin-top: 10px;
    transition: 0.2s;
}

.button:hover {
    letter-spacing: 2px;
}

.menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: red;
}

.menu ul {
    position: relative;
    list-style: none;
    padding-inline-start: 0;
}

.menu ul li {
    margin: 2em 0;
}

.menu li a {
    text-decoration: none;
    font-size: 24px;
    color: #111;
}

.menu li a:hover {
    color: #555;
}

@media (max-width: 768px) {
    .main {
        padding: 50px;
    }

    .main header {
        padding: 10px 50px;
    }

    h1 {
        font-size: 3em;
    }
    
    h2 {
        font-size: 2em;
    }
    
    h3 {
        font-size: 1.5em;
    }
}