* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f6ff;
  color: #1a3e78;
  margin: 0;
  padding: 0;
}

h1 {
  text-align: center;
  font-size: 58px;
  margin-left: 20px;
  color: #1a3e78;
}

.main-image {
  width: 100px;
  height: 100px;
}

table {
  margin-left: 0;
  border: 1px solid #1a3e78;
  border-collapse: collapse;
}

td {
  width: 100px;
  height: 40px;
  border: 1px solid #1a3e78;
}

#threshold {
  font-weight: bold;
  font-size: 20px;
}

button {
  width: 48%;
  height: 100%;
  font-size: 158px;
  background-color: #3083dc;
  border: none;
  color: #fff;
  outline: none;
  margin: 10px;
  cursor: pointer;
}

button:hover {
  background-color: #1a5fb4;
}

#apply-custom {
  width: auto;
  height: auto;
  font-size: 20px;
  padding: 5px 10px;
}

#restart-button {
  font-size: 24px;
  background-color: #1a5fb4;
  border: none;
  color: #fff;
  outline: none;
  margin: 10px;
}


#export-button {
  font-size: 24px;
  background-color: #3083dc;
  color: #fff;
  border: none;
  outline: none;
  margin: 10px;
  padding: 10px 16px;
}

#left-button {
  background-color: #3083dc;
}

#right-button {
  background-color: #1a73e8;
}

div {
  width: 100%;
  text-align: center;
}

#search-div {
  margin: 10px 0;
}

.search-wrapper {
  display: -webkit-flex;
  display: flex;
  justify-content: center;
}

#search-bar {
  font-size: 20px;
  padding: 5px 40px 5px 10px;
  background: #fff url('../updownreader-logo.png') no-repeat right 10px center;
  background-size: 24px 24px;
  border: 1px solid #1a3e78;
  border-radius: 4px 0 0 4px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

#restart-div {
  display: block;
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 24px;
  }
  button {
    display: inline-block;
    font-size: 50px;
  }
  #button-div {
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #left-button,
  #right-button {
    width: 90%;
    margin: 10px auto;
    font-size: 60px;
  }
  #restart-button {
    font-size: 24px;
  }
  #submit-button {
    font-size: 24px;
  }
  .main-image {
    width: 30px;
    height: 30px;
  }
}

#custom-container input {
  width: 70px;
  margin: 5px;
}

#mouse-settings {
  margin-bottom: 10px;
}

#mice-wrapper {
  display: -webkit-flex;
  display: flex;
  align-items: flex-start;
}

#mouse-selectors {
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  margin-right: 10px;
}

.mouse-selector {
  padding: 2px 4px;
  border: 1px solid #1a3e78;
  margin-bottom: 5px;
  cursor: pointer;
  width: 40px;
  font-size: 14px;
  text-align: center;
}

.mouse-selector.active {
  background-color: #b0d4f1;
}

