.center {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
}

.dropdown {
    position: relative;
}

.dropdown img {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 100px;
    overflow: auto;
    z-index: 1;
    top: 5px;
    right: 48px;
    border-radius: 15px;
}

.dropdown-content span {
    padding: 10px 14px;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.normal-icon {
    display: block;
    width: 48px;
    height: 48px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.normal-icon a {
    height: 38px;
    width: 38px;
    text-align: center;
}

.normal-icon img {
    cursor: pointer;
    max-height: 38px;
    max-width: 38px;
}

/* reusable component */

@import "component.css";

/* themes */

@import "theme.css";

/* trigger by Javascript*/

@import "trigger.css";

/* body */

html {
    height: 100%;
}

body {
    font-family: Arial;
    visibility: hidden;
    transition: background-color, color 0.3s;
    min-height: 100%;
    margin: 0;
}


/* by-Id */

#setting-panel {
    position: fixed;
    top: 10px;
    right: 10px;
}

#thebody {
    width: 100vw;
    height: 100vh;
}

#timer {
    width: 900px;
    position: relative;
}

#timer-content {
    width: 900px;
}

#timer-body {
    height: 270px;
    margin-bottom: 50px;
}

#timer-value {
    font-size: 200px;
    display: block;
    position: absolute;
    right: 50px;
}

#timer-value span {
    float: left;
}

#timer-value span.editable-field {
    width: 230px;
    text-align: center;
    outline: none;
}

#msec {
    font-size: 100px;
    display: block;
    position: absolute;
    right: 60px;
    top: 185px;
    width: 180px;
    text-align: right;
}

#btn1 {
    background-color: #0C0;
}

#btn2 {
    background-color: #F00;
}

#timer-btns {
    height: 90px;
    /* max-height: 0; */
    text-align: center;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: space-around;
    -ms-flex-pack: justify;
    justify-content: space-around;
    -webkit-align-content: flex-start;
    -ms-flex-line-pack: start;
    align-content: flex-start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
    padding: 0 60px;
}

#timer-btns>* {
    font-size: 30px;
    font-weight: bolder;
    border-radius: 16px;
    cursor: pointer;
    width: 190px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    user-select: none;
    -ms-user-select: none;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
    transition: background 0.5s;
    position: relative;
    color: white !important;
}

#timer-btns>* .tooltiptext {
    visibility: hidden;
    width: 150px;
    text-align: center;
    border-radius: 6px;
    padding: 9px 8px;
    position: absolute;
    z-index: 1;
    top: 110%;
    left: 50%;
    margin-left: -82px;
    font-size: 20px;
    line-height: 20px;
}

#timer-btns>* .tooltiptext::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
}

#timer-btns>.disabled:hover>.tooltiptext {
    visibility: visible;
}

.dark {
    background-color: black;
	background-image:url(./../img/back_light.svg);
	background-size: 50vh;
	background-repeat: no-repeat;
	background-position: right;
    color: white;
    visibility: visible;
}

.dark .dropdown-content {
    background-color: #222;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

.dark .dropdown-content span:hover {
    background-color: #333;
}

.dark .disabled {
    background-color: gray !important;
}

.dark #timer-btns>* .tooltiptext {
    background-color: white;
    color: black;
}

.dark #timer-btns>* .tooltiptext::after {
    border-color: transparent transparent white transparent;
}

.dark .normal-icon:hover img {
    filter: brightness(1.4);
}

.dark .highlight {
    animation-name: dark-highlight;
    animation-duration: 0.5s;
}

@keyframes dark-highlight {
    0% {
        transform: scale(1.0);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(2);
    }
    100% {
        transform: unset
    }
}

.light {
    background-color: white;
	background-image:url(./../img/back_light.svg);
	background-size: 50vh;
	background-repeat: no-repeat;
	background-position: right;
    color: black;
    visibility: visible;
}

.light .dropdown-content {
    background-color: #DDD;
    box-shadow: 0px 8px 16px 0px rgba(255, 255, 255, 0.2);
}

.light .dropdown-content span:hover {
    background-color: #CCC;
}

.light .disabled {
    background-color: #555 !important;
}

.light #timer-btns>* .tooltiptext {
    background-color: #333;
    color: white;
}

.light #timer-btns>* .tooltiptext::after {
    border-color: transparent transparent #333 transparent;
}

.light .normal-icon:hover img {
    filter: brightness(0.6);
}

.light .highlight {
    animation-name: light-highlight;
    animation-duration: 0.5s;
}

@keyframes light-highlight {
    0% {
        transform: scale(1.0);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(0);
    }
    100% {
        transform: unset
    }
}

.hide-optional {
    cursor: none;
}

.hide-optional .optional {
    display: none !important;
}

.disabled {
    cursor: not-allowed !important;
}

.times-up {
    animation-name: text-shining; 
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

@keyframes text-shining {
    0% {
        /* visibility: hidden; */
        opacity: 1;
    }
    50% {
        /* visibility: hidden; */
        opacity: 0.5;
    }
    100% {
        /* visibility: unset; */
        opacity: 1;
    }
}

footer {
    padding: 10px;
    background: #172948;
    color: white;
    display: block;
	text-align: center;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
}
