  body {
    font-family: Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-feature-settings: "calt", "clig", "kern", "liga";
    -webkit-font-smoothing: antialiased;
    background-color: rgb(248, 231, 231);
  }
  @media (max-height: 630px) {
    body {
      padding-bottom: 400px;
    }
  }
  .container {
    max-width: 500px;
    margin: 10px auto;
  }
  h1 {
    font-size: 30px;
    font-weight: 800;
    padding-left: 2px;
    text-align: center;
    font-family: "Hoefler Text", "Baskerville Old Face", "Garamond", "Georgia", "Times New Roman", serif;
  }

  .score-box {
    max-width: 500px;
    width: 80%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: auto;
    margin-bottom: 20px;
    border: 0px solid black;
    border-radius: 4px;
    background-color: rgba(0, 177, 135, 0.25);
  }

  .score-el {
    /* border:1px solid black;
    border-radius: 4px; */
    padding: 20px;
    font-size: 20px;
    text-align: center;
  }

  .score-el-text {
    font-weight: bold;
    padding: 4px;
  }

  .dropdown-container {
    position: absolute;
    right: 0px;
    top: 0px;
    padding-right: 15px;
  }
  .hamburger {
    font-size: 28px;
    font-weight: 400;
    line-height: 0px;
    position: relative;
    top: 19px;
    right: 5px;
    padding: 0px 0px 40px 13px;
  }
  .dropdown-nav {
    display: none;
    position: absolute;
    z-index: 9999;
    right: 15px;
    background: #fff;
    border-radius: 3px;
    box-shadow: rgb(15 15 15 / 5%) 0px 0px 0px 1px, rgb(15 15 15 / 10%) 0px 3px 6px, rgb(15 15 15 / 20%) 0px 9px 24px;
  }
  .dropdown-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    width: fit-content;
    min-width: 180px;
  }
  .dropdown-nav li a {
    padding: 3px 10px;
    text-decoration: none;
    display: block;
    color: #000;
    font-weight: 500;
    padding: 5px 10px;
  }
  .dropdown-nav li:first-child a {
    padding-top: 10px;
  } 
  .dropdown-nav li:last-child a {
    padding-bottom: 6px;
  } 
  .dropdown-nav li a:hover {
    background: #f5f5f5;
  }
  .dropdown-container:hover .dropdown-nav {
    display: block;
  }
  .dropdown-nav li label {
    padding: 3px 10px 10px 10px;
    font-weight: 500;
    display: inline-block;
  }
  .dropdown-nav li label input[type=checkbox] {
    margin-left: 0;
    position: relative;
    top: 1px;
  }
  .brand a {
    padding-top: 10px;
    padding-bottom: 10px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    font-family: "Hoefler Text", "Baskerville Old Face", "Garamond", "Georgia", "Times New Roman", serif;
  }
  .brand span {
    display: block;
    color: #666;
  }
  .brand .every img {
    margin-top: 4px;
    height: 24px;
  }
  @media (max-width: 400px) {
    .hamburger {
      top: 25px;
    }
    .dropdown-nav {
      top: 50px !important;
    }
  }
  #word-inputs {
    user-select: none;
    vertical-align: top;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    width: fit-content;
    max-width: 100%;
  }
  .word-row {
    display: flex;
    flex-direction: row;
  }
  .letter {
    touch-action: manipulation;
    vertical-align: top;
    user-select: none;
    font-size: 21px;
    width: 21px;
    height: 21px;
    line-height: 21px;
    display: inline-block;
    text-align: center;
    border-radius: 5px;
    margin: 2px;
    border: 1px solid rgb(128, 117, 117);
    text-transform: uppercase;
    padding: 4px;
    transition: all 0.2s;
    font-weight: 700;
  }
  .letter.blank {
    border-color: transparent;
  }
  @media (min-width: 450px) and (max-width: 550px) {
    .letter {
      font-size: 24px;
      width: 24px;
      height: 24px;
      line-height: 24px;
      margin: 2px;
    }
  }
  @media (min-width: 550px) {
    .letter {
      font-size: 30px;
      width: 30px;
      height: 30px;
      line-height: 30px;
      margin: 3px;
    }
  }
  .letter:focus {
    outline: none;
  }
  .letter.active {
    outline: none;
    border-color: #000;
    transform: scale(1.05);
    box-shadow: 0px 2px 4px rgba(0,0,0,0.2);
  }
  .valid {
    color: #00B187;
  }
  .high-contrast .valid:after {
    content: '✓';
    position: relative;
    bottom: 1em;
    font-size: 12px;
  }
  .semivalid {
    color: orange;
  }
  .high-contrast .semivalid {
    color: #00b7ff;
  }
  .high-contrast .semivalid:after {
    content: '–';
    position: relative;
    bottom: 1em;
    font-size: 12px;
  }
  .invalid {
    color: #FF303C;
  }
  .high-contrast .invalid:after {
    content: '✗';
    position: relative;
    bottom: 1em;
    font-size: 12px;
  }
  .hint {
    font-weight: normal;
    color: #777;
    display: inline-block;
    vertical-align: middle;
    height: 20px;
    line-height: 20px;
    margin: 3px;
    user-select: none;
    /* transition: all 0.2s; */
    padding: 3px 4px 4px 4px;
    font-size: 14px;
    display: none;
  }
  .hide {
    opacity: 0;
    display: none;
  }
  .keyboard-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(248, 231, 231);
  }
  .links {
    max-width: 500px;
    margin: 0 auto;
    padding: 6px 0 12px 0;
  }
  
  .nav {
    text-align: center;
  }

  #load-game, #random-game, #show-how-to {
    font-size: 12px;
    text-align: center;
    color: blue
  }
  
  #scorecard {
    border-collapse: collapse;
    margin-top: 20px;
    width: 100%;
    font-size: 15px;
    margin-bottom: 10px;
    user-select: none;
  }
  @media (max-width: 320px) {
    .scorecard-container {
      overflow-x: scroll;
    }
    #scorecard {
      font-size: 12px;
    }
    .links a {
      font-size: 12px;
      padding: 4px 0px;
    }
  }
  #scorecard th, #scorecard td {
    padding: 5px;
    border-top: 1px solid #ccc;
  }
  #scorecard th {
    text-align: left;
    padding-left: 10px;
  }
  #scorecard td {
    font-weight: 400;
    min-width: 21px;
    text-align: center;
    border-left: 1px solid #ccc;
  }
  #scorecard #word-row td {
    font-weight: 700;
  }
  #keyboard, #scorecard {
    max-width: 500px;
    margin: 0 auto;
  }
  #scorecard .focus {
    background: #fffccd;
  }
  .high-contrast #scorecard .valid, .high-contrast #scorecard .semivalid, .high-contrast #scorecard .invalid {
    color: #000;
  }
  .high-contrast #scorecard .valid:after, .high-contrast #scorecard .semivalid:after, .high-contrast #scorecard .invalid:after {
    content: '';
    display: none;
  }
  #keyboard {
    padding: 8px 0px 1px 6px;
    user-select: none;
    background: #ddd;
    border-radius: 10px 10px 0 0;
  }
  @media (max-width: 500px) {
    #keyboard {
      border-radius: 0;
      border-top: 1px solid #ccc;
    }
  }
  .row {
    display: flex;
    width: 100%;
    margin: 0 auto 6px;
    touch-action: manipulation;
  }
  .key {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #000;
    font-size: 19px;
    font-weight: 500;
    border: 0;
    padding: 0;
    margin: 0 5px 0 0;
    height: 46px;
    border-radius: 7px;
    cursor: pointer;
    user-select: none;
    background-color: #fff;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    -webkit-tap-highlight-color: rgba(0,0,0,0.3);
    box-shadow: 0px 1px 1px rgba(0,0,0,0.3);
    transition: all 0.2s;
  }
  .key.valid {
    background-color: #00B187;
    color: #fff;
  }
  .key.semivalid {
    background-color: orange;
    color: #fff;
  }
  .high-contrast .key.semivalid {
    background-color: #00b7ff;
  }
  .key.invalid {
    background-color: #FF303C;
    color: #fff;
  }
  .key[data-key='backspace'] {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 400;
  }
  .links {
    font-size: 14px;
    text-align: left;
    user-select: none;
  }
  .links a {
    color: #888;
    margin: 0px 10px;
  }
  #show-hint {
    float: right;
  }
  .how-to-play.container {
    text-align: center;
    max-width: 400px;
    font-family: "Signifier", "Hoefler Text", "Baskerville Old Face", "Garamond", "Georgia", "Times New Roman", serif;
  }
  .how-to-play #icon {
    width: 100px;
    height: 100px;
  }
  .how-to-play h1 {
    font-size: 24px;
  }
  .how-to-play ol {
    margin: 0;
    padding: 0 0 10px 10px;
  }
  .how-to-play ol li {
    text-align: left;
    font-weight: 400;
    margin: 10px;
    font-size: 17px;
  }
  .btn {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 10px 15px 12px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  }
  
  .modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 100%;
    display: none;
  }
  .modal-container.show {
    display: block;
  }
  .modal-container .overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  #how-to-play .overlay {
    background: rgba(255,255,255,0.7);
  }
  #won-game .overlay {
    background: rgba(1, 177, 135, 0.85)
  }
  #lost-game .overlay {
    background: rgba(196, 16, 85, 0.85)
  }
  .modal-container .modal {
    background: #fff;
    position: fixed;
    top: 20%;
    width: 300px;
    left: 50%;
    margin-left: -150px;
    border-radius: 5px;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: rgba(15, 15, 15, 0.05) 0px 0px 0px 1px, rgba(15, 15, 15, 0.1) 0px 3px 6px, rgba(15, 15, 15, 0.2) 0px 9px 24px;
  }
  #won-game .modal {
    background: none;
    box-shadow: none;
    color: #fff;
  }
  #lost-game .modal {
    background: none;
    box-shadow: none;
    color: #fff;
  }
  #won-game .modal h1 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 40px;
  }
  #lost-game .modal h1 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 40px;
  }
  #won-game .modal p {
    font-size: 20px;
  }
  #lost-game .modal p {
    font-size: 20px;
  }
  #won-game .modal .copy-fadeout {
    font-size: 16px;
    animation: fadeOut 2s linear 1s forwards;
  }
  #lost-game .modal .copy-fadeout {
    font-size: 16px;
    animation: fadeOut 2s linear 1s forwards;
  }
  .modal-container .modal ol {
    text-align: left;
  }
  .modal-container .modal li {
    margin-bottom: 10px;
  }
  
  @keyframes fadeOut {
    from {
      opacity: 1;
    }
  
    to {
      opacity: 0;
    }
  }