body {
    background-color: #777;
    color: white;
    font-size: 15pt;
}

a:any-link {
    text-decoration: none;
    color: #fcc;
}

#body-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 20px;
    background-color: #666;
}

#titlebar {
    font-size: 40pt;
    text-align: center;
    vertical-align: middle;
    line-height: 80px;
    height: 80px;
}

#navbar {
    display: flex;
    flex-direction: row;
    flex: 1;
    margin: 0 0 30px;
}

#quiz-navbar {
    display: flex;
    flex-direction: row;
    flex: 1;
    margin: 0 0 30px;
}

#quiz-div {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: visible;
    min-height: 300px;
}

#quiz-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.quiz-progress {
	display: block;
	font-size: 12px;
	color: #aaa;
	margin-top: 6px;
}

#home {
    flex: 1;
}

.center-space {
    flex-grow: 1;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
}

.login {
    display: flex;
    flex-direction: row;
    flex: 1;
    margin: 0 0 30px;
}

.login-item {
    display: inline-block;
}

.navbar-button {
    display: inline-block;
    padding: 10px 30px;
    color: white;
    border: none;
    text-decoration: none;
}

.navbar-button:hover {
    background-color: #555;
}

.navbar-not-button {
    display: inline-block;
    padding: 10px 20px;
}

.plain-text {
    text-align: center;
    margin: 10px auto;
}

.header-text {
    text-align: center;
}

.login-form {
    text-align: center;
    margin: 30px auto;
}

.quiz-select-container {
    display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    align-items: center;
	gap: 15px;
}

.quiz-select {
    font-size: 18px;
    color: white;
    width: 100%;
    height: 80px;
    text-align: center;
    border-radius: 10px;
}

.quiz-select-color2 {
    background-color: #006040;
}

.quiz-select-color1 {
    background-color: #3a9070;
}

.quiz-select-gray {
    background-color: #666;
}

#quiz-filter {
	display: block;
	margin: 25px auto;
}

.quiz-question {
    text-align: center;
    font-size: 24pt;
    margin: 0 auto 20px;
}

.quiz-answer {
    text-align: center;
}

#quiz-result-block {
    text-align: center;
}

.quiz-correct {
    font-weight: bold;
}

.quiz-incorrect {
    font-weight: bold;
}

.quiz-corrected {
    font-weight: bold;
}

.ans-or {
    color: white;
    font-weight: normal;
    display: inline;
}

button {
    font-size: 18px;
    background-color: #444;
    padding: 10px 30px;
    border: 10px;
    border-radius: 10px;
    margin: 10px;
    color: white;
}

#settings-button {
    color: #fcc;
}

#stats-div {
    display: flex;
    flex-direction: column;
}

.submit-button:focus, .next-button:focus, .end-quiz-button:focus {
    outline: None;
    background-color: #006040;
}

/* Slider input for stats page */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
  }

  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 34px;
  }

  .slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
  }

  input:checked + .slider {
    background-color: #4caf50;
  }

  input:checked + .slider::before {
    transform: translateX(22px);
  }
  /* end slider */

  /* question mark tooltip */
  .tooltip-icon {
    border-radius: 50%;
    background: #000;
    padding: 2px 6px;
    margin-left: 5px;
    font-weight: bold;
  }

@media (max-width: 600px) {
    #body-wrapper {
        padding: 10px;
    }

    #titlebar {
        font-size: 24pt;
        height: auto;
        line-height: 1.2;
        padding: 15px 0;
    }

    #navbar {
		flex-direction: column;
        /* flex-wrap: wrap; */
    }

	.login {
		flex-direction: column;
	}

	#quiz-navbar {
		flex-direction: column;
	}

    .navbar-button {
        padding: 8px 15px;
    }

    .navbar-not-button {
        padding: 8px 10px;
    }

	#result {
		max-width: 100vw - 4rem;
	}
}
