:root {
  --main-bg-color:#EAEAEA;
  --main-text-color: #ffffff;
  --main-accent-color: #d91e49;
  --hover-color: #f07491;
  --secondary-accent-color: #4D4D4F;
  --xtandi-color: #BC3626;
  --x-offset: 20px;
  --y-offset: 10px;
  --animation-duration: 10s;
  --fade-in-delay: 1.5s;
}

@font-face {
  font-family: 'Noto Sans';
  font-style: normal;      
}  

@media screen and (min-width: 1401px) {
}

@media screen and (max-width: 1400px) and (min-width: 601px) {
}

@media screen and (max-width: 600px) {
}

/*-----*/

@media screen and (max-width: 600px) {
}

@media screen and (min-width: 601px) {
}


html, body {
  background: var(--main-bg-color);
  display: flex;
  justify-content: center; 
  font-family: 'Helvetica', 'Arial', sans-serif;
  flex-flow: column;
  align-items: center;
  min-height: 100vh;
}

.main-app{
  margin: 3vh 0;
  z-index: 10;
}

input[type="text"], textarea {

  background-color : var(--main-bg-color); 

}

/* Overriding the browser's autofill background color */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--main-bg-color) inset !important;
  box-shadow: 0 0 0 30px var(--main-bg-color) inset !important;
  -webkit-text-fill-color: #000 !important; /* Adjust text color if necessary */
  transition: background-color 5000s ease-in-out 0s !important;
}


.custom-input{
  border: none;
  outline: none;
  background: #eee;
  padding: 20px;
  border-radius: 6px;
  font-size: 100%;
}

.custom-input:focus{
  background: #eee;
}

.background{
  position: absolute;
  width: 100vw;
  height: 100vh;
  background-color: var(--main-bg-color);
  z-index: 0;
}

/*LOGIN PAGE*/
.login-container{
  background: #fff;
  width: 90vw;
  max-width: 1600px;
  border-radius: 24px;
  box-shadow: 16px 16px 8px rgba(0, 0, 0, .1);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2% 0;
  min-height: 80vh;
  margin-top: 5vh;
  flex-flow: column;
  gap: 15px;
  z-index: 1;
	position: relative;
}

.login-form{
  display: flex;
  flex-flow: column;
  width: fit-content;
  gap: 2vh;
  align-items: center;
  max-width: 90%;
}
.login-form p{
  font-size: large;
  font-weight: bold;
  text-align: center;
}

.login-form-input{
  width: 100%;
  display: flex;
  flex-flow: column;
  gap: 1vh;
  justify-content: space-between;
}

.login-input{
  width: 100%;
  justify-content: space-between;
  display: flex;
  align-items: center;
}

.login-logo{
  position: absolute;
  top: 0;

  
  object-fit: contain;
}

@media screen and (max-width: 600px) {
  .login-logo{
    width: auto;
    max-width: 100%;
    height: 80px;
    right: 5%;
  }
}

@media screen and (min-width: 601px) {
  .login-logo{
    width: 16vw;
    min-height: 95px;
    right: 2%;
  }
}

.error{
  color:red;
}

.bottom{
	padding-left: 3%;
  bottom: 0px;
  height: 44px;
  position: absolute;
  left: 0;
}

/*QUIZES PAGE*/
.container {
  background: #fff;
  width: 90vw;
  max-width: 1600px;
  border-radius: 24px;
  box-shadow: 16px 16px 8px rgba(0, 0, 0, .1);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2% 0;
}

@media screen and (max-width: 600px) {
  .container {
    margin-top: 60px;
  }
}

@media screen and (min-width: 601px) {
  .container {
    
  }
}

.contact-form-container {
  height: 90%;
  width: 90%;
}

.contact-form {
  height: 100%;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-content: space-around;
  gap: 10px;
}

.form-header {
  font-weight: 700;
  align-self: flex-start;
  color: var(--main-accent-color);
  text-align: center;
}

@media screen and (max-width: 600px) {
  .form-header {
    font-size: x-large;
    padding: 3vh 0;
  }
}

@media screen and (min-width: 601px) {
  .form-header {
    font-size: xxx-large;
  }
}

.results-header {
  font-weight: 700;
  align-self: flex-start;
  color: var(--main-accent-color);
  text-align: center;
  padding-bottom: 3%;
}

@media screen and (max-width: 600px) {
  .results-header{
    font-size: large;
    padding: 3vh 0;
    align-self: flex-start;
  }
}

@media screen and (min-width: 601px) {
  .results-header{
    font-size: xx-large;
    align-self: center;
  }
}


.submit {
  border: none;
  outline: none;
  color: var(--main-text-color);
  width: 100%;
  padding: 20px;
  background: var(--main-accent-color);
  font-size: x-large;
  font-weight: 600;
  border-radius: 6px;
  transition: transform 300ms 0s cubic-bezier(0, 0.23, 0.29, 2.45);
  margin-bottom: 5vh;
	color: white;
  text-decoration: none;
  text-align: center;
}

.submit:hover {
  cursor: pointer;
  background: var(--hover-color);
  transform: translateY(-2px);
	color: white;
  text-decoration: none;
  text-align: center;
}

.quiz-form{
  width: 100%;
}

.question-container {
  margin-bottom: 20px;
  width: 100%;
  display: flex;
  flex-flow: wrap;
  justify-content: space-between;
  background-color: var(--main-bg-color);
  
  border-radius: 6px;
  border-left: 10px solid #d91e49;
}



@media screen and (max-width: 600px) {
  .question-container {
    padding: 2% 2% 2% 5%;
  }
}

@media screen and (min-width: 601px) {
  .question-container {
    padding: 2%;
  }
}


.question-container p{
  font-size: x-large;
  font-weight: bold;
}

.answers{
  display: flex;
  flex-flow: row wrap;
}

@media screen and (max-width: 600px) {
  .answers{
    width: 100%;
    row-gap: 10px;
  }

}

.answers button {
  margin-right: 10px;
  padding: 5px 20px;
  border-radius: 6px;
  border: 1px solid #d0d0d0;
  background-color: var(--main-text-color);
  min-width: 60px;
}

.answers button:hover{
  background-color: var(--hover-color);
  color: white;
}

.answers button.selected {
  background-color: var(--main-accent-color);
  color: var(--main-text-color)
}
.result {
  width: 100%;
  margin: 0;
}

@media screen and (max-width: 600px) {
  .result {
    padding: 7% 0%;
  }
}

@media screen and (min-width: 601px) {
  .result {
    padding: 2% 0%;
  }
}

.app-bottom{
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  width: 100%;

}

.notes{
  min-width: 200px;
  max-width: 100%;
  margin-bottom: 5%;
}


.notes p{
  margin-bottom: 2px;
  font-size: small;
}

/*RESULT POPUP*/
 /* Overlay styles */
 .overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  display:none;
}
.overlay-content {
  background: #fff;

  border-radius: 8px;
  width: 90vw;
  min-height: 80vh;
  display: flex;
  flex-flow: column;
  margin-top: 5vh;
  position: absolute;
  scroll-behavior: smooth;
  max-height: 90vh;
  overflow-y: auto;
  max-width: 1535px;
}


@media screen and (max-width: 600px) {
  .overlay-content {
    padding: 4vw;
    
  }
}

@media screen and (min-width: 601px) {
  .overlay-content {
    padding: 2%;
  }
}


.close-button {
  float: right;
  cursor: pointer;
  font-size: 47px;
  align-self: end;
  text-align: center;
  height: 40px;
  position: relative;
  top: 2%;
}

.overlay-results p{
  background-color: var(--main-bg-color);
  
  padding: 1vh;
}


@media screen and (max-width: 600px) {
  .overlay-results p{
    font-size: medium;
  }
}

@media screen and (min-width: 601px) {
  .overlay-results p{
    font-size: large;
  }
}

.result span{
  color: var(--xtandi-color);
  font-weight: bold;
}

.overlay-results span{
  color: var(--xtandi-color);
  font-weight: bold;
}