* {
    border: 0;
    padding: 0;
    margin: 0;
    outline: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    line-height: inherit;
    font-weight: inherit;
    font-family: inherit;
    font-size: 1em;
    text-decoration: none;
    color: inherit;
    list-style: none;
}

body {
    overflow: hidden;
}

input, select {
    vertical-align: middle;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

a, button, select, input[tpye=radio], input[tpye=checkbox], input[tpye=file] {
    cursor: pointer;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}

/* Reset ends here */
@font-face {
    font-family: "sourcesanspro";
    font-weight: 600;
    src: url("fonts/sourcesanspro-bold.woff");
}

@font-face {
    font-family: "sourcesanspro";
    font-weight: 200;
    src: url("fonts/sourcesanspro-light.woff");
}

@font-face {
    font-family: "sourcesanspro";
    font-weight: 400;
    src: url("fonts/sourcesanspro-regular.woff");
}

.escape {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    z-index: 999999999;
}

@-webkit-keyframes blinkig {
    0% {
        color: white;
        text-shadow: 0px 0px 200px white, 0px 1px 0px white;
        -webkit-text-stroke: 1px white;
    }
    100% {
        color: crimson;
        text-shadow: 0px 0px 200px crimson, 0px 1px 0px crimson;
        -webkit-text-stroke: 1px crimson;
    }
}

@-moz-keyframes blinkig {
    0% {
        color: white;
        text-shadow: 0px 0px 200px white, 0px 1px 0px white;
        -webkit-text-stroke: 1px white;
    }
    100% {
        color: crimson;
        text-shadow: 0px 0px 200px crimson, 0px 1px 0px crimson;
        -webkit-text-stroke: 1px crimson;
    }
}

@keyframes blinkig {
    0% {
        color: white;
        text-shadow: 0px 0px 200px white, 0px 1px 0px white;
        -webkit-text-stroke: 1px white;
    }
    100% {
        color: crimson;
        text-shadow: 0px 0px 200px crimson, 0px 1px 0px crimson;
        -webkit-text-stroke: 1px crimson;
    }
}

@-webkit-keyframes somethingwrong {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

@-moz-keyframes somethingwrong {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

@keyframes somethingwrong {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

html, body {
    height: 100%;
    width: 100%;
    background-color: #eee;
}

body {
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-color: black;
    /*background-color: #00ff00;*/ /* ZÖLD */
    /*background-color: #156404;*/ /* BUDAPEST BANK */
    /*background-color: #FF0AF9;*/ /* BUDAPEST BANK MAGENTA */
    /*background-color: #2330FF;*/ /* BUDAPEST BANK KÉK */
}

#outer-container {
    height: 100%;
    width: 100%;
    position: relative;
}

#outer-container:after {
    content: " ";
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9000;
    /*background: url("img/grunge2.png") center no-repeat;*/

    /*background-size: cover;*/
}

#outer-container, #outer-container * {
    -webkit-transition: all 500ms;
    -moz-transition: all 500ms;
    transition: all 500ms;
}

#outer-container .flex-container {
    font-size: 26em;
    font-family: "sourcesanspro", monospace;
    font-weight: 200;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    color: white;
    /*text-shadow: 0px 0px 200px #51d551, 0px 1px 0px #fff;*/
    /*-webkit-text-stroke: 1px #65da65;*/
    z-index: 1000;
    text-align: center;
    width: 100%;
    display: flex;
}

.flex-container .block {
    flex-grow: 1;
}

.minute .number {
    border-left: 0.03em solid hsla(0, 0%, 100%, 0.9);
    border-right: 0.03em solid hsla(0, 0%, 100%, 0.9);
}

/*#outer-container h1:before {*/
/*content: "88:88";*/
/*color: #000;*/
/*position: absolute;*/
/*-webkit-text-stroke: 0;*/
/*text-shadow: none;*/
/*top: 0;*/
/*left: 0;*/
/*opacity: 0.5;*/
/*z-index: -1;*/
/*text-align: center;*/
/*width: 100%; }*/
#outer-container h6 {
    /*font-size: 1.5em;*/
    font-family: "digital7", "Bitstream Vera Sans Mono", Consolas, Courier, monospace;
    padding-top: 1em;
    color: rgba(255, 255, 255, 0.35);
    z-index: 1000;
    text-align: center;
    width: 100%;
}

#outer-container h2 {
    font-family: "sourcesanspro", monospace;
    font-weight: 200;
    text-align: center;
    color: white;
    font-size: 60px;
    margin-top: 5%;
    margin-bottom: 0;
}

#outer-container.yellow .number {
    color: #53bedd;
}

#outer-container.red .number {
    color: #ff41ef;
}

#outer-container.blinking .number {
    -webkit-animation: blinkig 1000ms infinite;
    -moz-animation: blinkig 1000ms infinite;
    animation: blinkig 1000ms infinite;
}

body.timeisup, #outer-container.timeisup {
    /*background: #156404;*/ /* BUDAPEST BANK */
    /*background: #FF0AF9;*/ /* BUDAPEST BANK MAGENTA*/
    /*background: #2330FF;*/ /* BUDAPEST BANK KÉK*/
    /*background: #00ff00;*/ /*ZÖLD*/
    background: black;
}

.connections-total {
    color: #03A9F4;
    font-size: 4rem;
    font-weight: 400;
    z-index: 99;
    font-family: sans-serif;
    text-align: center;
    transform: translate(-50%, -50%);
    width: 100%;
    position: absolute;
    top: 82%;
    left: 50%;
}


@media screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (orientation: landscape)
and (-webkit-min-device-pixel-ratio: 1)
{
    body {
        position: absolute;
        /*height: 768px;*/
        /*bottom: -20px;*/
        background-color: black;
    }
    #outer-container .flex-container .number {
        font-size: 13rem;
        line-height: 14rem;
    }
    #outer-container .flex-container .text {
        font-size: 1.5rem;
    }
    #outer-container h2 {
        font-size: 3rem;
        margin-top: 4%;
    }
    .connections-total {
        font-size: 8rem;
    }
}


/* Portrait */
@media screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (orientation: portrait)
and (-webkit-min-device-pixel-ratio: 1) {
    body {
        position: absolute;
        /*height: 1024px;*/
        /*bottom: -20px;*/
        background-color: black;
    }
    #outer-container .flex-container .number {
        font-size: 13rem;
        line-height: 14rem;
    }
    #outer-container .flex-container .text {
        font-size: 1.5rem;
    }
    #outer-container h2 {
        font-size: 3rem;
        margin-top: 4%;
    }
    .connections-total {
        font-size: 8rem;
    }
}

@media screen and (max-width: 136px) {
    h6 { font-size: 0.5rem; }
    #outer-container .flex-container .number {
        /*color: cyan;*/
        font-size: 1rem;
        line-height: 1rem;
    }
    #outer-container .flex-container .text {
        font-size: 1.5rem;
    }
    #outer-container h2 {
        font-size: 1rem;
        margin-top: 4%;
    }
}

@media screen and (min-width: 136px) {
    h6 { font-size: 0.5rem; }
    #outer-container .flex-container .number {
        /*color: red;*/
        font-size: 1.5rem;
        line-height: 1.6rem;
    }
    #outer-container .flex-container .text {
        font-size: 0.7rem;
    }
    #outer-container h2 {
        font-size: 0.5rem;
        margin-top: 0;
    }
}
@media screen and (min-width: 187px) {
    h6 { font-size: 0.6rem; }
    #outer-container .flex-container .number {
        /*color: green;*/
        font-size: 2.5rem;
        line-height: 2.6rem;
    }
    #outer-container .flex-container .text {
        font-size: 0.9rem;
    }
    #outer-container h2 {
        font-size: 0.8rem;
        margin-top: 0;
    }
}
@media screen and (min-width: 257px) {
    h6 { font-size: 0.6rem; }
    #outer-container .flex-container .number {
        /*color: blue;*/
        font-size: 2.5rem;
        line-height: 2.6rem;
    }
    #outer-container .flex-container .text {
        font-size: 0.9rem;
    }
    #outer-container h2 {
        font-size: 0.9rem;
        margin-top: 0;
    }
}
@media screen and (min-width: 309px) {
    h6 { font-size: 0.9rem; }
    #outer-container .flex-container .number {
        /*color: orange;*/
        font-size: 3.5rem;
        line-height: 3rem;
    }
    #outer-container .flex-container .text {
        font-size: 0.9rem;
    }
    #outer-container h2 {
        font-size: 0.9rem;
        margin-top: 0;
    }
}
@media screen and (min-width: 576px) {
    h6 { font-size: 0.9rem; }
    #outer-container .flex-container .number {
        /*color: magenta;*/
        font-size: 7rem;
        line-height: 7rem;
    }
    #outer-container .flex-container .text {
        font-size: 1.5rem;
    }
    #outer-container h2 {
        font-size: 1.8rem;
        margin-top: 24%;
    }
}

@media screen and (min-width: 768px) {
    #outer-container .flex-container .number {
        /*color: chartreuse;*/
        font-size: 10rem;
        line-height: 9rem;
    }
    #outer-container .flex-container .text {
        font-size: 1.5rem;
    }
    #outer-container h2 {
        font-size: 2rem;
        margin-top: 0%;
    }
}

@media screen and (min-width: 1280px) {
    #outer-container .flex-container .number {
        /*color: darksalmon;*/
        font-size: 24rem;
        line-height: 24rem;
        font-size: 27rem;
        font-weight: 400;
    }
    #outer-container .flex-container .text {
        font-size: 3rem;
    }
    #outer-container h2 {
        font-size: 3rem;
        margin-top: 4%;
    }
    .connections-total {
        font-size: 10rem;
        top: 88%;
    }
}

@media screen and (min-width: 1920px) {
    .connections-total {
        font-size: 18rem;
        top: 85%;
    }
}
