:root {
    font-size: 10px;
}

@media(min-width: 2000px) {
    :root {
        font-size: 13px;
    }
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
}

body { 
    padding: 0;
    margin: 0;
    font-family: degular, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 2rem;

    background: black;
    color: white;
}

a {
    color: white;
    text-decoration: none;
    transition: color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

a:hover {
    color: #98CAEA;
}
.page--back {
    position: fixed;
    top: 4rem;
    left: 4rem;
    z-index: 999;
    cursor: pointer;
}

.App-header {
    display: flex;
    position: fixed;
    right: 2rem;
    top: 2rem;
    z-index: 10;
    z-index: 999;
}

.App-header div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding: 2rem 0;
}

.App-header .soci-logo {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-size: 1.5rem;
}

.App-header span {
    display: block;
}

.App-header nav a {
    color: #6CA4F5;
    text-transform: uppercase;
    margin-left: 2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 1.5rem;
}

.App-header nav a:hover {
    color: #FA7AED;
}

.App-header nav a.active {
    color: #FA7AED;
}

.App-header .svg-logo {
    width: auto;
    height: 8rem;
    margin-left: 4rem;
}

.video-bg video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
}

.video-container {
    position: relative;
    /* overflow: hidden; */
    width: 100%;
    padding-top: 56.25%;
}

.video-skip {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 999;
    text-transform: uppercase;
    font-size: 1.6rem; 
    margin-top: 2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    
}

.responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.video-wrap {
    z-index: 100;
    position: absolute;
    width: 100%;
    max-width: 1280px;
    left: 50%;
    top: 50%;
    margin-top: 37px;
    transform: translate(-50%, -50%);
}

#unity-container { position: absolute }
#unity-container.unity-desktop { left: 50%; top: 40%; transform: translate(-50%, -50%); margin-top: 40px;}
#unity-container.unity-mobile { width: 100%; height: 100% }
#unity-canvas { background: #0e0e0e; }
.unity-mobile #unity-canvas { width: 100%; height: 100% }
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
#unity-logo { 
    width: 154px; 
    height: 154px;
    background: url('uonlogowhite.png') no-repeat center;
    background-size: 100%;
    margin-bottom: 40px;
}
#unity-progress-bar-empty {
    width: 154px;
    height: 18px;
    margin-top: 10px;
    background: url('progress-bar-empty-dark.png') no-repeat center
}
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }
#unity-footer { position: relative }
.unity-mobile #unity-footer { display: none }
#unity-webgl-logo { float:left; width: 204px; height: 38px; background: url('webgl-logo.png') no-repeat center }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#unity-fullscreen-button { float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }


.video-thumbnails {
    max-width: 128rem;
    display: flex;
    z-index: 999;
    position: relative;
    flex-wrap: wrap;
    /* align-items: center; */
    justify-content: center;
    margin: auto;
    margin-top: 100vh;
    margin-bottom: 16rem;
}
.video-thumbnails a {
    padding: 2rem;
}
.video-thumbnails a img {
    width: 34rem;
    height: auto;
    
}

.video-thumbnails a div {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.6rem;
    letter-spacing: 0.1em;
    margin-top: 1rem;
    text-align: center;
    width: 34rem;
}

.video-thumbnails a:hover {
    background-color: transparent;
    background-image: linear-gradient(90deg, #FA7AED 50%, transparent 0),
        linear-gradient(90deg, #FA7AED 50%, transparent 0),
        linear-gradient(180deg, #FA7AED 50%, transparent 0),
        linear-gradient(180deg, #FA7AED 50%, transparent 0);
    background-position: 0 0, 0 100%, 0 0, 100% 0;
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
    background-size: 30px 2px, 30px 2px, 2px 30px, 2px 30px;
    animation: anim-select .5s infinite linear normal;
}

@keyframes anim-select {
    0% {
        background-position: 0 0, 0 100%, 0 0, 100% 0
    }

    to {
        background-position: 30px 0, -30px 100%, 0 -30px, 100% 30px
    }
}

.mobile-warning {
    display: none;
}

.howTo {
    display: block;
    position: fixed;
    bottom: 2vh;
    width: 100%;
    z-index: 999;
    color: white;
    margin-top: 8rem;
    padding: 0 2rem;
    text-align: center;
    line-height: 2em;
}

@media(max-width: 960px) {
    .App-header {
        display: none;
    }

    .page--back {
        position: fixed;
        top: 2rem;
        left: 2rem;
        z-index: 999;
    }
    
    .video-wrap {
        position: static;
        transform: none;
        margin-top: 6rem;
        display: none;
        padding: 2rem;
    }
    .mobile-warning {
        display: block;
        position: relative;
        z-index: 999;
        color: white;
        margin-top: 8rem;
        padding: 0 2rem;
        text-align: center;
    }
    
    #unity-container {
        display: none;
    }

    .video-thumbnails {
        margin-top: 0;
    }

    .howTo {
        display: none;
    }
}