body {
    margin: 0 0 0 0;
    display: block;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    width: 95%;
    height: 95vh;
    margin: auto;
    padding: 20px;
    transition: all 0.5s ease-in-out;
    background-color: rgb(255, 209, 169);
}

#bodyContent {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* height: 60vh; */
    /* height: 100vh; */
    /* height: 80%; */
    justify-content: center;
    align-items: center;
    /* margin-top: 5%; */
}

.homeSize {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* width: 95%; */
}

#homepage {
    /* position: absolute; */
    /* top: 10%;
    right: 47.5%; */
    border: 1px outset rgb(243, 243, 243);
    border-radius: 100px;
    /* border-top-right-radius: 0px;
    border-bottom-right-radius: 0px; */
    height: 30px;
    width: 3%;
    /* padding-left: 10px; */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: linear-gradient(white, rgb(230, 208, 173), white);
    font-weight: normal;
    color: rgb(2, 95, 194);
    cursor: pointer;
    transition: ease 1s;
    margin-left: 2%;
    box-shadow: 1px 1px 15px rgb(255, 255, 255);
}

.fa-angle-left {
    scale: 1.5;
    color: rgb(2, 95, 194);
}

#homepage:hover {
    background-image: linear-gradient(white, rgb(230, 208, 173), white);
    box-shadow: 1px 1px 20px white;
    /* height: 100%; */
    width:  10%;
    font-weight: bold;
    transition: ease 1s;
    transform: translateX(-10px);

}

#homepage:active {
    border: 1px inset silver;
}

#homepage::after {
    content: 'Home Page';
    display: none;
    margin-left: 10px;
    color: black;
    font-size: 14px;

}

#homepage:hover::after {
    display: inline;
}


#titleNav {
    margin-top: -20px;
    /* padding-bottom: 2%; */
}

#title {
    /* color: rgb(234, 90, 7); */
    filter: drop-shadow(1px 1px 10px rgb(255, 229, 200));
    font-weight: bold;
    color: #ff7418;
    text-shadow:
    1px 1px 0 #ccc,
    2px 2px 0 #bbb,
    3px 3px 0 #aaa;
}

#content {
    /* margin-top: -10%; */
    display: block;

    /* flex-direction: column; */
    justify-content: center;
    align-items: center;
    /* height: 40%; */

    /* max-height: 85%; */
        /* min-height: 20%; */
    width: 50%;
    border-radius: 20px;
    background-color: white;
    backdrop-filter: blur(2px);
    /* padding: 40px; */
    padding-top: 10px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    box-shadow: 0px 0px 20px rgb(222, 121, 70);
    border: 2px outset rgb(206, 202, 195);
}

#sentenceTitle {
    /* height: 20%; */
}

#sentenceNum {
    width: 95%;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* border: 1px solid silver; */
    background-color: rgb(255, 209, 169);
    background-image: linear-gradient(white, rgb(255, 212, 133), white);
    color: #ff6600;
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;
    /* border-top-left-radius: 50px;
    border-bottom-right-radius: 50px; */
    border: 1px solid silver;
    border-radius: 12px;
        text-shadow:
    1px 1px 0 #ece6e6,
    1.2px 1.2px 0 #bbb,
    1.5px 1.5px 0 #aaa;
}

.mainContent {
    margin-left: 8%;
}
textarea {
    width: 95%;
}
#userInput {
    width: 95%;
    height: 45px;
    font-size: 18px;
    /* padding: 10px; */
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid black;
    outline: none;
}

#userInput:hover {
    border-color: #13b8ff;
}

#userInput:focus {
    border-color: #13b8ff;
}

.audioAndSpeed {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 95%;
}

.alignCenter {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
}

button {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background-color: #4CAF50;

  color: white;
  cursor: pointer;
  transition: background-color 0.9s ease;
}

button:hover {
  background-color: #3e8e41;
}

.inputNav {
    display: block;
    padding-top: 1%;
    
}

.typingLoc {
    padding-bottom: -10px;
    height: 2px;
}

.submitButtonDiv {
    width: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#submitButton:disabled {
    background-color: silver;
    cursor: default;
}

/* .disabledSubmit {
  animation: disabledSubmit 2s linear infinite;
}

@keyframes disabledSubmit {
  from { box-shadow: 0px 0px 2px rgb(205, 235, 59); }
  to { box-shadow: 0px 0px 10px rgb(164, 222, 110); }
} */

#sentenceButton {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 26px;
}

.fa-play {
    /* background-color: silver; */
    color: white;
    font-size: 20px;
    padding-right: 5px;
    filter: drop-shadow(0px 0px 3px rgb(0, 255, 13));
}

.buttonText {
    filter: drop-shadow(0px 0px 3px rgb(0, 255, 13));
}

.feedback {
  font-weight: bold;
  margin-top: 10px;
}

#answerSection {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    padding-bottom: 10px;
}

#answerDisplay {
  color: orange;
  /* margin-top: 10px; */
  padding-right: 10px;
      display: flex;
    justify-content: center;
    align-items: center;
}

#answerContent {
    font-weight: bold;
    color: #4CAF50;
        display: flex;
    justify-content: center;
    align-items: center;
}

#celebration {
    /* position: relative; */
    width: 95%;
  text-align: center;
  margin-top: 20px;
  /* height: auto; */
}

#celebration img {
  max-width: 100px;
  border-radius: 10px;
}

/* ✨ Animation */
.fade-out-left {
    animation: fadeOutLeft 1.5s forwards;
}

.fade-in-left {
    animation: fadeInLeft 1.5s forwards;
}

@keyframes fadeOutLeft {
    0% {opacity: 0; transform:  translateX(0);}
    100% {opacity: 1; transform: translateX(-2000px);}
}

@keyframes fadeInLeft {
    0%   { opacity: 0; transform: translateX(1000px); }
    100% { opacity: 1;   transform: translateX(0); }
}

.fade-out-right {
  animation: fadeOutRight 1.5s forwards;
}

.fade-in-right {
  animation: fadeInRight 1.5s forwards;
}

@keyframes fadeOutRight {
  0%   { opacity: 1; transform: translateX(0); }
  100% { opacity: 0;   transform: translateX(2000px); }
}

@keyframes fadeInRight {
  0%   { opacity: 0;   transform: translateX(-2000px); }
  100% { opacity: 1;   transform: translateX(0); }
}

.nextSentence {
    /* margin-left: -15px; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.next, .previous {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    background-color: transparent;
    color: blue;
    /* text-decoration: underline; */
}

.next, .previous, .sentencePosition {
    flex: 1;
}

.next:hover, .previous:hover {
    background-color: transparent;
    color: orangered;
    text-decoration: underline;
}

.voiceSpeed {
    display: flex;
    justify-content: center;
    align-items: center;
}

#voiceSpeedLabel {
    flex: 2.5;
}

.speedInput {
    flex: 3;
  appearance: none;
  width: 100%; /* Full-width */
  height: 10px; /* Specified height */
  background: linear-gradient(0.25turn, rgb(60, 48, 220), #13b8ff, rgb(241, 203, 156), #fb5407);
  outline: none; /* Remove outline */
  opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
  -webkit-transition: .2s; /* 0.2 seconds transition on hover */
  transition: opacity .2s;
  border-radius: 8px;
  border: 1px outset silver;
  cursor: pointer;
}

.speedInput:hover {
    background: linear-gradient(0.25turn, rgb(84, 74, 217), #4ac4f9, rgb(244, 216, 183), #fa7c41);
}

.speedInput::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px; 
    height: 20px; 
    border-radius: 50%;
    border: 2.5px outset rgb(181, 179, 179);
    background: linear-gradient(135deg, white 0%, white 50%, rgb(108, 107, 107) 100%);
    cursor: pointer;
}

.speedInput::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #04AA6D;
  cursor: pointer;
}

#rateValue {
    flex: 1;
    color: blue;
}

.voiceSpeedBlock {
    display: block;
    justify-content: center;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

#siteFooter {
    text-align: center;
    /* padding: 15px; */
    /* background-color: #f0f0f0; */
    color: #333;
    font-size: 14px;
    margin-top: 10%;
}




























@media (max-width: 800px) {

body {
    /* overflow-y: hidden; */
    max-width: 90%;
    height: 100%;
}

#homepage {
    /* top: 9.5%; */
    height: 30px;
    width: 10%;
    margin-left: 5%;
}

#homepage:hover {
    width: 40%;
    transform: translateX(-8px);
}

#title {
    margin-top: 0;
    width: 95%;
}

#celebration img {
  max-width: 100px;
  border-radius: 10px;
}

#bodyContent {
    /* height: 500px; */

}

#content {
    width: 90%;
    padding-left: 5px;
    padding-right: 10px;
    /* max-height: 85%; */
}

.submitButtonDiv {

}

.nextSentence {

}

.previous {
    justify-content: left;
}

#userInput {
    width: 90%;
    margin-left: -0%;
    border: 1px solid silver;
}






/* ✨ Animation */
.fade-out-left {
    animation: fadeOutLeft 2s forwards;
}

.fade-in-left {
    animation: fadeInLeft 1.5s forwards;
}

@keyframes fadeOutLeft {
    0% {opacity: 0; transform:  translateX(0);}
    50% {opacity: .5; transform: translateX(-800px);}
    100% {opacity: 1; transform: translateX(-1200px);}
}

@keyframes fadeInLeft {
    0%   { opacity: 0; transform: translateX(500px); }
    50% { opacity: .5;   transform: translateX(200); }
    100% { opacity: 1;   transform: translateX(0); }
}

.fade-out-right {
  animation: fadeOutRight 1.5s forwards;
}

.fade-in-right {
  animation: fadeInRight 1.5s forwards;
}

@keyframes fadeOutRight {
  /* 0%   { opacity: 1; transform: translateX(0); }
  50%   { opacity: .5; transform: translateX(800); }
  100% { opacity: 0;   transform: translateX(1200px); } */
    0% {opacity: 0; transform:  translateX(0);}
    50% {opacity: .5; transform: translateX(600px);}
    100% {opacity: 1; transform: translateX(1200px);}
}

@keyframes fadeInRight {
    0%   { opacity: 0;   transform: translateX(-300px); }
    /* 50%  { opacity: .5;   transform: translateX(-20px); } */
    100% { opacity: 1;   transform: translateX(0); }
    /* 0% {opacity: 1; transform:  translateX(-500);}
    50% {opacity: .5; transform: translateX(-200px);}
    100% {opacity: 0; transform: translateX(0);} */
}

}