/** *************************************** **

    TABLE OF CONTENTS
    ---------------------------
     01. Typography
     02. Preloader
     03. Misc
     04. Main Content
     05. Media Queries
    
 **  *************************************** **/


/** 1. TYPOGRAPHY
*****************************************************************/

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    font-weight: 300;
    font-style: normal;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden !important;
    color: #000;
    background: #222;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: normal;
    line-height: auto;
    margin: 0;
    padding: 0;
    color: #000;
}

h1 {
    font-size: 45px;
}

h2 {
    font-size: 35px;
}

h3 {
    font-size: 30px;
}

h4 {
    font-size: 24px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 16px;
}

p {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 18px;
}

a,
a:hover,
a:focus {
    cursor: pointer;
    -webkit-transition: all .3s ease 0s;
    -moz-transition: all .3s ease 0s;
    transition: all .3s ease 0s;
    text-decoration: none;
}

::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background-color: rgba(255, 255, 255, .0);
}

::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 1);
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 1);
}


/** 2. PRELOADER
*****************************************************************/

#preloader {
    position: fixed;
    z-index: 100000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #000;
}

.socket {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 52px;
    height: 52px;
    margin: auto;
}

.socket img {
    -webkit-animation: rotate .6s linear infinite;
    animation: rotate .6s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes rotate {
    /* Safari and Chrome */
    from {
        -webkit-transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
    }
}


/** 3. MISC
*****************************************************************/

#bg-darker {
    position: fixed;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .5);
}

#bg-pattern,
.pattern {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('../img/pattern/pattern-bg.png') repeat fixed !important;
}

#bg-image {
    position: fixed !important;
    z-index: -1;
    width: 100%;
    height: 100%;
}

#bg-video {
    position: fixed !important;
    z-index: -1;
    width: 100%;
    height: 100%;
}

#canvas-container {
    position: fixed !important;
    z-index: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

canvas {
    position: fixed !important;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.volume-button {
    font-size: 18px;
    position: absolute;
    z-index: 7;
    top: 20px;
    left: 20px;
    cursor: pointer;
    color: #fff;
}

.stop-button {
    font-size: 18px;
    position: absolute;
    z-index: 7;
    top: 20px;
    left: 50px;
    cursor: pointer;
    color: #fff;
}


/** 4. FRONT-CONTENT
*****************************************************************/

#main {
    position: static !important;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 100% !important;
}

.main-content {
    position: absolute;
    top: 50%;
    width: 100%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    transform: translateY(-50%);
    text-align: center;
    text-transform: uppercase;
}

.main-content img.logo {
    width: 200px;
    margin-bottom: 20px;
    padding-top: 20px;
    opacity: 0;
}

.main-content h1 {
    font-size: 80px;
    font-weight: 600;
    line-height: auto;
    margin: 0 auto;
    margin-bottom: 50px;
    text-align: center;
    opacity: 0;
    color: #fff;
}

.main-content h1 span {
    color: #1fb8b2;
}

.main-content p {
    font-family: 'Raleway', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: auto;
    padding-bottom: 50px;
    letter-spacing: 2px;
    opacity: 0;
    color: #fff;
}


/** 5. MEDIA QUERIES
 *****************************************************************/

@media only screen and (max-height: 800px) {
    .main-content h1 {
        font-size: 60px;
    }
    .main-content p {
        font-size: 14px;
        padding-bottom: 40px;
    }
}

@media only screen and (max-height: 630px) {
    .main-content h1 {
        font-size: 55px;
        margin-bottom: 40px;
    }
    .main-content img.logo {
        width: 220px;
        margin-bottom: 8px;
    }
}

@media only screen and (max-height: 320px) {
    .main-content {
        overflow: auto;
        height: 100% !important;
    }
}

@media only screen and (max-width: 768px),
only screen and (max-height: 510px) {
    .main-content p {
        padding-bottom: 60px;
    }
    .main-content h1 {
        font-size: 45px;
    }
}

@media only screen and (max-width: 480px),
only screen and (max-height: 410px) {
    .main-content h1 {
        font-size: 40px;
    }
    .main-content p {
        font-size: 10px;
        font-weight: 300;
        padding-bottom: 20px;
        letter-spacing: 2px;
    }
    .main-content img.logo {
        width: 190px;
        margin-bottom: 4px;
    }
}

@media only screen and (max-width: 400px),
only screen and (max-height: 310px) {
    .main-content h1 {
        font-size: 30px;
        margin-bottom: 30px;
    }
    .main-content img.logo {
        width: 170px;
        margin-bottom: 8px;
    }
}

@media only screen and (max-width: 355px),
only screen and (max-height: 280px) {
    .main-content h1 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .main-content img.logo {
        width: 150px;
        margin-bottom: 4px;
    }
}
