@import url(https://fonts.googleapis.com/css?family=Lora:400,700);
html {
    background: linear-gradient(#ffc64d, #fff7e6);
    background-attachment: fixed;
    min-height: 100%;
    position: relative;
}

body {
    font-family: 'Lora', serif;
    color: #262626;
}

p {
    margin: 0;
}

#container {
    width: 95vmin;
    height: 95vmin;
    margin: 2vmin auto 0 auto;
    background-color: #262626;
    border: 2.5vmin solid #262626;
    box-sizing: border-box;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.box {
    width: 45vmin;
    height: 45vmin;
    box-sizing: border-box;
    float: left;
    cursor: pointer;
}

#green {
    background-color: #008000;
    border-top-left-radius: 100%;
    border-right: 1.25vmin solid #262626;
    border-bottom: 1.25vmin solid #262626;
}

#red {
    background-color: #991f00;
    border-top-right-radius: 100%;
    border-left: 1.25vmin solid #262626;
    border-bottom: 1.25vmin solid #262626;
}

#yellow {
    background-color: #cccc00;
    border-bottom-left-radius: 100%;
    border-right: 1.25vmin solid #262626;
    border-top: 1.25vmin solid #262626;
}

#blue {
    background-color: #003d99;
    border-bottom-right-radius: 100%;
    border-left: 1.25vmin solid #262626;
    border-top: 1.25vmin solid #262626;
}

#options {
    width: 45vmin;
    height: 45vmin;
    background-color: #fff;
    box-sizing: border-box;
    border: 2.5vmin solid #262626;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

#title {
    font-size: 5vmin;
    position: relative;
    top: 1vmin;
}

sup {
    font-size: 2.8vmin;
}

#counter {
    height: 7vmin;
    width: 9vmin;
    position: relative;
    left: 3vmin;
    background-color: #330000;
    border: 1vmin solid #262626;
    float: left;
    border-radius: 2vmin;
}

#level {
    color: red;
    line-height: 7vmin;
    font-size: 5vmin;
    font-weight: bold;
    letter-spacing: 0.75vmin;
}

#start {
    background-color: red;
    height: 6vmin;
    width: 6vmin;
    border-radius: 50%;
    border: 0.4vmin solid black;
    box-shadow: 0 0.3vmin 0.3vmin 0 #262626;
    cursor: pointer;
    position: relative;
    margin: 0 auto;
    top: 1vmin;
}

#start:active {
    top: 1.25vmin;
    box-shadow: 0 0;
}

#strict {
    float: right;
    background-color: yellow;
    height: 4vmin;
    width: 4vmin;
    border-radius: 50%;
    border: 0.4vmin solid black;
    box-shadow: 0 0.1vmin 0.1vmin 0 #262626;
    cursor: pointer;
    position: relative;
    bottom: 4vmin;
    right: 7vmin;
}

#strict:active {
    bottom: 3.75vmin;
    box-shadow: 0 0;
}

#led {
    width: 1vmin;
    height: 1vmin;
    float: right;
    position: relative;
    right: 8.75vmin;
    background-color: #262626;
    border: 1px solid #262626;
    border-radius: 50%;
}

#buttonLabels {
    height: 4vmin;
    position: relative;
    bottom: 2vmin;
    display: inline-flex;
    line-height: 3vmin;
}

.label {
    font-size: 3vmin;
    padding: 1vmin;
}

#powerDiv {
    position: relative;
    bottom: 1vmin;
    display: inline-flex;
}

.powerLabel {
    margin: 0.5vmin;
}

#power {
    width: 12vmin;
    height: 6vmin;
    background-color: #262626;
    border-radius: 3px;
    cursor: pointer;
}

.switch {
    background-color: #4d94ff;
    width: 4vmin;
    height: 4vmin;
    margin: 1vmin;
}

#offPos {
    float: left;
}

#onPos {
    float: right;
    display: none;
    /* for when page loads */
}

h3 {
    margin-left: 20px;
    text-decoration: underline;
}

#levels {
    width: 30px;
}

#instructions {
    position: relative;
    margin-bottom: 35px;
}

#numLevels {
    display: inline-block;
    padding-left: 2px;
}

footer {
    text-align: center;
    width: 100%;
    position: absolute;
    bottom: 10px;
}


/* Above 750px, elements are fixed width rather than scaling based on viewport size.
*/

@media screen and (min-width: 750px) {
    #container {
        width: 712px;
        height: 712px;
        border-width: 18px;
        margin-top: 15px;
    }
    .box {
        width: 338px;
        height: 338px;
        border-width: 9px !important;
    }
    #options {
        width: 338px;
        height: 338px;
        border-width: 18px;
    }
    #title {
        font-size: 38px;
        top: 10px;
    }
    sup {
        font-size: 20px;
    }
    #counter {
        width: 67px;
        height: 52px;
        left: 22px;
        border-width: 8px;
        border-radius: 15px;
    }
    #level {
        line-height: 52px;
        font-size: 36px;
        letter-spacing: 6px;
    }
    #start {
        height: 45px;
        width: 45px;
        border-width: 3px;
        box-shadow: 0 3px 3px 0 #262626;
        top: 7px;
    }
    #start:active {
        top: 10px;
    }
    #strict {
        height: 30px;
        width: 30px;
        border-width: 2px;
        box-shadow: 0px 2px 2px 0 #262626;
        bottom: 30px;
        right: 55px;
    }
    #strict:active {
        bottom: 28px;
    }
    #led {
        width: 8px;
        height: 8px;
        right: 68px;
        border-width: 1px;
    }
    #buttonLabels {
        height: 30px;
        bottom: 15px;
        line-height: 23px;
    }
    .label {
        font-size: 23px;
        padding: 7px;
    }
    #powerDiv {
        bottom: 5px;
    }
    .powerLabel {
        margin: 5px;
    }
    #power {
        width: 90px;
        height: 45px;
    }
    .switch {
        width: 31px;
        height: 31px;
        margin: 7px;
    }
}