body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

h1 {
  margin: 0;
}

.tutor .learner {
  cursor: pointer;
  user-select: none;
}

.big-page {
  transform: scale(1.8) translateY(22%);
  transform-origin: center; /* Ensures scaling starts from the top left */
}

.selected {
  background-color: yellow;
}

button {
  cursor: pointer;
  padding: 5px;
  font-size: large;
  white-space: nowrap;
  border: 2px solid black;
  background-color: white;
  border-radius: 15px;
  user-select: none;
  line-height: 1.75;
}

button.clipboard {
  width: fit-content;
  line-height: initial;
}

button:focus, input:focus {
  outline: 0;
}

button.button1 {
  background-color: lightgreen;
}

button.button2 {
  background-color:lightpink;
}

button.button3 {
  background-color: darkseagreen;
}

.invisible {
  visibility: hidden;
}

.panel {
  padding: 20px;
  border: 2px solid black;
  background-color: #e8e8e8;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  min-height: 15em;
  min-width: 450px;
}

.tutor .panel, .settings .panel {
  background-color: white;  
  min-width: 100px;
}

.section {
  display: flex;
  flex-direction: column;
}

.section.stat-box {
  border: 1px solid #bbb;
  border-radius: 8px;
  padding: 1em;
  background: white;
  min-width: 100px;
}

.main {
  display: flex;
  justify-content: center;
}

.left {
  justify-content: flex-start;
}

.col-gap {
  width: 10px;
  display: inline-block;
  flex: none;
}

.col-gap-small {
  width: 5px;
  display: inline-block;
  flex: none;
}

.section-gap {
  height: 25px;
  display: block;
  flex: none;
}

.row-gap {
  height: 10px;
  display: block;
  flex: none;
}

.row {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.row1 {
  display: flex;
  justify-content: left;
  align-items: center;
  text-align: left;
}

.row2 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.row3 {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

div.status {
  font-size: 6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 6rem;
}

td.status {
  text-align: right;
}

.row button {
  -ms-flex: 1 1 0%1;
  flex: 1 1 0%;
}

input[type=text] {
  width: 100%;
  padding: 5px;
  font-size: large;
  text-align: center;
  border: 2px solid black;
  border-radius: 15px;
  /* line-height: 1.75; */
}

.intro input[type=text] {
  font-size: x-large;
}

.tick {
  color: green;
}

i {
  text-shadow: 2px 2px 3px lightgrey;
}

.cross {
  color: darkred;
}
.smile {
  color: hotpink;
}
.happy {
  color: darkorange;
}
.coffee {
  color: grey;
}
.away {
  color: blue;
}

.working {
  color: #28a745; /* Bootstrap green */
  text-shadow: 0 0 2px rgba(0,0,0,0.8);
}
.issue {
  color: #ffc107; /* Bootstrap yellow/amber */
  text-shadow: 
    -1px -1px 0 grey,  
     1px -1px 0 grey,
    -1px  1px 0 grey,
     1px  1px 0 grey;
}
.help {
  color: #dc3545; /* Bootstrap red */
  text-shadow: 0 0 2px rgba(0,0,0,0.8);
}
.star {
  color: gold;
  text-shadow: 
    -1px -1px 0 black,  
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black;
}

.failed {
  color: darkred;
}
.time-message {
  color: gray;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead, tfoot {
  font-style: italic;
  font-weight: bold;
}

td {
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  border-top: 1px solid lightslategray;
  border-bottom: 1px solid lightslategray;
}

.inactive {
  opacity: 50%;
}

/* draw bars in poll */
/* Base class for blocks */
.block {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 5px;
  background-color: blue;
}
/* green block */
.green-block {
  background-color: green;
}

/* Checkboxes on the tutor screen */
label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 5px 10px;
  border: 2px solid #ccc;
  border-radius: 15px;
  background-color: white;
  user-select: none;
}

label:hover {
  background-color: #f0f0f0;
}

label input[type="checkbox"] {
  margin-right: 8px;
}

label input[type="checkbox"]:checked + span,
label:has(input[type="checkbox"]:checked) {
  background-color: lightblue;
  border-color: blue;
}

/* Tutor page checkboxes */
.checkbox-row {
  display: flex;
  justify-content: flex-start; /* Left align */
  align-items: stretch;
}

.traffic-light {
  font-size: 2em;   /* makes the emoji twice the normal size */
  vertical-align: middle;  /* keeps it aligned with buttons */
}

/* Mobile devices */
@media only screen and (max-width: 420px) {
  .main {
    width: 100%;
  }

  .panel {
    min-width: 100px;
    width: 100%;
  }
}
