@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

/*  ----- Viewport ----- elements inherited by all remaining elements ----- */
body {
  /* Can alternatively define in html {}. */
  background-attachment: fixed;
  background-position: top left;
  background-image: url("background.png"); */

  background-repeat: no-repeat;
  background-size: cover;
  color: ;
  font-family: ; /* Define with at least one font name and its related generic family name.*/
  margin: 0 auto;
  padding: 0;
  max-width: 75%;
  min-width: 20%;
}
header {
  text-align: center;
  color: white;
  font-size: 1.5em;
}

.navbar{
  padding: 2%
}

.nav-links{
  display:flex; 
  justify-content: center;
  padding:0;
  margin:0; 
}
h1 {
  align-items: center;
  vertical-align: middle;
  padding: 2%;
  box-sizing: border-box;
  margin: 0;
}
h1 a{
  font-size: 1rem;
}
section {
  align-items: center;
  margin-bottom: 24px;
}

.user-input {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#summaries {
  color: white;
}

form {
  /* display: flex;
  flex-direction: column;
  justify-content: center; */
  width: 80%;
  height: 200px;
  padding: 10px;
  font-size: 16px;

}

textarea {
  width: 100%;
  height: 200px;
  padding: 10px;
  font-size: 16px;
  margin: 0 auto;
  border-radius: 1rem;
  border: 1px solid #334155;
  background-color: #1e293b;
  color: white;
}
section h1 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

button {
  /*
  min-width: 5rem;
  max-width: 20%;
  font-size: 20px;
  margin-top: 8px;
  cursor: pointer;
  border-radius: 6px;
  color: #191970;
  */

  background-image: linear-gradient(to right, #0f2e77 0%, #90b5ff  71%, #567cd3  100%);
  margin: 10px;
  padding: 5px 15px;
  text-align: center;
  font-family: "Roboto", sans-serif;
  font-size: 1.2em;
  font-weight: bold;
  text-transform: uppercase;
  transition: 0.5s;
  background-size: 200% auto;
  color: white;            
  box-shadow: 0 0 20px #eee;
  border-radius: 10px;
  display: block;
  width: 50%;
  margin: 8px auto;
  margin-top: 1rem;
}


button:hover {
    background-position: right center; /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
    cursor:pointer;

}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: white;
}

a {
  text-decoration: none;
  color: white;

}

.button-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
  }
.button-row button, a {
    width: 100%;
  }

article {
  font-family: "Roboto", sans-serif;
  border: 1px solid #334155;
  background-color: #1e293b;
  padding: 0% 4% 4% 4%;
  border-radius: 5px;
  line-height: 1.6;
  height: auto;
}
.description-wrapper {
  text-align: center;
}
.description {
  font-family: "Roboto", sans-serif;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(20deg, cyan, magenta);
  -webkit-background-clip: text;
  white-space: nowrap;
  border-right: .4em solid white;
  animation: cursor .8s step-end infinite, typing 5s steps(26, end);
  display: inline-block;
  align-items: center;
  margin-top: 0;
  margin-bottom: 2%;
}

@keyframes cursor {
  50% { border-color: transparent; }
}

@keyframes typing {
  0%, 10% {
    width: 0%;
  }
  70%, 100% {
    width: 20ch;
  }
}

#loader {
  position: fixed;
  width: 100vw;
  height: 100vh;
  /* background: rgba(255,255,255,0.7); */
  top: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

footer {
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  margin: 3% auto;
  border-radius: 5px;
  padding: 1% 1% 1% 1%;
  color: white;
  font-family: "Roboto", sans-serif;
}

.footer-left {
  text-align: left;
}
.footer-right {
  font-size: 0.8em;
  text-align: right;
}

.card-container {
  display:flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
}
.card {
  width: 150px;
  height: 150px;
  margin: 10px;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cardAnswer {
  display: none;
  position: absolute;
  color: #333;
  font-size: 1em;
}

.card:hover .cardAnswer {

  display: block;
}
.card:hover .cardQuestion {
  
  display: none;
}

.cardQuestion {
  font-size: 1em;
  font-weight: bold;
  color: #333;
}

.home {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: white;
  padding-top: 20px;
}

p {
  color: white;
}

.quizzes {
  font-family: "Roboto", sans-serif;
  color: white;
  
}

.quiz-container{
  overflow: auto;
  min-height: 300px;
  padding-bottom: 10px;
}

.question, .answers{
  display:block,
}
