body{margin: 0;}


@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,600,400italic);
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-font-smoothing: antialiased;
  -o-font-smoothing: antialiased;
  font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-weight: 100;
  font-size: 12px;
  line-height: 30px;
  color: #777;
  background: #ffffff;
}

.container {
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

#chess_timer input[type="text"],
#chess_timer input[type="email"],
#chess_timer input[type="tel"],
#chess_timer input[type="url"],
#chess_timer textarea,
#chess_timer button[type="submit"] {
  font: 400 12px/16px "Roboto", Helvetica, Arial, sans-serif;
}

#chess_timer {
  background: #F9F9F9;
  padding: 25px;
  margin: auto;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}

#chess_timer h3 {
  display: block;
  font-size: 30px;
  font-weight: 300;
  margin-bottom: 10px;
}

#chess_timer h4 {
  margin: 5px 0 15px;
  display: block;
  font-size: 13px;
  font-weight: 400;
}

fieldset {
  border: medium none !important;
  margin: 0 0 10px;
  min-width: 100%;
  padding: 0;
  width: 100%;
}

#chess_timer input[type="text"],
#chess_timer input[type="number"],
#chess_timer input[type="email"],
#chess_timer input[type="tel"],
#chess_timer input[type="url"],
#chess_timer textarea {
  width: 100%;
  border: 1px solid #ccc;
  background: #FFF;
  margin: 0 0 5px;
  padding: 10px;
}

#chess_timer input[type="text"]:hover,
#chess_timer input[type="number"]:hover,
#chess_timer input[type="email"]:hover,
#chess_timer input[type="tel"]:hover,
#chess_timer input[type="url"]:hover,
#chess_timer textarea:hover {
  -webkit-transition: border-color 0.3s ease-in-out;
  -moz-transition: border-color 0.3s ease-in-out;
  transition: border-color 0.3s ease-in-out;
  border: 1px solid #aaa;
}

#chess_timer textarea {
  height: 100px;
  max-width: 100%;
  resize: none;
}

#chess_timer button[type="submit"] {
  cursor: pointer;
  width: 100%;
  border: none;
  background: #4CAF50;
  color: #FFF;
  margin: 0 0 5px;
  padding: 10px;
  font-size: 15px;
}

#chess_timer button[type="submit"]:hover {
  background: #43A047;
  -webkit-transition: background 0.3s ease-in-out;
  -moz-transition: background 0.3s ease-in-out;
  transition: background-color 0.3s ease-in-out;
}

#chess_timer button[type="submit"]:active {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.copyright {
  text-align: center;
}

#chess_timer input:focus,
#chess_timer textarea:focus {
  outline: 0;
  border: 1px solid #aaa;
}

::-webkit-input-placeholder {
  color: #888;
}

:-moz-placeholder {
  color: #888;
}

::-moz-placeholder {
  color: #888;
}

:-ms-input-placeholder {
  color: #888;
}
.form_inner{padding:20px 0;margin: auto;    width: 100%;}

.wrapper_all{margin: auto;max-width: 500px;}
.wrapper_box{height: 100vh;position: relative;width: 100%;}
.wrapper_box .first_box{transition: background 1.5s;z-index:1;height: 50%;position: absolute;width: 100%;    background: #8B8987;top: 0;left: 0;bottom: 20px solid #686868;}
.wrapper_box .first_box .overlay{height:100%;width: 100%; position:absolute; left: 0;top: 0;}
.wrapper_box .second_box{transition: background 1.5s;z-index:1;height: 50%;position: absolute;width: 100%;    background: #8B8987;top: 50%;left: 0;border-top: 20px solid #686868;}
.wrapper_box .second_box .overlay{height:100%;width: 100%; position:absolute; left: 0;top: 0;}
.wrapper_box .middle_box{z-index:3;height: 200px;position: absolute;width: 100px;top: 50%;right:0;transform: translateY(-50%);    background: #252525;
    border-radius: 10px;}
.wrapper_box .first_box.running,.wrapper_box .second_box.running{background: #7FA650;}

.wrapper_box  .timer{
    position: absolute;
    left: 50%;
    top: 50%;font-size: 100px;
    transform: translate(-50%, -50%);}
.wrapper_box .first_box .timer{transform: translate(-50%, -50%) rotate(180deg);}
.wrapper_box .first_box .timer,.wrapper_box .second_box .timer{color: #757371;    font-weight: bold;}
.wrapper_box .first_box.running .timer,.wrapper_box .second_box.running .timer{color: white;}
.wrapper_box .middle_box .timer{font-size: 40px;transform: translate(-50%, -50%) rotate(270deg);    font-weight: bold;    color: white;}
.d-none{display:none !important;}
.wrapper_form{    display: flex;
    height: 100vh;}


.wrapper_box .first_box.first_warning,.wrapper_box .second_box.first_warning{background: #aa0000;}
.wrapper_box .first_box.second_warning,.wrapper_box .second_box.second_warning{background: red;}





.select-wrapper {
  position: relative;
  width: 100%;
}
.select-wrapper::after {
  color: black;
  content: "▾";
  margin-right: 10px;
  pointer-events: none;
  position: absolute;
  right: 10px;
  top: 6px;
  font-size: 18px;
}

.select {
    border: 1px solid #ccc;
  -moz-appearance: none;
  -webkit-appearance: none;
  background: #eaeaea;
  border: none;
  border-radius: 0;
  cursor: pointer;
  padding: 12px;
  width: 100%;
  font-size: 18px;
  border-radius: 5px;
}
.select:focus {
  color: black;
}
.select::-ms-expand {
  display: none;
}
label{
    font-size: 16px;
}

.wrapper_game_over{    height: 100vh;
    background: #EEEEEE;
    display: flex;
    margin: auto;
    align-items: center;}
.wrapper_game_over img{    width: 100%;
    height: auto;
}