:root {
    --bg-color: #ffffff;
    --bg-secondary-color: #002e42;
    --color-primary: #0577a0;
    --color-lightGrey: #d2d6dd;
    --color-grey: #747681;
    --color-darkGrey: #3f4144;
    --color-error: #d43939;
    --color-success: #28bd14;
    --grid-maxWidth: 120rem;v
    --grid-gutter: 2rem;
    --font-size: 1.6rem;
    --font-color: #333333;
    --font-family-sans: sans-serif;
    --font-family-mono: monaco, "Consolas", "Lucida Console", monospace;
  }

  html{
    font-family: Helvetica, Arial, sans-serif;
  }

  nav {
    /*background-color: var(--bg-secondary-color);*/
    /*background-color: #d5dbdb;*/
    background-color: #ffffff;
    /*background-image: linear-gradient(to right, white, lightgray,darkblue);*/
  }

  .nav-text{
    color: var(--bg-color);
    padding: 0px;
    margin: 0px;
  }

  .logo{
    height: 80px;
    margin-top: 0px;
  }

  .main{
    min-height: 82.5vh;
  }

  footer{
    background-color: var( --color-lightGrey);
    color: var(--color-grey);
    text-align: center;
    padding: 10px;

  }

  /* make scrollbar smaller */
  ::-webkit-scrollbar {
    width: 5px;
  }

  /* Track */
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
  }

  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #888;
  }

  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #555;
  }

  /* center horizontally and vertically */
  .landing-section {
    justify-content: center;
    align-items: center;
    margin-top: 100px!important;
  }

  .landing-text{
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--font-color);
  }

  .landing-button a, .landing-button button{
    background-color: var(--bg-secondary-color);
    color: var(--bg-color);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    text-decoration: none;
  }


  .paint_colours{
    max-width: 95%;
    max-height: 500px;
  }

  .option-icons{
    width: 100px;
  }

  .mt-20{
    margin-top: 20px;
  }

  .landing-text b{
    color: var(--color-primary);
  }

  .circle-number{
    border: 5px solid var(--bg-secondary-color);
    border-radius: 50%;
    height: 50px;
    width: 50px;
    font-size: 2rem;
    color: var(--color-darkGrey);
  }


  input[type="file"] {
    display: none;
  }

  .hide{
    display: none!important;
  }

  img {
    max-width: 100%;
  }

  #colour-sample{
    justify-content: space-between;
    margin-top: 20px;
    width: 100px;
    height: 100px;
    border: 1px solid var(--color-lightGrey);
    outline: 1px solid var(--bg-secondary-color);
    margin: 0 auto;
  }

  .sample{
    display: none;
  }

  .question-text{
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--font-color);
  }

  .question-button{
    margin: 1px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    padding: 5px;
    border-radius: 5px;
    min-height: 40px;
    cursor: pointer;
  }

 .picked{
    outline: 2px solid green!important;
    cursor: pointer;
  }

.ranges{  
  font-size: 15px;
  margin-bottom: 35px;
  cursor: pointer;
}

.right{
  float: right;
  right: 0;
  clear: right; /* Add this line */
}

.left{
  left: 0;
  clear: left; /* Add this line */
  display: inline-block;
}


.clearfix::after {
  content: "";
  display: table;
  clear: both;
  margin-top: 40px;
}

.modern-text{
  font-family: 'Roboto', sans-serif;
  font-weight: 200;
}

.classic-text{
  font-family: cursive, Times, serif;
}

.gentle-text{
  font-family: 'Arial', sans-serif;
  font-weight: 100;
}

.bold-text{
  font-family: 'Impact', sans-serif;
}

.simple-text{
  font-family: 'Courier New', sans-serif;
}

.busy-text{
  font-family: 'Comic Sans MS', fantasy;
  word-spacing: 0px;
}

.color-circle{
  border: 1px solid var(--color-lightGrey);
  border-radius: 50%;
  height: 40px;
  width: 40px;
  font-size: 2rem;
  color: var(--color-darkGrey);
  cursor: pointer;
}

.ml-20{
  margin-left: 20px;
}

.circle-red{
  background-color: red;
}

.circle-blue{
  background-color: blue;
}

.circle-green{
  background-color: green;
}

.circle-blue.picked{
  border: 5px solid darkblue!important;
}

.circle-red.picked{
  border: 5px solid darkblue!important;
}

.circle-green.picked{
  border: 5px solid darkblue!important;
}

.cursor, input{
  cursor: pointer;
}

.left-range{
  float: left;
  clear: left;
}

.right-range{
  float: right;
  clear: right;
}

.text-decoration-none{
  text-decoration: none;
}

.inline{
  display: inline-block;
}

.underlay-darker{
  background-color: #000000bf;
}

.horizontal-center{
  margin: 0 auto;
}

.error{
  color: var(--color-error);
}

input[type="email"], input[type="password"]{
  padding: 10px;
  margin: 10px 0;
  border: 1px solid var(--color-lightGrey);
  border-radius: 5px;
  background-color: #00bbff1a;
}

.login-btn{
  background-color: var(--bg-secondary-color);
  color: var(--bg-color);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
}

.logout{
  padding-right: 50px;
  padding-top: 25px;
}

.logout a{
  background-color: #a9a9a9;
  color: var(--bg-color);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 5px solid #ccc;
  border-top-color: #333;
  animation: spin 1s linear infinite; /* Apply the spin animation */
  display: none;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg); /* Rotate the spinner 360 degrees */
  }
}

#button.htmx-request{
  display: none!important;
}

button.htmx-request{
  display: none!important;
}

.htmx-request{
  display: block!important;
}


.question-image{
  height: 350px;
}

.finish-image{
  height: 300px;
}

.color-squares{
  display: inline-block;
  margin-left: 10px;
  height: 50px;
  width: 50px;
  border: 1px solid var(--color-lightGrey);
}

.color-small-squares{
  display: inline-block;
  margin-left: 5px;
  height: 30px;
  width: 30px;
  border: 1px solid var(--color-lightGrey);
}

.color-name{
  height: 50px;
  border: 1px solid var(--color-lightGrey);
  color: var(--color-darkGrey);
  min-width: 140px;
  font-size: 35px;
  text-align: center;
  padding-left: 10px;
  padding-right: 10px;
}

.color-descr{
  border: 1px solid var(--color-lightGrey);
  width: 80%;
  padding: 10px;
}

.ml-0{
  margin-left: 0px!important;
}

.mr-0{
  margin-right: 0px!important;
}

.pallette-squares{
  display: table-cell;
  height: 20px;
  width: 20px;
  margin-left: -5px;
}

.pallette{
  overflow: hidden;
}

.mb-0{
  margin-bottom: 0px!important;
}

.mb-20{
  margin-bottom: 20px!important;
}

.cursor-pointer{
  cursor: pointer;
}

.pallette-list{
  margin: 0px;
  padding: 0px;
  background-color: var(--color-primary);
  border-radius: 5px 5px 0px 0px;
}

.pallette-list p{
  font-size: 15px;
  font-weight: 500;
  color: var(--color-lightGrey);
  padding: 0px;
  margin: 1px;
}

.pallette-list.htmx-request{
  animation: flickerAnimation 0.5s infinite alternate;
}

@keyframes flickerAnimation {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}

.height-section{
  height: 150px!important;
}

.two{
  padding:5px;
  border-radius: 5px;
}
@media screen and (max-width: 509px) {
  .logout{
    margin-top: -60px;
    left: 0;
  }

  .nav-text{
    margin-top: 20px;
    font-size: 15px;
  }
  .logout a{
    color: var(--bg-color);
    padding: 5px 5px;
    border: none;
    text-decoration: none;
    margin-left: 30px!important;
  }
}


a{
  text-decoration: none;
}

.question-input{
  padding: 10px;
  margin: 10px 0;
  border: 1px solid var(--color-lightGrey);
  border-radius: 5px;
  width: 200px;
}


.mt-100{
  margin-top: 100px!important;
}

.para{
  line-height: 21px!important;
  font-size: 20px!important;
  font-weight: 300;
  margin-top: 0px!important;
  margin-bottom: 0px!important;
}