@font-face {
    font-family: digital;
    src: url(font/digital_dismay-webfont.woff2) format('woff2'),
		 url(font/digital_dismay-webfont.woff) format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: nordicaBold;
    src: url(font/NORDB.woff2) format('woff2'),
    url(font/NORDB.woff) format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: nordicBoldItalic;
    src: url(font/NORDBI.woff2) format('woff2'),
    url(font/NORDBI.woff) format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: nordica;
    src: url(font/NORDICA.woff2) format('woff2'),
    url(font/NORDICA.woff) format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: nordicRegItalic;
    src: url(font/NORDRGI.woff2) format('woff2'),
    url(font/NORDRGI.woff) format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: godus;
    src: url(font/godusregular.woff2) format('woff2'),
    url(font/godusregular.woff) format('woff');
    font-weight: normal;
    font-style: normal;

}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    margin: auto;
}

div.flexbox {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

header {
    height: 20vmin;
}

header h2 {
    margin: 0;
    text-align: center;
    width: fit-content;
    font-family: nordicaBold, sans-serif;
    text-transform: uppercase;
    color: #666666;
    height: 25%;
    font-size: 7vmin;
}

header .flexbox {
    justify-content: space-evenly;
}

header div img {
    height: 16vmin;
}

main {
    font-family: Digital, sans-serif;
    font-size: 65vmin;
    color: #FFFFFF;
    background-color: #F78B1F;
    height: 70vmin;//60
    width: 100%;
    letter-spacing: 10px;
    /* text-shadow: -1px 0 #FFFFFF, 0 1px #FFFFFF, 1px 0 #FFFFFF, 0 -1px #FFFFFF; */
}

footer {
    height: 10vmin; //AA 20
}

footer button {
    font-family: godus, sans-serif;
    color: #FFFFFF;
    background-color: #F78B1F;
    font-size: 2vmin;//AA 4
    padding: .5em;
    border: none;
    letter-spacing: 4px;
    text-align: center;
    margin: 1em;
    white-space: nowrap;
    transition: scale .1s ease-in-out;
    position: relative;
}

footer button:hover:not(.disabled) {
    cursor: pointer;
    /*box-shadow: #2c3e50 0 0 5px;*/
    scale: 1.05;
}

footer button:active:not(.disabled) {
    cursor: pointer;
    box-shadow: #2c3e50 0 0 15px;
}

#settingsContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

#settings {
    font-family: godus, sans-serif;
    font-size: .075em;
    letter-spacing: normal;
    justify-content: space-evenly;
    flex-direction: column;
    line-height: 1.5em;
}

.hidden {
    opacity: 0;
}

#minutes {
    padding-left: 20px;
}

#minutes.preC {
    color: rgba(0,0,0,0);
}

#minutes:before {
    content: '0';
    color: rgba(255,255,255,.1);
    position: absolute;
}

#seconds.preC:first-letter {
    color: rgba(0,0,0,0);
}

#seconds:before {
    content: '00';
    color: rgba(255,255,255,.1);
    position: absolute;
}

.switch {
    width: 1.35em;
    height: .7em;
    border-radius: .5em;
    background: #666;
    transition: background-color .3s ease-in-out;
    display: inline-block;
    margin-right: .5em;
    position: relative;
}

.lever {
    position: absolute;
    width: .66em;
    height: .66em;
    margin-top: .015em;
    border-radius: .5em;
    background: #fff;
    transition: margin-left .3s ease-in-out;
}

.lever.on {
    margin-left: .7em;
    transition: margin-left .3s ease-in-out;
}

button.disabled:before, .switch.disabled:before, switch.on.disabled:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.3);
    z-index: 1000;
}

.switch.disabled:before, switch.on.disabled:before{
    border-radius: .5em;
}

.switch.on {
    background: #0c0;
    transition: background-color .3s ease-in-out;
}

.gdpr {
    font-size: .5em;
    text-align: center;
    line-height: 1.2em;
}

.gdpr a:link, .gdpr a:visited {
    color: white;
}

.gdpr a:hover {
    color: #ddd;
}

.bubble {
    position: fixed;
    background-color: rgba(0,0,0,.91);
    color: #fff;
    padding: 1em;
    font-family: godus, sans-serif;
    font-size: 2em;
    border-radius: 10px;
}

.bubbleNav {
    display: flex;
    justify-content: space-between;
    margin-top: 1em;
}

.bubbleNav>a {
    color: #fff;
}

.bubble#first {
    top: 50vh;
    left: 60%;
    transform: translateX(-50%);
    min-width: 50vw;
}

/* Shapes from css-tricks.com */
.triangle-down {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 100px solid rgba(0,0,0,.91);
    position: absolute;
    bottom: -100px;
    left: 5em;
}