/*
--------------------------------------------------------
Fonts
*/
@font-face {
  font-family: IBMPlexSansLight;
  src: url(../fonts/IBMPlexSans/IBMPlexSans-Light.ttf);
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    min-width: 100%;
    width: 100%;
    background-color: black;
    color: white;
    font-family: IBMPlexSansLight;
    font-size: 1em;
    line-height: 1.4em;
    box-sizing: border-box;
}

a {
    color: black;
    text-decoration: none;
}

a:hover{
    text-decoration: underline;
}

.text-center{
    text-align: center;
}
.float-right{
    float: right;
}
.text-right{
    text-align: right;
}
.float-left{
    float: left;
}
.text-left{
    text-align: left;
}
.space {
    height:50px;
}

/*
--------------------------------------------------------
EDIT A.Gysin
Structure:
-   The main container tries to keep the proportion of the video (~16:9)
    plus the bottom “title + about” section
-   The footer has an arbitrary height
*/


/* 1 */
.main-container{
    position: relative;
    width: 100vw;
    height: calc(50vw + 500px);  /* Ratio 2:1 + 500px */
}

/* 1.1 */
.canvas-overlay{
    position: absolute;
    width: 100%;
    bottom:0;
}

/* 1.2 */
canvas {
    position: absolute;
    left:0;
    top:0;
    width: 100%;
    height: 100%;
}

/* 2 */
footer {
    padding: 50px;
    height: 180px;
    background-color: white;
    color: black;
}

.taimles-logo object {
    /*margin-top: 50px;*/
    width: 150px;
}

.subtitle object {
    width: 155px;
}

.about {
    position: relative;
    left: 50%;
    transform: translate(-50%)!important;
    max-width: 470px;
    padding: 1em;
}

/*
--------------------------------------------------------
Animation sequence
*/

.taimles-logo {
    animation: fadein 12s;
}

.subtitle {
    animation: fadein 14s;
}

.about {
    animation: fadein 16s;
}

@keyframes fadein {
    0%   { opacity: 0.0; }
    50%  { opacity: 0.0; }
    100% { opacity: 1.0; }
}


/*
--------------------------------------------------------
Small screens
*/
@media screen
and (max-width: 520px) {
    .main-container{
        height: calc(100vw + 500px);  /* Ratio 1:1 + 500px */
    }
    .space {
        height:25px;
    }
}
/*
--------------------------------------------------------
Helpers
*/
.chroma{
    stroke: red;
    fill: red;
}


.disable-scroll{
    top:0;
    overflow-y: hidden;
    position: fixed;
}

.disable-select {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none; /* iOS Safari */

    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
}

.disable-cursor {
    pointer-events: none;
}

/*
--------------------------------------------------------
Cearfix hack
*/

.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}
.clearfix { display: inline-block; }
/* start commented backslash hack \*/
* html .clearfix { height: 1%; }
.clearfix { display: block; }
/* close commented backslash hack */
