/* styles.css */
body {
    font-family: Arial, sans-serif;
    background-color: #504c4c;
    color: #d1c4c4;
    text-align: center;
    padding: 20px;
    overflow-x: hidden;
}

h1 {
    font-size: 2.5em;
    color: #d1c4c4;
    margin-bottom: 10px;
}

h2 {
    font-size: 2;
    color:rgb(0, 0, 0)
}
h4 {
    font-size: 2;
    color: rgb(0, 0, 0);
    text-align: left;
}

h3{
    font-size: 2;
    color: rgb(0, 0, 0);
    text-align: center;
}

.game-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 500px;
    background-color: #3b3939;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
    z-index: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #8d7d7d;
    padding: 8px;
    text-align: center;
}

th {
    background-color: #312e2e;
    font-weight: bold;
}

.input-container {
    display: flex;
    justify-content: space-between;
    color: #8d7d7d;
    position: relative;
    z-index: 3;
}

input {
    flex: 1;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 8px 16px;
    margin-left: 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

button:disabled {
    background-color: #ccc;
    cursor: default;
}

.hidden {
    display: none;
}

.result-message {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: bold;
}

.modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 1rem 1.5rem;
    width: 26rem;
    border-radius: 0.5rem;
}

.close-button {
    float: right;
    width: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    cursor: pointer;
    border-radius: 0.25rem;
    background-color: rgb(0, 0, 0);
}

.close-button:hover {
    background-color: darkgray;
}

.show-modal {
    opacity: 1;
    visibility: visible;
}

.color-fan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    display: none;
}

.color-fan:before,
.color-fan:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgb(0, 255, 76), transparent);
    opacity: 0.5;
    animation: fan 4s infinite alternate;
}

.color-fan:after {
    background: linear-gradient(-45deg, rgb(4, 0, 255), transparent);
    animation-delay: 2s;
}

@keyframes fan {
    0%, 100% {
        transform: rotate(0) translate(-50%, -50%);
    }
    50% {
        transform: rotate(360deg) translate(-50%, -50%);
    }
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #8d7d7d;
}

.bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(-45deg, rgb(255, 0, 0), transparent);
}

@keyframes wiggle {
    100% {
      transform: rotate(-7.5deg);
    }
    50% {
      transform: rotate(7.5deg);
    }
  }
  
  .wiggle {
    animation: wiggle 0.4s infinite;
  }
  #page-container {
    position: relative;
    min-height: 100vh;
  }
  
  #content-wrap {
    padding-bottom: 2.5rem;  
  }
  
  #footer {
    position: fixed;
    bottom: 0;
    width: 94%;
    height: 2.5rem;            /* Footer height */
    z-index: -1;
  }
  .level-selection {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #d1c4c4;
  }
  
  .level-selection label {
    margin-right: 5px;
  }
  
  .level-selection select {
    background-color: #312e2e;
    color: #d1c4c4;
    border: 1px solid #8d7d7d;
    border-radius: 3px;
    padding: 2px 5px;
  }
  /* The modal */
.modal2 {
    display: none; /* Hidden by default */
    position: absolute; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
  }
  
  /* Modal content */
  .modal2-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
  }
  
  /* Close button */
  .exit-button {
    margin-top: 10px;
    background-color: #4caf50;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
  }
  #how-to-play {
    position: fixed;
    top: 0;
    left: 0;
    margin-top: 10px;

  }