:root {
  --grad2_sat: 100%;
  --grad2_lig: 75%;
  --grad2_alp: 1.0;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

html{
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* add padding to prevent element from being hidden behind fixed navbar */
  overflow: auto;
}

body{
  margin:0;
  padding:0;
  text-align: center;
  background-color: #444;
  font-family: "Montserrat", "sans-serif";
  overflow: auto;
}

#main{
  margin:0 auto;
  padding: 16px 24px 32px 24px;
  width: 920px;
  /*
  background: linear-gradient(hsl(20,100%,98%), hsl(120,100%,94%), hsl(220,100%,90%));;
  */
  background: #AFF;
  border-width: 0 4px;
  border-style: solid;
  border-color: #BBB;
}

section{
  margin: 0 ;
  padding: 0 0 24px 0;
}

#header_section{
  border-bottom: 1px solid #EEE;
}

#page_category, #page_title{
  display: block;
  margin:0;
  font-size: 1.4rem;
  line-height: 1.4;
  text-decoration: none;
}


#quiz_section{
  border: 0px solid #CFC;
  border-radius: 8px;
  background: none;
}

#quiz_title{
  display: block;
  margin: 48px 0 64px 0;
  font-size: 2.8rem;
  line-height: 1.0;
  text-decoration: underline;
}

p{
  margin:0;
  padding:0;
  display: block;
}

a{
  text-decoration: underline;
  color: #000;
}

a:visited{
color: #000;
}

a:active{
  color: #F20;
}

span.italic{
  font-style: italic;
}

span.emphatic{
  font-style: italic;
  font-weight: 550;
}

span.small{
  font-size: 0.9em;
  font-weight: 450;
}

div.info_row{
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap:24px;
}

.alert{
  font-family: 'Comic Sans MS', sans-serif;
  font-size: 0.9rem;
  margin:0px;
  padding: 12px 32px;
  width: 360px;
  background: #FFC040A0;
  border-radius: 128px;
  border: 2px solid #FFA000FF;
  outline: 6px dotted #FFC000C0;
  outline-offset: -2px;
}

.button{
  font-size:1.2rem;
  font-weight: 700;
  font-family: sans-serif;
  margin: 0 8px;
  padding: 8px 24px;
  background: #000;
  color: #FFF;
  border-radius: 60px;
  border: 1px solid #AAA;
  outline: 1px solid #000;
  cursor: pointer;
  display:inline-block;
}

.button:hover{
  background: #F11;
}

.button:active{
  background: #FE0;
}

.quiz_intro{
  margin:24px 0;
  padding:8px;
  border: 0px solid blue;
  font-size: 2.0rem;
  line-height: 2.4rem;
  font-weight: 500;
}

#questions_container{
  width: 780px;
  border: 0px solid #FCC;
  background: none;
  border-radius: 4px;
  margin: 16px auto;
  padding: 0px;
  display: flex;
  flex-direction: column;
  gap:16px;
}

div.questions_intro{
  font-size: 1.2rem;
}

.question_block{
  margin: 16px 0;
  padding: 16px;
  border-radius: 8px;
}

.question_block_unanswered{
  background: hsla(0,100%,100%,0.5);
  border: 2px solid hsla(0,0%,25%,0.5);
  color: #000;
  transition: background-color 0.4s;
}

.question_block_unanswered:hover{
  background: hsla(0,100%,50%,1.0);
  border: 2px solid hsla(0,0%,0%,1.0);
  transition: background-color 12.0s;
}

.question_block_answered{
  background: hsla(0,0%,100%,0.25);
  border: 2px solid hsla(180,0%,25%,0.5);
  color: #222;
}

.question_header{
  margin: 8px 16px 16px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.question_number{
  margin-left: 8px;
  margin-top: 4px;
  font-size: 1.8rem;
  font-weight: 600;
  align-self: flex-start;
}

.question_text{
  margin: auto;
  font-size: 2.2rem;
  font-style: italic;
  font-weight: 600px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.answers_container{
  background: none;
  border-radius: 4px;
  margin:8px;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  border: none;
  color: #000;
  gap: 32px;
}

.answer_block{
  width:286px;
  text-align: center;
  margin: 4px;
  padding: 0px 16px 24px 16px;
  display: flex;
  flex-direction: column;
}

.answer_block_undecided{
  text-decoration: none;
  background-color: hsla(0,0%,100%,0.90);
  color: #000;
  cursor: pointer;
  border: 3px solid transparent;
  border-image: linear-gradient(180deg,
    hsl(000, var(--grad2_sat), var(--grad2_lig)),
    hsl(060, var(--grad2_sat), var(--grad2_lig)),
    hsl(120, var(--grad2_sat), var(--grad2_lig)),
    hsl(180, var(--grad2_sat), var(--grad2_lig)),
    hsl(240, var(--grad2_sat), var(--grad2_lig)),
    hsl(300, var(--grad2_sat), var(--grad2_lig))
    );

    border-image-slice: 1;
    outline: 4px outset #FF000000;
    transition: outline 1.2s;
    transition: background-color 0.6s;
  }

  .answer_block_undecided:hover{
    outline: 2px outset #000;
    background-color: #F00;
    transition: background-color 4s;
  }

  .answer_block_undecided:hover > .answer_comment{
    opacity: 1;
  }

  .answer_block_selected{
    text-decoration: none;
    background-color: #F30;
    border-radius: 8px;
    border: 1px solid #FC8;
    outline: 2px solid #A00;
    color: #000;
    cursor: default;
  }

  .answer_block_rejected{
    border: 2px solid hsla(280, 0%, 50%, 0.4); /* set the border width and color to transparent */
    background: hsla(0, 0%, 100%, 0.6);
    border-radius: 8px;
    color: #666;
    cursor: pointer;
  }

  .answer_text{
    display: block;
    margin: 24px 0 0px 0;
    font-size: 1.8rem;
    font-weight: 800;
  }

  .answer_comment{
    display: block;
    font-size: 1.2rem;
    font-style: italic;
    transition: opacity 1.0s;
  }

  .answer_comment_undecided{
    opacity: 0;
  }

  .answer_comment_selected{
    opacity: 1;
  }

  .answer_comment_rejected{
    opacity: 0;
  }

  .answer_image{
    display: block;
  }

  .hotisonal_line{
    height: 0px;

  }

  /*
  * Quiz Result
  */

  #results_container{
    border: 0px solid yellow;
    width: 780px;
    margin: 0 auto;
  }

  #results_separator{
    border-top: 4px dotted #666;
  }

  #results_container_inner{
    border: 0px solid red;
  }

  #results_title{
    border: 0px solid green;
    font-family: sans-serif;
  }


  /*
  * Results Items
  */

  #results_items_container{
    margin: 32px 0px;
    padding: 16px 0px 24px 0;
    border: 1px solid #888;
    border-radius: 16px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #000;
    cursor: pointer;
  }

  div.results_item{
    border: none;
    margin: 8px;
    padding: 0px;
    background: none;
  }

  img.results_item_image{
    height: 64px;
    width: 64px;
    object-fit: cover;
    margin:0;
    padding: 0;
    display: block;
    border-radius: 24px;
    outline: 2px solid #BBB;
  }

  img.results_item_image_unselected{
    filter: grayscale(100%) brightness(70%) contrast(240%);
  }

  img.results_item_image_selected{
    filter: grayscale(0%) brightness(100%) contrast(100%);
  }

  img.results_item_image:hover{
    outline: 2px solid #FFF;
  }

  /*
  / Result Selected Item
  */

  #result_selected_item_container{
    margin: 16px 0;
    padding: 32px 8px 32px 8px;
    outline: 4px solid hsla(0,0%,0%,1.0);
    border:1px solid #AAA;
    border-radius: 16px;
    background-color: #000;
  }

  #result_selected_item_title{
    margin: 16px 0 16px 0;
    font-weight: 900;
  }

  #result_selected_item_header{
    margin: 0px;
    padding: 0px 0 32px 0;
    border:0px solid #6F6;
  }

  #result_selected_item_title{
    border:0px solid #A0F;
    background: none;
    margin: 0px;
    padding: 0px 0 8px 0;
    display: block;
    font-size: 3.2em;
    color: #FFF;
  }

  #result_selected_item_subtitle{
    border:0px solid #A0F;
    background: none;
    margin: 0px;
    padding: 0px 0 0px 0;
    display: block;
    font-size: 1.4em;
    color: #FFF;
  }

  a.result_selected_item_image_link{
    border: 0px solid #8FA;
    display: inline-block;
    margin: 0 0 16px 0;
  }

  img.result_selected_item_image{
    border:0px solid #F2F;
    margin:0;
    padding:0;
    display: block;
    max-width: 100%;
    max-height: 360px;
    object-fit: scale-down;
    border-radius: 16px;
  }

  div.result_selected_item_image_footer{
    border:0px solid #F2F;
    margin:0;
    padding: 0 0 32px 0;
  }

  #result_selected_item_descriptions_container{
    border: 0px solid #A0F;
    width: 520px;
    margin: 0px auto;
    padding: 0 8px 32px 8px;
    text-align: left;
  }

  p.result_selected_item_description{
    color: #FFF;
  }

  p.result_selected_item_note{
    border: 0px solid #A0F;
    margin: 0 0px;
    padding: 0px 0px 4px 0px;
    color:#FFF;
    display: block;
  }

  #results_footer{
    margin: 32px;
  }
