/*we never go out of style!*/

body {
  font-family: Arial, sans-serif;
  margin: 0;
  margin-bottom: 100px;
  padding: 0;
  display: flex;
  flex-direction: column;
  font: black;
}

/*TOP NAV BAR*/

.navbar {
  background-color: #ffffff; /* Light grey background */
  /*border-bottom: 2px solid #ffffff;  Grey line at the bottom */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.nav-section,
.nav-list {
  flex: 1;
}

.nav-title {
  font-size: 1.6875rem;
  font-weight: bold;
  font-family: 'Verdana', sans-serif;
  text-align: center;
  color: black;
}

.nav-list {
  list-style-type: none;
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin-left: 20px;
}

ul.nav-list {
  padding-top: 10px;
}

.nav-list li a {
  text-decoration: none;
  color: #ababab;
  font-weight: bold;
  font-size: 1rem;
}

.nav-list li a:hover {
  color: black;
}

.nav-list li a.active {
  /*color: black;  Active link color */
  text-decoration: underline;
}

/* Media query for screens smaller than 950px */
@media (max-width: 950px) {
  .nav-title {
    text-align: Center;
    flex-grow: 1;
  }

  .navbar {
    flex-wrap: wrap;
  }

  .nav-section,
  .nav-list {
    flex-basis: 100%;
    justify-content: center;
    order: 2;
  }

  .nav-title {
    order: 1;
  }
}

/* MAIN SECTION */
.main-container {
  max-width: 500px;
  margin: 0 auto;
  /* margin-top: 20px; */
  /* padding: 20px;  */
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

/*Default is for mobile devices*/

/*slightly larger devices*/
@media (min-width: 768px) {
  .main-container {
    padding: 30px;
  }
  #lyrics {
    padding-bottom: 25px;
  }
  h1.game-title,
  #endlessTitle.game-title {
    padding-bottom: 50px;
    font-size: 1.75em;
  }
}

/*low res desktop*/
@media (min-width: 1024px) {
  .main-container {
    padding: 80px;
    padding-top: 50px;
    max-width: 750px;
  }
  #lyrics {
    padding-bottom: 50px;
  }
  h1.game-title,
  #endlessTitle.game-title {
    padding-bottom: 50px;
    font-size: 2.5em;
  }
}

/*high res desktop*/
@media (min-width: 2000px) {
  .main-container {
    padding: 100px;
    padding-top: 60px;
    max-width: 850px;
  }
  #lyrics {
    padding-bottom: 75px;
  }
  h1.game-title,
  #endlessTitle.game-title {
    padding-bottom: 50px;
    font-size: 2.75em;
  }
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
}

#songInput,
#songGuesses,
button {
  font-size: 1em;
  margin-bottom: 10px;
  width: 750%;
  max-width: 300px;
}

#songInput {
  padding: 10px;
}

button {
  width: 25%;
  color: black;
}

button:hover {
  cursor: pointer;
}

h1 {
  text-align: center;
  margin-top: 0;
  /*margin-bottom: 20px; */
  font-size: 1.5rem;
  font-style: italic;
}

#lyrics {
  text-align: left;
  word-wrap: break-word;
  white-space: normal;
  /*padding-bottom: 20px;*/
  line-height: 2;
}

.word {
  display: inline-block;
  margin-right: 15px;
  font-size: 1.75rem;
  white-space: normal;
  font-weight: 400;
  /*text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5); /* stand out more n backgrounds hopefully */
}

.hidden {
  visibility: hidden;
}

/*help button*/
#helpButton {
  position: absolute;
  bottom: 0px;
  right: 10px;
  padding: 5px 5px;
  cursor: pointer;
  width: 25%;
  border-radius: 15px;
  border: none;
}

#guessButton {
  padding: 5px;
}

#helpButton:disabled,
#guessButton:disabled {
  background-color: #d8d8d8 !important;
  color: #8b8b8b;
}

/*ANIMATION*/

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.reveal-animation {
  animation: bounce 0.5s ease;
}

.reveal-animation {
  animation: bounce 0.5s ease;
}

/*MODAL STUFF*/
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.modal {
  /* Initial modal styles should remain unchanged */
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 101;
  width: 80%;
  max-width: 600px;
  background-color: #fff;
  padding: 5px;
  margin-top: 0;
  border-radius: 8px;
  /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);*/
  opacity: 0;
  visibility: hidden;
  box-sizing: border-box;
}

/*Close button on Modal*/
.modal-content {
  position: relative;
  text-align: center;
  box-sizing: border-box;
}

.modalTitleText {
  font-size: 32px;
  text-align: center;
  padding-bottom: 20px;
}

.modalDailyText {
  font-size: 24px;
  text-align: center;
  padding: 0 10px 20px 10px;
}

#SmallShareText {
  text-align: center;
  font-size: 16px;
}

/* @keyframes excitedJump {
  0%, 20%, 100% { transform: translateY(0); }
  10% { transform: translateY(-15px); }
  30% { transform: translateY(-10px); }
  40% { transform: translateY(-17px); }
  50% { transform: translateY(-3px); }
} */

.wiggle {
  display: inline-block;
  padding: 6px;
  border-radius: 50%;
  background-color: #fef8e1;
  border: 2px solid #fbeaa8;
  color: #f3b34d;
  font-weight: bold;
}

.wiggle10Min {
  display: inline-block;
  padding: 6px;
  border-radius: 50%;
  background-color: #e9e9ea;
  border: 2px solid #cecece;
  color: #3a3a3e;
  font-weight: bold;
}

.share-button {
  display: inline-block;
  width: auto;
  padding: 10px 20px;
  text-align: center;
  font-weight: 400;
  font-size: 1.2em;
  border: 0;
  border-radius: 15px;
  color: white;
  background-color: #c6c6c6;
  cursor: pointer;
  line-height: normal;
  text-transform: uppercase;
}

.share-button-endgame {
  position: absolute;
  bottom: 0px;
  left: 10px;
  color: black;
  background-color: #efefef;
  border: none;
  padding: 5px 5px;
  border-radius: 15px;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 550;
  cursor: pointer;
}

/* bottom: 0px;
  left: 10px;
  margin-bottom: 0px; */

.share-button:hover {
  cursor: pointer;
  color: gray;
}

.close-button {
  position: absolute;
  top: 0px;
  right: 5px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  width: auto;
  height: auto;
  display: inline-block;
}

/*Modal top and bottom images */
.modal-top-image,
.modal-bottom-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  padding: 0;
}

.modal-top-image {
  margin-bottom: 15px;
}

.modal-bottom-image {
  margin-top: 15px;
}

/*howToPlay*/
#howToPlayTitle {
  font-size: 24px;
  color: black;
  font-weight: 700;
}

.howToPlayText {
  font-size: 18px;
  padding: auto, 20px;
}

#howToPlayText li {
  font-size: 18px;
  padding: auto, 20px;
}

#howToPlayText2 {
  font-size: 18px;
  padding: auto, 20px;
  font-style: italic;
}

#midnightsText {
  font-size: 18px;
  padding: auto, 20px;
  color: #626988;
  font-weight: 800;
}

ul {
  text-align: left;
}

/* Animation to fade in and move up slightly */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Animation to fade out and move down slightly */
@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -40%) translateY(20px);
  }
}

.modal.show {
  display: block; /* Make modal visible */
  opacity: 1;
  visibility: visible;
  /* Apply fadeInUp animation */
  animation: fadeInUp 0.5s ease-out forwards;
}

.modal.hide {
  animation: fadeOutDown 0.5s ease-out forwards;
}

/* Ensure the modal and backdrop are initially hidden
.modal,
.modal-backdrop {
  display: none;
}
*/
/*play again and message*/
.end-game-container {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  display: none;
}

/*SHAKE SUTFF */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

/* Applying the animation to the lyrics container */
#lyrics.shake {
  animation: shake 0.5s ease-in-out;
}

/* Transition for background color change */
.main-container.color-transition {
  transition: background-color 2s ease-in-out;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  animation: fadeInAnimation 300ms ease-in forwards;
}

@keyframes fadeInAnimation {
  to {
    opacity: 1;
  } /* End fully visible */
}

/*10MinVersionstuff*/
#endlessTitle {
  text-align: center;
  margin-top: 0;
  /* margin-bottom: 15px; */
  font-size: 25px;
  font-style: italic;
}

#endless-heading {
  font-size: 19px;
}

/*About page*/
#about-section {
  width: 300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 10px;
  font-size: 1em;
  color: #191713;
}

/* #aboutTitle {
  font-style: normal;
  margin-bottom: 10px;
  margin-top: 10px;
}  */

.aboutText {
  text-align: center;
}
.aboutTextEmail {
  text-align: center;
  margin: 0px;
}

.aboutText a {
  color: #413f3f;
  font-style: underline;
  font-weight: 700;
}

.aboutText a:hover {
  cursor: pointer;
}

#endAboutText {
  text-align: right;
  font-style: italic;
  margin-top: 0px;
}

figcaption {
  font-style: italic;
  font-size: 14px;
  text-align: center;
}

#samBeaPic {
  width: 300px;
  display: block;
  margin: auto;
}

#aboutBody {
  background-color: #adc6d5;
}

#aboutNavBar {
  background-color: #87b9cf;
}

.aboutNavItems {
  color: #d8dadb !important;
}

#emailText {
  color: #413f3f;
  font-weight: 700;
}

#pmLink {
  align-self: center;
  visibility: hidden;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: none;
}

#pmLink:hover {
  visibility: visible;
  color: grey;
}

.tryOtherGameContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-top: 20px;
  margin-bottom: 8px;
}

.tryOtherGameContainer p {
  color: black;
  text-decoration: underline;
  margin-bottom: 10px !important;
}

.tryOtherGameContainer:hover p {
  color: #ababab;
}

.tryOtherGameContainer:hover img {
  filter: invert(0.4);
}

.swiftGridsLogo {
  max-width: 400px;
}
