body {
    font-family: Arial, sans-serif;
    text-align: center;
   background: linear-gradient(135deg, #fa95ec, cyan, rgb(245, 126, 126));
  
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
  }
  
  .container {
    margin: 20px;
    padding: 20px;
    max-width: 800px;
    width: 90%;
  }
  
  .game-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .hangman-container {
    width: 40%;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hangman-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .word-and-keyboard {
    width: 55%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .word-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  svg {
    margin: 20px auto;
    display: block;
  }
  
  svg line,
  svg circle {
    visibility: visible;
  }
  
  .hidden {
    visibility: hidden;
  }
  
  .blanks_parent {
    display: flex;
    justify-content: center;
    align-items: end;
    margin-top: 20px;
    flex-wrap: wrap;
  }
  
  p {
    font-size: 30px;
    text-align: center;
    border-bottom: 2px solid black;
    height: 40px;
    width: 40px;
    font-weight: bold;
    margin: 5px;
  }
  
  .keyboard-parent {
    margin-bottom: 10px;display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .keyboard-row {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
  }
  
  .letter-button {
    background-color: #fdc500;
    border: none;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 5px;
    width: 50px;
    height: 50px;
    margin: 5px;
    padding: 6px 10px;
    transition: 0.3s ease-in-out;
    animation: rgbGlow 2s infinite alternate;
  }
  
  .letter-button:hover {
    background-color: #ebb902;
    cursor: pointer;
    transform: scale(1.1);
  }
  
  @keyframes rgbGlow {
    0% {
        box-shadow: 0 0 10px red;
    }
    25% {
        box-shadow: 0 0 10px yellow;
    }
    50% {
        box-shadow: 0 0 10px cyan;
    }
    75% {
        box-shadow: 0 0 10px lime;
    }
    100% {
        box-shadow: 0 0 10px magenta;
    }
  }
  
  .greenBtn,
  .greenBtn:hover {
    background-color: green;
    color: white;
    box-shadow: 0 0 15px green;
  }
  
  .redBtn,
  .redBtn:hover {
    background-color: red;
    color: white;
    box-shadow: 0 0 15px red;
  }
  
  .hint-area {
    margin: 10px auto;
    font-style: italic;
    width: 90%;
    box-sizing: border-box;
    border: 2px solid rgb(250, 50, 150);
    padding: 5px 10px;
    text-align: center;
    font-weight: bold;
    display: inline-block;
    color: rgb(10, 10, 10);
  }
  
  /* Modal Style */
  .game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .game-modal .content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
  }
  
  .game-modal img {
    max-width: 100px;
    margin-bottom: 10px;
  }
  
  .game-modal h4 {
    margin-bottom: 20px;
  }
  
  .game-modal .play-again {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
  }
  
  .game-modal.hidden {
    display: none;
  }
  
  .guesses-text {
    margin-bottom: 10px;
    color: rgb(10, 10, 10);
    border: 3px solid rgba(248, 43, 197, 0.979);
    padding: 7px 13px;
  }
  
  @media (max-width: 1024px) {
    .game-area {
        flex-direction: column;
        align-items: center;
    }
  
    .hangman-container,
    .word-and-keyboard {
        width: 90%;
    }
  
    .letter-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
  
    p {
        font-size: 25px;
        height: 35px;
        width: 35px;
    }
  }
  
  @media (max-width: 768px) {
    .game-area {
        flex-direction: column;
    }
  
    .hangman-container,
    .word-and-keyboard {
        width: 100%;
    }
  
    .letter-button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
  
    p {
        font-size: 20px;
        height: 30px;
        width: 30px;
    }
  }
  
  
  @media (max-width: 576px) {
    body {
        padding: 10px;
    }
  
    .container {
        margin: 10px;
        padding: 10px;
    }
  
    .letter-button {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
  
    p {
        font-size: 18px;
        height: 28px;
        width: 28px;
    }
  
    .hint-area {
        font-size: 0.9rem;
        padding: 5px;
    }
  }
  
  @media (max-width: 375px) {
    .letter-button {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
  
    p {
        font-size: 16px;
        height: 25px;
        width: 25px;
    }
  
    .game-modal .content {
        padding: 10px;
    }
  }