* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "ABeeZee", sans-serif;
  }
  
  .bg {
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: row nowrap;
    text-align: center;
  }
  
  .bg1 {
    top: 0;
    left: 0;
    background-image: url(../assets/fields.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    display: flex;
    flex-flow: row wrap;
    row-gap: 20px;
    justify-content: space-between;
    width: 100vw;
    height: 100vh;
    z-index: -5;
  }
  
  #audioPlayer {
    display: none;
  }
  
  .upper {
    display: flex;
    flex-flow: row wrap;
    width: 100vw;
    height: 15vh;
    align-items: center;
    justify-content: center;
  }
  
  .mid {
    display: block;
    width: 100vw;
  }
  
  .lower {
    display: flex;
    padding: 0;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    flex-flow: row wrap;
    position: absolute;
    top: 30%;
  }
  
  body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    flex-direction: row;
  }
  
  h1 {
    text-align: center;
    font-size: 1.7em;
    font-family: monospace;
    padding: 0.7em;
  }
  
  .keyboard {
    text-align: center;
    font-size: 2px;
    width: 100vw;
    font-family: sans-serif;
    position: absolute;
    bottom: 5vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .windows-key {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
  }
  
  .win-logo {
    width: 49%;
    height: auto;
  }
  
  .home-key-1::after,
  .home-key-2::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 1vw;
    height: 0.5vh;
    background-color: black;
    transform: translateX(-50%);
    border-radius: 3px;
  }
  
  .home-key-1,
  .home-key-2 {
    line-height: 2.8em;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
  }
  
  .home-key-1 {
    background-color: rgb(255, 189, 202) !important;
  }
  
  .home-key-2 {
    background-color: rgb(245, 112, 112) !important;
  }
  
  .keyboard__row {
    display: inline-block;
    height: 3em;
    margin: 0.7em;
  }
  
  .keyboard__row--h1 {
    height: 1.7em;
    line-height: 1.4em;
  }
  
  .keyboard__row--h3 {
    height: 3.3em;
  }
  
  .keyboard__row > * {
    position: relative;
    background: white;
    text-align: center;
    color: #030000;
    float: left;
    border-radius: 0.3em;
    margin: 0.2em;
    padding: 0.2em;
    width: 4em;
    height: 120%;
    box-sizing: border-box;
    cursor: pointer;
    background-origin: padding-box;
    border: 1px solid #000000;
    box-shadow: 0 0.2em 0 0.05em #222;
    border-bottom-color: #555;
  }
  
  .keyboard__row--h1 > div {
    width: 3.5em;
  }
  
  .keyboard__row > div[data-pressed],
  .keyboard__row > div:active {
    background: whitesmoke;
    color: black;
    position: relative;
    top: 0.2em;
    box-shadow: 0 0 0 0.05em black;
  }
  
  .key--w3 { width: 4.6em; }
  .key--w4 { width: 6em; }
  .key--w5 { width: 7.2em; }
  .key--w6 { width: 9.3em; }
  .key--space { width: 22em; }
  
  .key--double > *,
  .key--double-1,
  .key--double-2,
  .key--double-3 {
    padding-top: 0.2em;
  }
  
  .key--double-1 { background-color: rgb(78, 197, 244) !important; }
  .key--double-2 { background-color: rgb(198, 231, 245) !important; }
  .key--double-3 { background-color: rgb(53, 233, 229) !important; }
  
  .key--letter-1,
  .key--letter-2,
  .key--letter-3,
  .key--letter-4,
  .key--letter-5 {
    line-height: 2.8em;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
  }
  
  .key--letter-1 { background-color: rgb(78, 197, 244) !important; }
  .key--letter-2 { background-color: rgb(53, 233, 229) !important; }
  .key--letter-3 { background-color: rgb(198, 231, 245) !important; }
  .key--letter-4 { background-color: rgb(255, 189, 202) !important; }
  .key--letter-5 { background-color: rgb(245, 112, 112) !important; }
  
  .key--bottom-left > * {
    position: absolute;
    text-align: left;
    bottom: 0.4em;
    left: 0.4em;
  }
  
  .key--bottom-right > * {
    position: absolute;
    text-align: right;
    bottom: 0.4em;
    right: 0.4em;
  }
  
  .active-border {
    border: 2px solid #000000;
  }
  
  .key--fn > * {
    font-size: 0.6em;
    line-height: 1em;
    padding-top: 1.2em;
    padding-right: 0.2em;
    text-align: right;
    float: right;
  }
  
  .key--word > * {
    font-size: 1.1em;
  }
  
  .key--arrow--tall > *,
  .key--arrow > * {
    font-size: 0.5em;
    line-height: 3em;
  }
  
  .key--arrow {
    height: 1.8em;
    margin-top: 1.7em;
    line-height: 0.5em;
  }
  
  .key--arrow--tall > * {
    padding-top: 0.2em;
  }
  
  .keyboard > .keyboard__row {
    text-align: center;
  }
  
  .lowmid {
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
    align-items: center;
  }
  
  #message {
    font-weight: bold;
    text-align: center;
    font-size: 2.5vh;
    color: #333;
  }
  
  #text-display {
    border: 1px solid#333;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 12vh;
    border-radius: 2vh;
    width: 60vw;
    font-size: 2vw;
    color: rgb(7, 1, 1);
    text-align: center;
  }
  
  #textToType {
    font-size: 3vh;
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif ;
    
}
  
  #timer {
    font-weight: bold;
    text-align: center;
    font-size: 2.6vh;
    color: #333;
    margin: 1vh 0;
  }
  
  @media (max-width: 768px) {
    .keyboard {
      flex-direction: column;
      align-items: center;
    }
    #text-display {
      font-size: 4vw;
    }
    #timer {
      font-size: 3.5vw;
    }
  }
  
  .vvlogo {
    position: absolute;
    left: 3vh;
    width: 10vw;
  }
  
  .inclogo {
    position: absolute;
    right: 3vh;
    width: 10vw;
  }
  
  .lefthand-img,
  .right-hand-img {
    width: 8vw;
    position: relative;
  }
  
  .flip {
    transform: scaleX(-1);
  }
  
  .blur {
    position: absolute;
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    backdrop-filter: blur(10px);
    background-color: rgba(13, 13, 13, 0.5);
    z-index: 1;
  }
  
  .mascot {
    position: absolute;
    z-index: 3;
    height: 75vh;
    top: 15%;
    left: 15%;
  }
  
  .congrats-text {
    position: absolute;
    z-index: 3;
    font-size: 5vh;
    color: rgb(183, 231, 249);
    top: 22vw;
    right: 2vw;
    text-align: right;
  }
  
  .btn {
    padding: 15px 25px;
    position: absolute;
    text-align: center;
    z-index: 3;
    height: 50px;
    width: 125px;
    background-color: rgb(211, 211, 211);
    border: 4px solid #f0ba30;
    text-decoration: none;
    color: black;
  }
  
  .restart-btn {
    right: 45vw;
    top: 45%;
  }
  
  .next-btn {
    right: 45vw;
    top: 55%;
  }
  
  .hidden {
    display: none;
  }
  
  .vol-img {
    width: 3vh;
    border-radius: 50%;
  }
  
  #voiceToggle {
    font-size: 1.5vh;
    position: static;
    left: 2vh;
  }
  
  .vol-btn {
    padding: 5px;
    border-radius: 50%;
    position: absolute;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  .volume {
    position: fixed;
    border-radius: 50%;
    top: 62%;
    margin-left: 2.5vw;
  }
  
  .vv {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-size: 3vh;
    align-items: center;
  }
  
  .inc {
    margin-top: -2vw;
    font-size: 3vh;
    align-items: center;
  }
  
  .logos {
    text-align: center;
    color: rgb(83, 83, 83);
    height: 10vh;
  }
  
  .home-button-container {
    position: fixed;
    bottom: 20%;
    left: 3vh;
    transform: translateX(-50%);
    z-index: 1;
  }
  
  .home-link {
    display: flex;
    align-items: center;
    padding: 1vw 1vh;
    font-size: 2vh;
    transition: all 0.3s ease;
  }
  
  .home-link:hover {
    background-color: lab(94.02% -0.33 0.1);
    transform: scale(1.05);
  }
  
  .home-link img {
    filter: none;
    opacity: 1;
  }
  
  .home-text {
    display: inline-block;
  }
  #switch {
  position: fixed;
  bottom: 2vw;
  right: 2vw;
  z-index: 1000;
  background-color: #ffd700;
  color: #000;
  border: none;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 1.3vh;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

#switch:hover {
  background-color: #ffcc00;
  transform: scale(1.05);
}