@font-face {
    font-family: ClearSans;
    src: url(ClearSans-Regular.ttf);
  }
@font-face {
    font-family: ClearSansBold;
    src: url(ClearSans-Bold.ttf);
}
#toggleRow {
    flex-wrap: wrap;
}

#listToggleWrapper {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-family: ClearSansBold;
    font-size: 0.9rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.list-label {
    user-select: none;
    text-align: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.4s;
    border-radius: 34px;
    border: 1px solid #F46A4A;
}

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

input:checked + .slider {
    background-color: #F46A4A;
    border-color: #F46A4A;
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: white;
}
.header {
    font-size: x-large;
    font-family: ClearSansBold;
    font-weight: bold;
    padding: 1em;
}
.input_row {
    max-width: 100vw;
}
.empty_status {
    border-style: solid; 
    border-color: #787C7E; 
    border-width: 2px; 
    height: 62px; 
    width: 62px; 
    margin: 1px;
    aspect-ratio: 1 / 1;
    background-color: #e9ecee;
}
.empty_status input {
    margin: -2px;
}
.invalid_status {
    background-color: #787C7E;
    height: 62px; 
    width: 62px; 
    margin: 1px;
    aspect-ratio: 1 / 1;
}
.invalid_status input {
    color: white;
}
.valid_status {
    background-color: #C9B458;
    height: 62px; 
    width: 62px; 
    margin: 1px;
    aspect-ratio: 1 / 1;
}
.valid_status input {
    color: white;
}
.correct_status {
    background-color: #6AAA64;
    height: 62px; 
    width: 62px; 
    margin: 1px;
    aspect-ratio: 1 / 1;
}
.correct_status input {
    color: white;
}
input{
    height: 62px;
    width: 62px;
    border: none;
    background-color: transparent;
    font-family: ClearSans;
    font-weight: 700;
    font-size: 2rem;
    line-height: 62px;
    text-align: center;
    caret-color: transparent;
    text-transform: uppercase;    
    /* color: white; */
}
input:focus {
   outline: none;
}

input::selection {
    background: transparent;
}
.inputs {
    border: none;
}
.btn {
    font-family: ClearSansBold;
    margin: 1em;
}
p {
    font-family: ClearSans;
}
#Instructions {
    margin-top: -0.5em;
    max-width: 500px;
    text-align: center;
}
#Results {
    text-decoration: underline;
}
.modal-body p, .modal-body ul {
  font-family: ClearSans;
  font-size: 1rem;
  color: black;
}
.modal-title {
    color: black;
}
.modal-body {
  padding: 1.5rem;
  color: black;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
body {
  background-color: #1f3b4d;
  color: white;
  flex: 1;
}

#topBar {
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  position: relative;
}

.topbar-side {
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.topbar-side:last-child {
  justify-content: flex-end;
}

.topbar-center {
  font-size: 1.5rem;
  flex: 1;
}

.textOrange {
    color:#F46A4A !important;
}

#mainTitle {
  font-size: 1.8rem;
  font-family: ClearSansBold;
  margin-top: 2em;
  margin-bottom: 1em;
  margin-bottom: 0.25em;
}
#legalTitle {
  font-size: 1.8rem;
  font-family: ClearSansBold;
  margin-top: 2em;
  margin-bottom: 1em;
  margin-bottom: 0.25em;
}
#subTitle {
  padding-bottom: 1em;
}
.btnMain {
    background-color: #F46A4A;
    border: transparent;
    color: white;
}
.btnMain:hover {
    background-color: transparent;
    border: #F46A4A;
    border-width: 1px;
    border-style: solid;
    color: #F46A4A;
}
#footerBranding {
  background-color: #162936; 
  padding: 1em;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: auto;
}

#footerLogo {
  flex-shrink: 0;
}

#footerCopy {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
#mainArea {
  max-width: calc(75px * 5);
  margin: 0 auto;
  width: 100%;
}

.results-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1em;
  width: 100%;
  background-color: #e9ecee;
  border-radius: 0.75rem;
}

.result-badge {
  background-color: #F46A4A;
  color: white;
  font-family: ClearSansBold;
  font-size: 1rem;
  padding: 0.375rem 0.75rem;
  margin: 0.3em;
  border-radius: 0.375rem;
  display: inline-block;
  text-align: center;
  width: 90px;
}
#subTitle {
  font-family: ClearSans;
  color: #e9ecee !important;
  font-size: 1rem;
  margin-top: 0.25em;
  margin-bottom: 0.25em;
}
/* Hamburger Menu Styles */
#ham-menu {
  display: none;
}

label[for="ham-menu"] {
  display: block;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1001;
  width: 50px;
  height: 50px;
  cursor: pointer;
}

label[for="ham-menu"] > div {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.menu-line {
  width: 30px;
  height: 3px;
  margin: 4px 0;
  background-color: white;
  transition: 0.4s;
}

/* Mobile Menu */
#ham-menu {
  display: none;
}

label[for="ham-menu"] {
  display: block;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 999;
  width: 60px;
  height: 60px;
  cursor: pointer;
}

label[for="ham-menu"] > div {
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: column wrap;
  align-content: center;
  align-items: center;
}

.menu-line {
  display: block;
  width: 17px;
  height: 2px;
  margin: 10px 0 5px;
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
  background-color: #ffffff;
  transition: 500ms;
  transform-origin: right center;
}

label[for="ham-menu"] > div > span:nth-child(4),
label[for="ham-menu"] > div > span:nth-child(5),
label[for="ham-menu"] > div > span:nth-child(6) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
  transform-origin: left center;
}

/* Transform hamburger to X */
#ham-menu:checked + label span:nth-child(2),
#ham-menu:checked + label span:nth-child(5) {
  transform: scale(0);
}

#ham-menu:checked + label span:nth-child(1) {
  transform: translateY(17px) rotate(45deg);
}

#ham-menu:checked + label span:nth-child(4) {
  transform: translateY(17px) rotate(-45deg);
}

#ham-menu:checked + label span:nth-child(3) {
  transform: translateY(-17px) rotate(-45deg);
}

#ham-menu:checked + label span:nth-child(6) {
  transform: translateY(-17px) rotate(45deg);
}

/* Slide-in menu */
.ham-menu {
  width: 70vw;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translateX(-100%);
  background-color: #162936;
  z-index: 998;
  transition: transform 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

#ham-menu:checked ~ .ham-menu {
  transform: translateX(0);
}

.ham-menu ul {
  list-style: none;
  padding: 1em;
  display: flex;
  flex-direction: column;
  gap: 1em;
  width: 100%;
  text-align: center;
}

.ham-menu ul li {
  font-size: 1.25rem;
  color: white;
}

.ham-menu #listToggleWrapper {
  justify-content: center;
  text-align: center;
  margin: 0 auto;
  flex-direction: row;
}


/* Desktop top bar hide */
@media (max-width: 768px) {
  #topBar {
    display: none !important;    
  }
  #dictToggle {
    margin-right: 0.5rem;
    padding-top: 0.5rem;
  }
}
@media (min-width: 769px) {
  label[for="ham-menu"] {
    display: none;
  }
}

#bgTexture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('bgImg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.03;
  z-index: -1;
  pointer-events: none;
}
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #162936;
  color: white;
  padding: 1em;
  text-align: center;
  font-size: 0.9em;
  font-family: ClearSans;
  z-index: 9999;
  display: none;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.cookie-link {
  color: #F46A4A;
  text-decoration: underline;
  margin-left: 0.25em;
}

.cookie-button {
  margin-left: 1em;
  background-color: #F46A4A;
  color: black;
  border: none;
  padding: 0.5em 1em;
  cursor: pointer;
  font-family: ClearSansBold;
  border-radius: 4px;
}

.titleLink {
  text-decoration: none;
  color: inherit;
  display: block;
}

.titleLink:hover {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
