
/* EXTRA-LIGHT */
@font-face {
  font-family: ibm;
  src: url(/assets/fonts/IBMplexMono/IBMPlexMono-ExtraLight.ttf);
  font-weight: 200;
}

/* LIGHT */
@font-face {
  font-family: ibm;
  src: url(/assets/fonts/IBMplexMono/IBMPlexMono-Light.ttf);
  font-weight: 300;
}

/* REGULAR */
@font-face {
  font-family: ibm;
  src: url(/assets/fonts/IBMplexMono/IBMPlexMono-Regular.ttf);
  font-weight: 400;
}

/* SEMIBOLD */
@font-face {
  font-family: ibm;
  src: url(/assets/fonts/IBMplexMono/IBMPlexMono-SemiBold.ttf);
  font-weight: 600;
}

/* BOLD */
@font-face {
  font-family: ibm;
  src: url(/assets/fonts/IBMplexMono/IBMPlexMono-Bold.ttf);
  font-weight: 700;
}


html, body {
  box-sizing: border-box;
  font-family: ibm;
  margin: 0;
  padding: 0;

  background-color: rgb(0, 0, 0);
  color: #ffffff;
}

canvas {
  display: none;
}

/* HOME page /////////////////////////////////////////////////////*/ 

.main_content {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: minmax(0,1fr);
  grid-template-areas: 
    "header"
    "main";
  }
  
header{
  grid-area: header;
}

main {
  grid-area: main;
  display: grid;
  grid-template-rows: auto auto auto auto;
  grid-template-columns: minmax(0,1fr);

  align-items: center;
}

h1 {
  grid-row: 1 / 2;
}
.main_text {
  grid-row: 2 / 3;
}
.main_text_highlight {
  grid-row: 3 / 4;
}
.action_btn {
  grid-row: 4 / 5;
}


header img{
  display: block;
  max-inline-size: 300px;
  margin-inline: auto;
  padding-inline: 3.5rem;
  margin-block: 1rem;
}

h1 mark {
  background-color: #fff;
}

main h1 {
  margin-block: 1rem;
  font-size: 2em;
  font-weight: 700;
  text-align: center;
}

main p {
  display: block;
  margin: auto;
  max-inline-size: 85%;
  font-size: 1.2em;
  font-weight: 300;
  text-align: center;
}

main p strong {
  font-weight: 600;
  text-decoration: underline;
}

.main_text_highlight {
  margin-block: 1rem;
}

.action_btn {
  border: none;
  background: none;
  display: block;
  margin-block: 1rem;
  margin-inline: auto;
  transition: transform 100ms ease-in-out;
}

.action_btn a {
  background: #fff;
  padding: 0 4px 0 4px;
  color: #000;
  font-family: ibm;
  font-weight: 700;
  font-size: 2em;
  text-decoration: none;
  transition: text-decoration 100ms ease-in-out;
}

.action_btn:hover {
  transform: translate(10px, -3px);
}

footer {
  margin-inline: auto;
  margin-block: 2rem auto;
  max-inline-size: 400px;
  background: #fff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

footer p {
  font-size: 0.8em;
  font-weight: 600;
  color: #000;
  margin: 0;
}

footer a {
  color: inherit;
}

/* SECTIONS page /////////////////////////////////////////////////////*/ 

.input_section {
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0,1fr);
  grid-template-rows: 1fr auto;
  grid-template-areas: 
    "input_content"
    "buttons";
  align-items: center;
  text-align: center;
}

.input_content {
  grid-area: input_content;
}

.buttons {
  grid-area: buttons;
}

/* TITLE textarea /////////////////////////////////////////////////////////////////////////// */

.input_title {
  margin-block: 3rem;
  margin-inline: auto;
  width: 300px;
  
  display: grid;
  grid-template-rows: 2.7em 2.7em 2.7em;
  grid-template-columns: 1fr;
}

#title_input {
  z-index: 2;
  grid-row: 1 / 4;
  grid-column: 1 / 2;
}

#title_input_underline1 {
  grid-row: 1 / 2;
  grid-column: 1 / 2;}

#title_input_underline2 {
  grid-row: 2 / 3;
  grid-column: 1 / 2;
}

#title_input_underline3 {
  grid-row: 3 / 4;
  grid-column: 1 / 2;
}

textarea {
  padding: 0;
  border: none;
  background-color: transparent;
  color: #fff;
  font-family: ibm;
  font-size: 2em;
  font-weight: 300;
  line-height: 1.35em;
  resize: none;
  text-align: left;
}


textarea::placeholder {
  color: #fff;
  opacity: 50%;
  font-weight: 300;
}

textarea:focus {
  outline: none;
}

.input_line{
  z-index: 1;
  margin: 0;
  height: 2.3em ;
  border-style: solid;
  border-width: 0 0 3px 0;
  border-color: #fff;
}

/* DESCRIPTION textarea ///////////////////////////////////////////////////////////////////////////*/


.input_descrip {
  margin-block: 3rem;
  margin-inline: auto;
  width: 300px;
  
  display: grid;
  grid-template-rows: 2.7em 2.7em 2.7em 2.7em 2.7em ;
  grid-template-columns: 1fr;
}

#description_input {
  z-index: 2;
  grid-row: 1 / 6;
  grid-column: 1 / 2;
}

#descrip_input_underline1 {
  grid-row: 1 / 2;
  grid-column: 1 / 2;}

#descrip_input_underline2 {
  grid-row: 2 / 3;
  grid-column: 1 / 2;
}

#descrip_input_underline3 {
  grid-row: 3 / 4;
  grid-column: 1 / 2;
}

#descrip_input_underline4 {
  grid-row: 4 / 5;
  grid-column: 1 / 2;
}

#descrip_input_underline5 {
  grid-row: 5 / 6;
  grid-column: 1 / 2;
}

/* DATE input /////////////////////////////////////////////////////////////////////////// */



.input_date {
  margin-block: 3rem;
  margin-inline: auto;
  width: 300px;
}

.input_date input {
  font-family: ibm;
  font-weight: 300;
  font-size: 2em;
}

.input_date p {
  margin-block: 0.5rem;
  font-size: 1em; 
  font-weight: 300;
  text-align: left;
}

input[type="date"] {
  padding: 0;
  margin-inline: auto;
  width: 300px;
  border-style: none;
  border-radius: 0%;
  --text-color: transparent;
  color: var(--text-color);
  height: 40px;
  text-align: center;

  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

input[type="date"]::-webkit-datetime-edit-day-field {
  color: var(--text-color);
}
input[type="date"]::-webkit-datetime-edit-month-field {
  color: var(--text-color);
}
input[type="date"]::-webkit-datetime-edit-year-field {
  color: var(--text-color);
}

input[type="date"]:focus {
  outline: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  display: none;
}

.question_title {
  width: 90%;
  display: block;
  margin-block: 2rem 0rem;
  margin-inline: auto;
  font-size: 2em;
  font-weight: 600;
  text-align: center;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  outline: none;
  background: #fff;
  color: #fff;
  margin: 0;
  align-self: center ;
}

.slider_box {
  width: 80%;
  height: 20px;
  border-width: 0 3px 0 3px ;
  border-style: solid;
  border-color: #fff;
  border-radius: 0%;
  margin: 4rem 1rem 4rem auto;
  display: flex;
}

.slider_box_andnum{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin: 0 1rem;
}

.slider_num{
  align-self: center;
  margin-inline: 1rem auto;
  font-size: 1.5em;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background-color: #fff;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background-color: #fff;
  cursor: pointer;
}

/* buttons /////////////////////////////////////////////////////////////////////////// */

.buttons {
  margin-block: 2rem;
  display: grid;
  grid-template-columns: 1fr minmax(auto,200px) minmax(auto,200px) 1fr;
}

.light_button {
  border: none;
  background: transparent;
  color: #fff;
  text-decoration: underline;
  font-family: ibm;
  font-size: 1.5rem;
  font-weight: 300;
  padding: 0;
}

.light_button:hover {
  background: #fff;
  color: #000;
  font-weight: 400;
}

.disabled_light_button {
  opacity: 50%;
}

.disabled_light_button:hover {
  background: transparent;
  color: #fff;
  font-weight: 300;
}

.bold_button {
  border: none;
  background: #fff;
  color: #000;
  font-family: ibm;
  font-size: 1.5rem;
  font-weight: 400;
  padding: 0;
}

.bold_button:hover {
/*   background: none;
  color: #fff;
  text-decoration: underline;
  font-weight: 300; */
  transform: translate(0, 5px);
}

.next {
  grid-column: 3/4;
  margin-inline: auto 2rem;
}
.prev {
  grid-column: 2/3;
  margin-inline: 2rem auto;
}

.result_buttons {
  margin: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr minmax(auto,200px) minmax(auto,200px) minmax(auto,200px) 1fr;
}

.restart {
  grid-column: 2/3;
  margin-inline: auto;
}

.edit{
  grid-column: 3/4;
  margin-inline: auto;
}

.save{
  grid-column: 4/5;
  margin-inline: auto;
}

/* color buttons */

#result_customize{
  margin: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr minmax(auto,100px) minmax(auto,100px) minmax(auto,100px) minmax(auto,100px) minmax(auto,100px) minmax(auto,100px) 1fr;
}

.color_button {
  padding: 10px;
  border-style: none;
}

:root {
  --pink: rgb(255, 0, 170);
  --green: rgb(0, 200, 0);
  --blue: rgb(0, 100, 255);
  --red: rgb(255, 0, 0);
  --orange: rgb(255, 120, 0);
}

#pink_button {
  background-color: var(--pink);
  grid-column: 2/3;
  margin-inline: auto;
}

#green_button {
  background-color: var(--green);
  grid-column: 3/4;
  margin-inline: auto;
}

#blue_button {
  background-color: var(--blue);
  grid-column: 4/5;
  margin-inline: auto;
}

#red_button {
  background-color: var(--red);
  grid-column: 5/6;
  margin-inline: auto;
}

#orange_button {
  background-color: var(--orange);
  grid-column: 6/7;
  margin-inline: auto;
}

#white_button {
  background-color: #ffffff;
  grid-column: 7/8;
  margin-inline: auto;
}



/* RESULTS section ///////////////////////////////////////////////////// */

.section_result {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas: 
  "result_customize"
  "result_board"
  "result_buttons";
  align-items: center;
  text-align: center;
}

#result_customize {
  grid-area: result_customize;
}

.result_buttons {
  grid-area: result_buttons;
}

#result_board {
  align-self: center;
  grid-area: result_board;
  
  --board-height: 500px;
  height: var(--board-height);  
  width: calc((var(--board-height)*9)/16);
  display: grid;
  grid-template-rows: 1fr 1fr auto 1fr auto 1.5rem;
  grid-template-columns: 1fr;
  margin: auto;
  padding: 0.5em 1em 1em 1em;
  background-color: #fff;
  border: solid 4px;
} 

#canvas_container {
  grid-row: 1 / 2;
  width: 100%;
  aspect-ratio: 4.5 / 4;
  max-width: 100%;
}

#canvas_container canvas {
  display: block;
  width: 100%;
  height: 100%;
}


#result_board_title {
  grid-row: 2 / 3;
  margin-block: auto 0.3em;
  margin-inline: auto;
}


#result_board_date {
  grid-row: 3 / 4;
  font-size: 0.8rem;
  text-align: center;
  font-weight: 400;
  margin-block: 0 0.3em;
}

#result_board_description {
  grid-row: 4 / 5;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: underline;
  text-align: left;
  margin-block: 0.3em;
  align-self: center;
}

#result_board_question_labels {
  grid-row: 5 / 6;
  padding: 0;
  list-style-type: none;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-block: 0.3em;
}

#result_board_link{
  grid-row: 6 / 7;
}

#result_board_question_labels li {
  margin-inline-end: 5px;
}


.result_board_labels_icons {
  vertical-align: text-bottom;
  height: 16px;
}

#result_board_question_labels p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 400
}

#result_board a {
  font-size: 0.8rem;
  text-align: left;
  margin-block: 0.3em;
  font-weight: 700;
  align-self: self-end;
}

/* COLORS */

.pink mark{
  background-color: var(--pink);
  color: #fff;
}

.pink {
  color: var(--pink);
  border-color: var(--pink);
}

.green mark{
  background-color: var(--green);
  color: #fff;
}

.green {
  color: var(--green);
  border-color: var(--green);
}

.blue mark{
  background-color: var(--blue);
  color: #fff;
}

.blue {
  color:var(--blue);
  border-color: var(--blue);
}

.red mark{
  background-color: var(--red);
  color: #fff;
}

.red {
  color: var(--red);
  border-color: var(--red);
}

.orange mark{
  background-color: var(--orange);
  color: #fff;
}

.orange {
  color: var(--orange);
  border-color: var(--orange);
}

.white mark{
  background-color: #000;
  color: #fff;
}

.white {
  color: #000;
  border-color: #000;
}



/* RESPONSIVENESS /////////////////////////////////////////////////////*/

/* WIDE PHONES  */

@media (min-width:400px) {
  main h1 {
    font-size: 2.5em;
    font-weight: 700;
  }

  main p {
    display: block;
    margin: auto;
    max-inline-size: 350px;
    font-size: 1.5em;
    font-weight: 300;
  }

  .action_btn a {
  font-size: 2em;
  }

  footer{
    margin: 1em auto;
  }

  footer p {
  font-size: 1em;
  }
}


/* inbetween PHONE AND TABLET  */

@media (min-width:500px) {

  main h1 {
    font-size: 3em;
    font-weight: 700;
  }

  main p {
    display: block;
    margin: auto;
    max-inline-size: 500px;
    font-size: 1.5em;
    font-weight: 300;
  }

  .action_btn a {
  font-size: 2em;
  }

  footer{
    margin: 1em auto;
  }

  footer p {
  font-size: 1em;
  }
  
  .question_title {
    max-inline-size: 600px;
    margin-inline: auto;
  }
  
  .slider_box {
    max-inline-size: 300px;
  }
}

/* INBETWEEN DESKTOP AND TABLET */

@media (min-width:800px) {
  
  main h1 {
    display: block;
    margin: auto;
    max-inline-size: 1200px;
    font-size: 3.5em;
    font-weight: 700;
  }
  
  main p {
    display: block;
    margin: auto;
    max-inline-size: 1000px;
    font-size: 2em;
    font-weight: 300;
  }
  
  .action_btn a {
  font-size: 2rem;
  }
  
  footer{
    margin: 1em auto;
  }
}

/* DESKTOPS */

@media (min-width:1500px) {

  header img {
    display: block;
    max-inline-size: 600px;
    margin-inline: auto;
    padding-inline: 3.5rem;
    margin-block: 1rem;
  }
  
  main h1 {
    display: block;
    margin: auto;
    max-inline-size: 1400px;
    font-size: 4.5em;
    font-weight: 700;
  }
  
  main p {
    display: block;
    margin: auto;
    max-inline-size: 1000px;
    font-size: 2.5em;
    font-weight: 300;
  }
  
  .action_btn a {
  font-size: 2.5rem;
  }
  
  footer{
    margin: 1em auto;
  }
}

/* EXTRA LARGE DESKTOP */

@media (min-width:3000px) {

  header img {
  display: block;
  max-inline-size: 800px;
  margin-inline: auto;
  padding-inline: 3.5rem;
  margin-block: 1rem;
  }
  
  main h1 {
    display: block;
    margin: auto;
    max-inline-size: 250000px;
    font-size: 10em;
    font-weight: 700;
  }
  
  main p {
    display: block;
    margin: auto;
    max-inline-size: 2000px;
    font-size: 6em;
    font-weight: 300;
  }
  
  .action_btn a {
  font-size: 6rem;
  }
  
  footer{
    margin: 1em auto;
    padding: 3rem;
    max-inline-size: 1500px;

  }

  footer p {
  font-size: 3em;
  font-weight: 600;
  color: #000;
  margin: 0;
}
}