body {
    font-family: 'Arial', sans-serif;
    text-align: left;
}
.container {
    background-color: aliceblue;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}
.whole-question {
    display: flex;
    justify-content: center;
    margin: 10px;
}

.question-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
    margin-right: 10px;
}

.instructions {
    color: rgb(93, 173, 248);
    font-size: x-large;
    font-weight: 600;
    font-style: italic;
    text-decoration: underline;
    text-align: center;
}

.question {
    flex-wrap: wrap;
    flex-basis: 100%;
    font-weight: 400;
    font-size: 25px;
    margin: 15px 0; 
}

.answer-button {
    display: block;
    margin: 10px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    background-color: lightgrey;
    position: relative;
}
.button-center{
    text-align: center;
}
.refresh {
    background-color: rgb(93, 173, 248);
    height: 60px;
    width: 150px;
    color: blue;
    margin-top: 10px;
    border: none;
    cursor: pointer;
}

.check {
    color: rgb(15, 226, 15);
    margin-left: 10px;
    font-size: 30px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    animation: grow 0.5s ease;
}

.xmark {
    color: red;
    margin-left: 10px;
    font-size: 30px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

@keyframes grow {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    text-align: center;
}

.close-btn {
    color: #ac2925;
    float: right;
    font-size: 40px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.correct-answer {
  margin-top: 5px;
  font-weight: bold;
}
.container {
  position: relative; /* allow absolute children like the button */
}

#voiceButton {
  display: inline-block;
  background-color: green;
  color: white;
  border: none;
  padding: 10px 30px;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 0 30px green;
  animation: blink 1s infinite;
  transition: transform 0.2s;
  margin: 20px auto;
}

.voice-button-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
@keyframes blink {
  0%, 100% {
    box-shadow: 0 0 20px green;
    background-color: green;
  }
  50% {
    box-shadow: 0 0 10px blue;
    background-color: blue;
  }
}
.answer-button.selected {
  font-weight: bold;
  background-color: #f0f0f0;
  border: 2px solid #4CAF50;
}
