/* 
  * Quizz CSS
  * Made by CBTW
*/

/* Variables  */
:root {
    --main-color: #FFF7E4;
    --black-color: #000000;
    --dark-color: #1c1c1c;
    --white-color: #FFFFFF; 
    --yellow-color: #ffed50;
    --blue-color: #3da2d6;
    --beige-color: #eeeade;
  }
  
  /* Typographies */
  h1 {
    font-family: "Libre Baskerville", serif;
    font-weight: 600;
    font-style: normal;
    font-size: 2.2rem;
    color : var(--dark-color); 
    margin-bottom: 12px; 
  }
  
  p {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    color : var(--dark-color);  
    padding: 8px 0 16px 0;  
  }
  
  a {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    color : var(--blue-color);   
  }
  
  
  * {
    box-sizing: border-box;
  }
  
  /* Generic */
  * {
    margin: 0;
    padding: 0;
  }
  
  html { 
    background-color: var(--main-color);
  }
  
  body {
    display: flex;
    margin-right: auto;
    margin-left: auto;
    padding: 8px;
    margin: 0;
    height: 100vh;
    flex-flow: column;
    justify-content: center;
    align-items: center;
  
    @media only screen and (max-width: 600px) {
      height: auto; 
    } 
  }
  
  
  @media only screen and (max-width: 600px) {
    header {
      margin-bottom: 24px;
    }
  
    footer {
      margin-top: 24px;
    }
  }   
  
  
  section {
    background-color: var(--white-color);
    border-radius: 5px;
    padding: 48px;
    border: 1px solid var(--beige-color);
    z-index: 999;
    max-width: 800px;
    @media only screen and (max-width: 600px) {
      padding: 24px;
    }  
  }
  
  .decorators {
    z-index: 1;
  }
  @media only screen and (max-width: 600px) {
    .decorators .bleft {
      display: none; 
    }
  
    .decorators .tright {
      display: none;
    }  
  }
  
  .buttons-group {
    display: flex;
    gap: 8px;
    @media only screen and (max-width: 600px) {
      width: 100%;
      justify-content: center;
      border-top: 1px solid #dedede;
      padding-top: 24px;
    }
  }
  
  button {
    background-color: var(--white-color);
    color: var(--black-color);
    border-radius: 4px;
    border: none;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: "Inter", sans-serif;
    font-weight: 400;  
    border: 1px solid var(--black-color);
    transition: all 300ms ease-in-out, color 400ms ease-out;
  }
  
  button:hover, 
  button:focus {
    background-color: var(--yellow-color);
    cursor: pointer;
  }
  
  button.disabled,
  button:disabled
  button[disabled] {
    background-color: #ededed;
    border-color: #ededed;
    color: #4e4e4e;
    cursor: not-allowed;
  }
  
  button.previous {
    border: none;
    color: #4d4d4d;
  }
  
  button.previous:hover {
    background: none;
    text-decoration: underline;
  }
  
  .hidden {
    display: none !important;
  }
  
  .decorator {
    position: absolute;
  }
  
  .tleft {
    top: 0; left: 0
  }
  
  .tright {
    top: 0; right: 0
  }
  
  .bleft {
    bottom: 0; left: 0
  }
  
  .bright {
    bottom: 0; right: 0
  }
  /* Header */
  
  /* Home */
  main.quiz-container { 
    display: flex;
    /* overflow: hidden; */
    width: 100%; height: 100%;
    margin: auto;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    gap: 0px;
    aspect-ratio: auto;
    object-fit: fill;  
  }
  
  
  .intro {
    display: flex;
    flex-direction: row;
    position: relative;
    max-width: 800px;  
    @media only screen and (max-width: 600px) {
      flex-direction: column;
    }
  }
  
  .intro-content {
    margin-top: auto;
    margin-bottom: auto;
    padding-left: 32px;
    @media only screen and (max-width: 600px) {
      padding-left: 0;
    }  
  }
  
  /* Quiz Form */
  .quiz-form {
    max-width: 800px; 
    position: relative;
  }
  
  .stepper {
    margin-bottom: 24px;
    text-align: center;
    font-size: 1.2rem;
    font-family: "Inter", sans-serif;
    font-weight: 400; 
  }
  
  .stepper span:first-child {
    font-size: 2rem;
    font-weight: 800; 
  }
  
  .question {
    display: flex;
    margin-top: auto;
    margin-bottom: auto;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    @media only screen and (max-width: 600px) {
      text-align: left;
      align-items: baseline;
    }      
  }
  
  .question p {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  
  .radios-group {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-bottom: 24px;
    align-items: center;
    @media only screen and (max-width: 600px) {
      flex-direction: column;
      align-items: baseline;
    }      
  }
  
  .radio {
    display: grid;
    grid-auto-flow: column;
    align-items: center;
    /* 
    display: flex;
    margin-bottom: 0px;
    padding: 12px 16px;
    flex: 0 1 auto; */
    border-style: solid;
    border-width: 1px;
    border-color: var(--beige-color);
    border-radius: 4px;
    background-color: var(--white-color);
    font-family: "Inter", sans-serif;
    color: var(--black-color);
    font-weight: 400;
    transition: all 300ms ease-in-out, color 400ms ease-out;
    @media only screen and (max-width: 600px) {
      display: flex;
    }    
  }
  
  input[type="radio"] {
    appearance: none;
    margin: 0 0 0 12px;
    padding-left: 12px;
    width: 14px; height: 14px;
    border: 1px solid var(--beige-color);
    border-radius: 50%;
    background-color: var(--main-color);
    cursor: pointer;
  }
  
  input[type="radio"]:hover, 
  input[type="radio"]:checked {
    background-color: var(--yellow-color);
    box-shadow: var(--yellow-color) 0 0 0 0 inset, var(--main-color) 0 0 0 0.2rem inset;
    /* border-color: var(--yellow-color); */
  }
  
  label {
    padding: 12px 12px 12px 8px;
    cursor: pointer;  
  }
  
  .radio:has(:checked),
  .radio:has(:hover) {
    background: var(--yellow-color);
    border-color: var(--yellow-color);
  }
  
  /* Results */
  .results-content h1 {
    margin-top: 0;
  }
  
  .results-content p.score {
    background-color: var(--yellow-color);
    font-size: 1.2rem;
    padding: 16px;
    border-radius: 100px;
    text-align: center;
    margin: 32px 0 24px 0;
  }
  
  .results-content:before {
    content: '';
    background-image: url(images/Tadam.svg);
    width: 98px; height: 44px;
    display: block;
    position: absolute; 
  }
  
  @media only screen and (min-width: 601px) {
    .results-content:before {
      margin-top: -78px;
      margin-left: -30px;
    }
  }
  
  @media only screen and (max-width: 600px) {
    .results-content:before {
      margin-top: -58px;
      margin-left: -10px;
    }  
  
  }   
  
  .results-content h1 {
    text-align: center;
  }
  
  .results-content .cbtw {
    border: 1px solid #fafafa;
    border-radius: 5px;
    padding: 16px;
    background: #fafafa;
    margin-top: 8px;
  }
  
  
  /* Footer */
  footer {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    z-index: 9999;
    @media only screen and (max-width: 600px) {
      text-align: center;
    }  
  }
  
  footer p,
  footer a {
    font-size: 0.8rem;
  }