:root {
  --dark-blue-color: #219EBC;
  --dark-blue-btn-color: #1a8099;
  --light-blue-color: #8ECAE6;
  --white-color: #ffffff;
  --dark-blue-text-color: #023047;
  --game-hover-answer-color: #365fa0;
  --practise-card-bgc: #ccedfb;
  --yellow-color: #FFD630;
}

html, body {
    margin: 0;
    min-height: 100vh;
    box-sizing: border-box;
    font-family: 'Asap', sans-serif;
  }
  *, *:before, *:after {
    box-sizing: inherit;
  }
  h1 {
    font-size: 32px;
    margin: 20px 0;
  }
  .app {
    display: flex;
    min-height: 100vh;
    min-width: 100%;
    flex-direction: column;
    justify-content: space-between;
    
  }
  .header {
    background-color: var(--dark-blue-color);
    padding: 0 25px;
    
  }
  .content {
    background-color: var(--light-blue-color);
    padding: 10px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;

  }
  .footer {
    background-color: var(--dark-blue-color);
    padding: 10px;
  }

  .startPage-header.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .headerNav__list{
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 20px;
    list-style: none;
    padding: 0;
  }
  .headerNav__link{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    gap:10px;
    font-size: 16px;
    color: var(--dark-blue-text-color);
    transition: color 0.3s linear;
    text-align: center;
    
  }
  .headerNav__link:hover {
    text-decoration: none;
    color: var(--white-color);
    
  }
  .startPage-header.headerNav__link svg{
    transition: shake 2s linear;
    
  }
  

  .startPage-header.headerNav__link svg:hover{
    animation: shake 3s linear infinite;
    transform-origin: 50% 0;
  }
  @keyframes shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
  }
  .headerNav__link:hover svg{
    animation: shake 4s linear infinite reverse;
  }
  
  .headerNav__link.active {
    text-decoration: none;
    background-color: var(--dark-blue-text-color);
    color: var(--white-color);
  }
  .header-exit {
    transition: all 0.3s linear;
  }
  .header-exit svg:hover {
    animation: shake 4s linear infinite;
    transform-origin: 50% 0;
    cursor: pointer;
  }
  text {
    font-size: 100px;
    animation: wavyText 1.3s alternate steps(2, end) infinite;
  }
  .letter-l {
    animation-delay: 0;
  }
  .letter-a {
    animation-delay: 0.1s;
  }
  .letter-g1 {
    animation-delay: 0.15s;
  }
  .letter-g2 {
    animation-delay: 0.2s;
  }
  .letter-y {
    animation-delay: 0.25s;
  }
  @keyframes wavyText {
    20%,
    100% {
      transform: translate(0, 15px);
    }
    0% {
      transform: translate(0, 0px);
    }
    10% {
      transform: translate(0, 15px);
    }
    
  }

  
.startPage-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: 30px;
    margin: 40px 0;
}
.svg-startpage {
    display: flex;
    align-items: center;
    justify-content: center;
}
.buttons-startpage {
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.button-startpage,
.button-practisecategory,
.button-gameDifficulty,
.button-game__next,
.game-end-lifes__button-menu,
.game-end-questions__button-menu,
.player-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 50px;
    padding: 10px 20px;
    background-color: var(--dark-blue-color);
    font-weight: 500;
    font-size: 16px;
    color: var(--white-color);
    box-shadow: 3px 4px 4px rgb(0 0 0 / 25%), 0px 2px 3px rgb(13 96 111 / 16%);
    border-radius: 10px;
    border-width: 0px;
    cursor: pointer;
    transition: .3s linear;
    text-align: center;
  }
  .game-end-lifes__button-menu,
  .game-end-questions__button-menu {
    width: 190px;
  }
  .button-learnpage,
  .button-logout {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100px;
      height: 35px;
      background-color: var(--dark-blue-color);
      font-weight: 500;
      font-size: 16px;
      color: var(--white-color);
      box-shadow: 3px 4px 4px rgb(0 0 0 / 25%), 0px 2px 3px rgb(13 96 111 / 16%);
      border-radius: 10px;
      border-width: 0px;
      cursor: pointer;
      transition: .3s linear;
    }
.button-startpage:hover,
.button-learnpage:hover,
.button-practisecategory:hover,
.button-gameDifficulty:hover,
.button-next:hover,
.button-game__next:hover,
.game-end-lifes__button-menu:hover,
.game-end-questions__button-menu:hover,
.button-logout:hover,
.player-button:hover {
  background-color: var(--dark-blue-btn-color);
}
.button-startpage:active,
.button-learnpage:active,
.button-practisecategory:active,
.button-gameDifficulty:active,
.button-next:active,
.button-game__next:active,
.game-end-lifes__button-menu:active,
.game-end-questions__button-menu:active,
.button-logout:active,
.player-button:active {
  background-color: var(--dark-blue-color);
  box-shadow: 0 0 0 8px rgba(255, 208, 91, 0.3)
}
.button-game__next.disabled {
  opacity: 0.6;
}
.button-game__next.disabled:hover,
.button-game__next.disabled:active {
  opacity: 0.6;
  background-color: var(--dark-blue-color);
  box-shadow: 3px 4px 4px rgb(0 0 0 / 25%), 0px 2px 3px rgb(13 96 111 / 16%);
}
.footer footer {
  display: flex;
  justify-content: center;
  align-items: center;
}
.svg-startpageEarth svg {
  transition: transform 3s linear;
}
.svg-startpageEarth svg:hover {
  transform: scale(1.2);
  transform-origin: 50% 50%;
}
.highscores-header.header,
.newplayer-header.header,
.howtoplay-header,
.learn-header.header,
.practisecategory-header.header,
.practise-header.header,
.game-header.header,
.gamedifficulty-header.header,
.error-header.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.backArrow-container svg {
  transition: transform 0.3s linear;
}
.backArrow-container svg:hover{
  transform: translateX(-5px)
}

.backArrow-container{
  cursor: pointer;
  transition: all 3s linear;
}
.newplayer-content h1,
.howtoplay-content h1,
.learn-content h1,
.highscores-content h1,
.practisecategory-content h1,
.gamedifficulty-content h1,
.game-content h1 {
  text-align: center;
}
.buttons-learnpage {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}
.buttons-practisecategory,
.buttons-gameDifficulty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
}
.practisecategory-content,
.gamedifficulty-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}
.svg-practise-container {
  display: flex;
  justify-items: center;
  align-items: center;
}
.game-content {
  display: flex;
  flex-direction: column;
  margin: 0 10px;
}
.game-question__flag {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 200px;
}
.game-question__flag img {
  max-width: 80%;
  max-height: 100%;
}
.flag {
  object-fit: cover;
  max-width: 80%;
  max-height: 100%;
}
.game-question {
  display: flex;
}
.game-answers {
  display:grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  margin: 20px auto;
  justify-items: center
  
}
.game-answer {
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 2px var(--white-color);
  border-radius: 10px;
  min-width: 200px;
  max-width: 200px;
  padding: 10px;
  border:unset;
  background-color: var(--light-blue-color);
  transition: box-shadow 0.3s linear;
  text-align: center;
}
.game-answer:disabled {
  color: unset;
}
.game-answer:hover {
  box-shadow: inset 0 0 0 2px var(--game-hover-answer-color);
}
.svgLogo {
  width: 70px;
  height: 70px;
}
.svg-highscores{
  width: 50px;
  height: 50px;
}
.svg-newplayer {
  width: 50px;
  height: 50px;
}
.svg-howtoplay {
  width: 50px;
  height: 50px;
}
.svg-exit {
  width: 50px;
  height: 50px;
}
.back-arrow,
.back-arrow-practise,
.back-arrow-game {
  width: 40px;
  height: 40px;
}
.svg-heart {
  width: 30px;
  height: 30px;
}
.learn-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.modal,
.modal-back {
  display: flex;
  flex-direction: column;
  position: fixed;
  gap:20px;
  width: 300px;
  max-width: 100%;
  height: 200px;
  max-height: 100%;
  z-index: 100;
  left: 50%;
  top: 50%;
  border-radius: 10px;
  transform: translate(-50%, -50%);
  background: var(--white-color);
  box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.6);
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  background: rgba(0, 0, 0, 0.3);
}
.modal_closed {
  display: none;
}

.modal h2,
.modal-back h2 {
  font-size: 18px;
  text-align: center;
}
.modal__close {
  align-self: flex-end;
  margin-top: 10px;
  margin-right: 10px;
  color: var(--dark-blue-btn-color);
  font-size: 20px;
  transition: .3s linear; 
}
.modal__close:hover{
  color: var(--dark-blue-text-color);
}
.modal-btns,
.modal-back-btns {
  display: flex;
  justify-content: center;
  gap:20px;
}
.modal-btn__yes,
.modal-btn__no,
.modal-back-btn__yes,
.modal-back-btn__no {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  padding: 10px 20px;
  background-color: var(--dark-blue-color);
  font-weight: 500;
  font-size: 16px;
  color: var(--white-color);
  box-shadow: 3px 4px 4px rgb(0 0 0 / 25%), 0px 2px 3px rgb(13 96 111 / 16%);
  border-radius: 10px;
  border-width: 0px;
  cursor: pointer;
  transition: .3s linear;
}
.modal-btn__yes:hover,
.modal-btn__no:hover,
.modal-back-btn__yes:hover,
.modal-back-btn__no:hover {
background-color: var(--dark-blue-btn-color);
}
.modal-btn__yes:active,
.modal-btn__no:active,
.modal-back-btn__yes:active,
.modal-back-btn__no:active {
background-color: var(--dark-blue-color);
box-shadow: 0 0 0 4px rgba(255, 208, 91, 0.3)
}
.active-btn {
  background-color: var(--dark-blue-btn-color);
}
.learn-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.learn-data__flag {
  display: flex;
  justify-content: center;
  width: 200px;
  
}
.learn-data__flag img {
  max-width: 100%;
  max-height: 100%;
}
.learn-data-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 40px;
  margin: 20px auto;
}
.learn-data__wrapper-inner {
  display: flex;
  flex-direction: column;
}
.learn-data__country {
font-size: 24px;
}
 
.learn-data__capital,
.learn-data__country,
.card__back-country,
.card__back-capital {
  text-align: center;
  word-wrap: break-word;
}

.card-container {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  
}
.card {
  width: 250px;
  height: 350px;
  position: relative;
  perspective: 1000px;
}
.card__front,
.card__back {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  left: 0;
  top:0;
  backface-visibility: hidden;
  border-radius: 10px;
  transition: .5s linear;
  background-color: var(--practise-card-bgc);
  text-align: center;
}

.card__back {
  transform: rotateY(180deg)
}
.flip-front {
  transform: rotateY(180deg)
}
.flip-back {
  transform: rotateY(360deg)
}
.button-container-practise{
  position: absolute;
  bottom: -19%;
}
.fa-circle-right {
  font-size: 40px;
  color: #0767a7;
  transition: .3s linear;
}
.fa-circle-right:hover {
  color: #08568b;
  transform:translateX(10%);
  cursor: pointer;
}
.card__front img{
  max-width: 80%;
  max-height: 100%;
}
.card__back-country {
  font-size: 24px;
 
}
.card-congrats svg{
  transition: all 0.3s linear;

}
.card-congrats:hover {
  animation: shakePractise 3s linear infinite;
  transform-origin: 0 100%;
  cursor: pointer;
}

@keyframes shakePractise {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}

.numbers-container-practise {
  position: absolute;
  top: 0;
}
.buttons-game-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}
.attributes-container {
  display:flex;
  justify-content: space-between;
  align-items: center;
}
.game-life {
  display: flex;
  align-items: center;
}
.game-end-lifes__button,
.game-end-questions__button {
  margin: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.game-end-lifes__text,
.game-end-questions__text {
  margin: 0 10px;
  border: 2px solid var(--white-color);
  border-radius: 10px;
  padding: 50px 20px;
  text-align: center;
}
.loading {
  display: none;
  width: 30px;
  height: 30px;
  border: 5px solid var(--white-color);
  border-top: 6px solid var(--yellow-color);
  border-radius: 100%;
  margin: auto;
  animation: spin 1s infinite linear;
}
.loading.display {
  display: block;
  position: fixed;
  top: 84%;
  left: 49%;
}
@keyframes spin {
  from {
      transform: rotate(0deg);
  }
  to {
      transform: rotate(360deg);
  }
}
.svg-animated-path-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.form__wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}
.form__content {
  padding: 22px 40px;
  max-width: 650px;
  min-width: 390px;
  width: 100%;
  border-radius: 16px;
  background: linear-gradient(177.09deg, #c5eafa 6.15%, var(--dark-blue-color) 121.69%);
  box-shadow: 0px 4px 4px rgb(0 0 0 / 25%);
  display: flex;
  flex-direction: column;
  transition: all .3s ease;
}
.form__heading {
  font-size: 32px;
  text-align: center;
  color: var(--dark-blue-text-color);
  margin-bottom: 32px;
}
.form__fieldset {
  display: flex;
  flex-direction: column;
  border-width: unset;
  border-style: none;
}
.form__fieldset label {
  color: var(--dark-blue-text-color);
  font-size: 18px;
}
.form-input {
  outline-color:none;
  display: block;
  width: 100%;
  max-width: 560px;
  padding: 15px 10px;
  margin: 5px auto;
  background: #FFFFFF;
  box-shadow: inset 0px 0px 3px rgb(13 96 111 / 8%), inset 0px 2px 3px rgb(13 96 111 / 16%);
  border-radius: 10px;
  color: var(--color-blue-green);
  font-weight: 400;
  font-size: 20px;
  border-width: unset;
  border-style: none;
  outline-color:unset;
  border-color:unset;
}
.form-submit-login,
.form-submit-register{
  margin-top: 8px;
  padding: 15px 10px;
  margin-bottom: 10px;
  background-color: var(--dark-blue-text-color);
  box-shadow: 0px 0px 3px rgb(13 96 111 / 8%), 0px 2px 3px rgb(13 96 111 / 16%);
  color: var(--white-color);
  border-radius: 5px;
  border: unset;
  font-size: 18px;
}
.form__account.login,
.form__account.register {
  font-size: 16px;
}
.form__account {
  font-size: 15px;
  text-align: center;
  color: rgba(13, 96, 111, 0.5);
  text-shadow: 0px 2px 3px rgb(255 255 255 / 16%);
}
.form__account span {
  color: var(--dark-blue-text-color);
  cursor: pointer;
  text-decoration-line: underline;
}
.form-input:focus,
.form-input:focus-visible {
  outline-color: var(--dark-blue-color);
}
.greeting-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.button-logout {
  align-self: end;
}

.player-input {
    outline-color:none;
    display: block;
    padding: 15px 10px;
    margin: 5px auto;
    background: #FFFFFF;
    box-shadow: inset 0px 0px 3px rgb(13 96 111 / 8%), inset 0px 2px 3px rgb(13 96 111 / 16%);
    border-radius: 10px;
    color: var(--color-blue-green);
    font-weight: 400;
    font-size: 20px;
    border-width: unset;
    border-style: none;
    outline-color:unset;
    border-color:unset;
}
.player-input:focus,
.player-input:focus-visible {
  outline-color: var(--dark-blue-color);
}
.player-fields {
  display: flex;
  gap: 15px;
  justify-items: center;
  align-items: center;
  flex-direction: column;
}
.user-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  background: linear-gradient(177.09deg, #c5eafa 6.15%, var(--dark-blue-color) 121.69%);
  box-shadow: 0px 4px 4px rgb(0 0 0 / 25%);
  padding: 10px 15px;
}
.user-list-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 10px;
  justify-items: center;
}
.player-input::placeholder {
  font-size: 14px;
}
.user__headline,
.email__headline,
.delete__headline {
  font-weight: 800;
  font-style: italic;
  color: var(--white-color);
}
.fa-trash-xmark {
  font-size: 18px;
  color: var(--white-color);
}
.fa-circle-xmark {
  font-size: 16px;
  color: var(--dark-blue-text-color);
}








/* Medium Devices, Desktops */
@media (max-width : 992px) {
  .learn-data-container {
    grid-template-columns: 1fr 1fr 1fr;
  }
  h1 {
    font-size: 30px;
    margin: 20px 0;
  }
  .loading.display {
    left: 48%;
  }
}
/* Small Devices, Tablets */
@media (max-width : 768px) {
  h1 {
    font-size: 28px;
    margin: 20px 0;
  }
  .learn-data-container {
    grid-template-columns: 1fr 1fr;
  }
  .svgLogo {
    width: 55px;
    height: 55px;
  }
  .svg-highscores,
  .svg-newplayer,
  .svg-howtoplay,
  .svg-exit {
    width: 40px;
    height: 40px;
  }
  .back-arrow,
  .back-arrow-practise,
  .back-arrow-game {
    width: 35px;
    height: 35px;
  }
  .svg-heart {
    width: 25px;
    height: 25px;
  }
  .footer {
    font-size: 14px;
  }
  .learn-header .headerNav__link,
  .footer,
  .button-learnpage,
  .button-game__next.active-btn,
  .headerNav__link,
  .button-gameDifficulty,
  .button-practisecategory {
    font-size: 16px;
  }
  .learn-data__country {
    font-size: 22px;
  }
  .learn-data__capital {
    font-size: 18px;
  }
  .svg-animated-path {
    width: 400px;
    height: 150px;
  }
  .form__heading {
    font-size: 28px;
  }
  .form__fieldset label {
    font-size: 16px;
  }
  .form-submit-login,
  .form-submit-register {
    font-size: 16px;
  }
  .form__account.login,
  .form__account.register {
  font-size: 14px;
  }
  .form__content {
    padding: 20px 30px;
    min-width: 300px;
  }
  .loading.display {
    left: 47%;
  }
}
/* Extra Small Devices, Phones */ 
@media (max-width : 480px) {
  .highscores-header.header,
  .newplayer-header.header,
  .howtoplay-header,
  .learn-header.header,
  .practisecategory-header.header,
  .practise-header.header,
  .game-header.header,
  .gamedifficulty-header.header,
  .error-header.header,
  .headerNav__list {
    gap: 10px;
  }
  .game-answers,
  .learn-data-container {
    grid-template-columns: 1fr;
  }
  .learn-header .headerNav__link,
  .footer,
  .button-learnpage,
  .button-game__next.active-btn,
  .headerNav__link,
  .button-gameDifficulty,
  .button-practisecategory {
    font-size: 14px;
  }
  .footer {
    font-size: 12px;
  }
  .header {
    padding: 0 5px;
  }
  .svgLogo {
    width: 50px;
    height: 50px;
  }
  .svg-highscores,
  .svg-newplayer,
  .svg-howtoplay,
  .svg-exit {
    width: 35px;
    height: 35px;
  }
  .back-arrow,
  .back-arrow-practise,
  .back-arrow-game {
    width: 30px;
    height: 30px;
  }
  .svg-heart {
    width: 20px;
    height: 20px;
  }
  .learn-data__country {
    font-size: 20px;
  }
  .learn-data__capital {
    font-size: 16px;
  }
  h1 {
    font-size: 22px;
    margin: 15px 0;
  }
  .svg-animated-path {
    width: 250px;
    height: 100px;
  }
  .form__heading {
    font-size: 24px;
  }
  .form__fieldset label {
    font-size: 14px;
  }
  .form-submit-login,
  .form-submit-register {
    font-size: 14px;
  }
  .form__account.login,
  .form__account.register {
  font-size: 12px;
  }
  .form__content {
    padding: 15px 20px;
    min-width: 250px;
  }
  .loading.display {
    top:87%;
    left: 45%;
  }
}



  
  
