@font-face { /* Jost Medium */
  font-family: "Jost Medium";
  src: url("../assets/jost_medium.ttf");
}
@font-face { /* Digit */
  font-family: "Digit";
  src: url("../assets/digit.ttf");
}

* { /*Setting font for everything and reset padding/margin */
  padding: 0;
  margin: 0;
  font-family: "Jost Medium", serif;
}

/*
[left_bar]  = 15vw | 100vh
[top_bar]   = 85vw | 10vh
[main]      = 85vw | 90vh
 */

/* Hide the scrollbar */
body {
  overflow: hidden;
  color: white;
  background-color: #252525;
}


/* ----- BIG CONTAINERS ----- */
/* Left bar (TITLE, MENU, TIMES)*/
.left_bar {
  position: absolute;
  width: 15vw;
  height: 100vh;
  background-color: #444;
}

/* Top bar (SCRAMBLE) */
.top_bar {
  position: absolute;
  right: 0;
  width: 85vw;
  height: 10vh;
  background-color: #393939;
}

/* Main (TIMER, AO5, AO12, MEAN) */
.main {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 90vh;
  width: 85vw;
  background-color: #252525;
}



/* ----- TOP BAR STUFF ----- */
#scramble {
  margin-top: 2vh;
  text-align: center;
  font-size: 2vw;
}

/* ----- LEFT BAR STUFF ----- */
/* -- TITLE STUFF -- */
.title {
  text-align: center;
  font-size: 3.8vw;
}
.desc {
  text-align: center;
  font-size: 1vw;
}

/* -- MENU STUFF -- */
.menu {
  text-align: center;
  width: 90%;
  height: 26vh;
  margin-left: 5%;
}

.button3 {
  background-color: #393939;
  border: none;
  color: white;
  margin-top: 10px;
  position: relative;
  width: 6vw;
  height: 4vh;
  font-size: 1vw;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

.button2 {
  background-color: #393939;
  border: none;
  color: white;
  margin-top: 10px;
  position: relative;
  width: 6vw;
  height: 4vh;
  font-size: 1vw;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.button2:hover {
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

/* -- TIME TABLE STUFF -- */
.timelist_p {
  text-align: center;
}

.top_times {
  font-size: 1vw;
  background-color: #393939;
  width: 90%;
  margin-left: 5%;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  height: 10vh;
}


.time_list {
  font-size: 1vw;
  background-color: #393939;
  width: 90%;
  margin-left: 5%;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  height: 36vh;
  position: absolute;
  bottom: 5%;
  overflow-y: scroll;
  /* scrollbar-width: none;
  -ms-overflow-style: none; */
}

/* Custom scrollbar */
.content::-webkit-scrollbar { width: 10px; }
.content::-webkit-scrollbar-track { background-color: #DDD; }
.content::-webkit-scrollbar-thumb { background-color: #AAA; }

/* Custom scrollbar */
.time_list::-webkit-scrollbar { width: 10px; }
.time_list::-webkit-scrollbar-track { background-color: #333; }
.time_list::-webkit-scrollbar-thumb { background-color: #222; }

/* .time_list::-webkit-scrollbar {
    width: 0;
    height: 0;
} */

.time_list table {
  text-align: center;
  table-layout: auto;
  width: 100%;
}

.time_list td {
  border-bottom: 1px solid #303030;
}

tr td:nth-child(5){
  color: #ff4747;
}

/* #delete {
  color: #ff4747;
} */


/* ----- MAIN STUFF ----- */
#the_timer {
  font-size: 9vw;
  margin-top: 20vh;
  margin-left: 13vw;
  font-family: "Digit", serif;
}

.stats2 {
  width: 100vw;
  padding-left: 9vw;
  padding-bottom: 3vh;
}

.stat_div {
  text-align: center;
  display: inline-block;
  width: 10vw;
}

.stat {
  font-size: 1vw;
  border-bottom: 1px solid #202020;
  color: #636363;
}

.val {
  font-size: 4vw;
  font-family: "Digit", serif;
  color: #636363;
}


.stat_b {
  font-size: 1vw;
  border-bottom: 1px solid #202020;
  color: #414141;
}

.val_b {
  font-size: 1.5vw;
  font-family: "Digit", serif;
  color: #636363;
  display: inline-block;
}

td {
  text-align: center;
}

.top_times table {
  text-align: center;
  table-layout: auto;
  width: 100%;
}


#down_right {
  font-size: 0.7vw;
  position: absolute;
  bottom: 0;
  left: 20%;
  color: #8f8f8f;
}

#down_right img {
  padding-right: 10px;
  vertical-align: middle;
}

a {
  text-decoration: none;
}

canvas {
  position: absolute;
  bottom: 0px;
  right: 0px;
  background-color: #202020;
}


/* POP-UP DIALOG */
.box {
  width: 40%;
  margin: 0 auto;
  background: rgba(255,255,255,0.2);
  padding: 35px;
  border: 2px solid #fff;
  border-radius: 20px/50px;
  background-clip: padding-box;
  text-align: center;
}

.button {
  font-size: 1em;
  padding: 10px;
  color: #fff;
  border: 2px solid #06D85F;
  border-radius: 20px/50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease-out;
}
.button:hover {
  background: #06D85F;
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
  z-index: 1;
}
.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  position: absolute;
  color: black;
  margin: 70px auto;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  width: 30%;
  height: 50%;
  position: relative;
  transition: all 0s ease-in-out;
}

.popup h2 {
  margin-top: 0;
  color: #333;
  font-family: "Jost Medium", serif;
}
.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}
.popup .close:hover {
  color: #06D85F;
}
.popup .content {
  height: 90%;
  overflow: auto;
}

/* ===================== CHECKBOX  ===================== */
/* Customize the label (the container) */
.container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark {
  background-color: #393939;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

#info_message {
  margin-left: 15vw;
}