* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-family: Arial, Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
}

body {
}

html.RecordScreen2 body {
    overflow: hidden;
}

button {
    border-radius: 0;
    -webkit-appearance: none;
    background-color: #ddd;
    padding: 6px;
}

#divVue {
    width: 100%;
    height: 100%;
    max-width: 500px;
    position: relative;
    margin: 0 auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#divMain {
    position: relative;
    height: 100%;
    width: 100%;
    padding-bottom: 5vh;
}

#divMainMenu {
    width: 100%;
    height: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#divMainMenu > button {
    width: calc(100% / 3);
    height: calc(100% / 8);
    font-size: 4vw;
    white-space: nowrap;
}

#divMainMenu > button:last-of-type {
    width: calc(100%);
}

#divMainMenu > button img {
    width: auto;
    height: 7vh;
}

@media (min-width: 400px) {
    #divMainMenu button {
        font-size: 20px;
    }
}

#divContent {
    padding-bottom: 5vh;
}

#divContent .title {
    height: 60px;
    background-color: #164e17;
    line-height: 60px;
    position: relative;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1;
    color: #fff;
}

#divContent .title img {
    height: calc(100% - 8px);
    margin: 4px;
    -webkit-filter: invert(100%);
    filter: invert(100%);
}

#divContent .title span {
    vertical-align: top;
    font-size: min(7vw, 30px);
}

#divEvent .record {
    padding: 12px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#divEvent > button,
#divEvent .record > button {
    width: 100%;
    height: 60px;
    font-size: 24px;
}

#divEvent .record input.result {
    width: 100%;
    font-size: 24px;
    margin: 12px 0;
    padding: 4px;
}

#divEvent .record div.result {
    margin: 12px 0;
}

#divContent .record .numberInput {
    margin: 12px 0;
}

#divContent .record .numberInput p {
    margin: 0 0 12px 0;
    font-size: 36px;
    overflow: hidden;
    white-space: nowrap;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
}

#divContent button.mainMenu {
    position: absolute;
    height: 100%;
    right: 0;
    font-size: 20px;
    line-height: 20px;
}

#divContent button.editButton {
    position: absolute;
    height: 100%;
    right: 72px;
    font-size: 13px;
    line-height: 12px;
}

#divContent .results .year {
    margin: 24px 8px;
    border-radius: 12px;
    overflow: hidden;
}

#divContent .results .year .M {
    background-color: #cfe3fd;
}

#divContent .results .year .F {
    background-color: #f9dce9;
}

#divContent .results .year .X {
    background-color: #b6dca7;
}

#divContent .results .year p {
    margin: 0;
    padding: 4px 12px;
    font-size: 1.2em;
    border-radius: 0 0 8px 8px;
    line-height: 0.9em;
}

#divContent .results .year .M p {
    background-color: #6087b9;
    color: #fff;
}

#divContent .results .year .F p {
    background-color: #d485a9;
    color: #fff;
}

#divContent .results .year .X p {
    background-color: #648e52;
    color: #fff;
}

#divContent .results .year p span {
    font-size: 0.6em;
    font-weight: normal;
    margin: 0;
    padding: 0;
}

#divContent .results .year ul {
    margin: 0;
    padding: 4px 0;
}

#divContent .results .year ul li {
    padding: 4px;
}

#divContent .results .year ul li img {
    width: 16px;
    vertical-align: middle;
}

#divContent .results ul span {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    margin: 2px 4px;
    padding: 2px 4px;
    font-size: 14px;
    opacity: 0.85;
    white-space: nowrap;
}

#divContent .results.time ul span {
    background-color: rgba(255, 255, 255, 0.65);
    opacity: 1;
}

#divContent .results span.best {
    background-color: rgba(255, 255, 255, 0.85);
    opacity: 1;
}

#divContent .stopwatch {
    width: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#divContent .stopwatch .left {
    width: 65%;
    display: inline-block;
    vertical-align: top;
}

.selector {
    width: calc(100% / 4 - 4px);
    display: inline-block;
    font-size: 25px;
    text-align: center;
    background-color: #eee;
    border: 2px outset silver;
    line-height: 40px;
    margin: 2px;
}

.selector3 {
    width: calc(100% / 3 - 4px);
}

.selector5 {
    width: calc(100% / 5 - 4px);
    font-size: 20px;
}

.selector.selected {
    background-color: #164e17;
    color: #fff;
}

#divContent .stopwatch .right {
    width: calc(35% - 8px);
    display: inline-block;
    vertical-align: top;
    font-size: min(39px, 7vw);
    text-align: right;
    overflow: hidden;
    white-space: nowrap;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
}

#divContent .stopwatch .right .class {
    width: 50%;
    display: inline-block;
    font-size: 20px;
    text-align: center;
}

#divContent .stopwatch .display {
    font-size: min(60px, 13vw);
    text-align: center;
    font-weight: bold;
}

#divContent .stopwatch .button {
    display: block;
    margin: 14px auto;
    border-radius: 24px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    font-size: 28px;
}

#divResults > div {
    font-size: 3vh;
    margin: 6px 0;
    padding: 6px;
    border-radius: 0 80px 20px 0;
    white-space: nowrap;
}

#divResults .formA {
    background-color: red;
    color: #fff;
}

#divResults .formB {
    background-color: orange;
    color: #000;
}

#divResults .formC {
    background-color: yellow;
}

#divResults .formE {
    background-color: lime;
}

#divResults .formF {
    background-color: blue;
    color: #fff;
}

#divResults .formG {
    background-color: purple;
    color: #fff;
}

#divResults .formH {
    background-color: pink;
    color: #000;
}

#divResults > div > span {
    font-size: 0.7em;
    display: inline-block;
    width: calc(100% / 7);
    text-align: center;
}

#divNetStatus {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5vh;
    text-align: center;
    font-weight: bold;
    font-size: min(5vw, 32px);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

#divNetStatus.status1 {
    background-color: lime;
}

#divNetStatus.status2 {
    background-color: yellow;
}

#divNetStatus.status3 {
    background-color: orange;
}

#divNetStatus.status4 {
    background-color: red;
    color: #fff;
}

button.add-home-screen {
    position: fixed;
    z-index: 100;
    top: 10%;
    width: 80%;
    left: 10%;
    height: 80px;
    background-color: yellow;
    -webkit-box-shadow: 0 0 0 5000px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 5000px rgba(0, 0, 0, 0.5);
}

#divVue.EditMode div.results {
    border: 4px solid red;
}

#divVue.EditMode #divContent button.editButton {
    background: red;
    color: #fff;
}

html .vs__dropdown-menu {
    max-height: var(--dropdown-menu);
}
