:root {
  --small-font: 2vh;
  --medium-font: 3vh;
  --large-font: 6vh;
  --huge-font: 10vh;

  --font-color: #3C4043;
  --font-family: "Google Sans", Roboto, Arial, sans-serif;

  --brand-color: #5FA8D3;
  --brand-color-shade: #5FA8D3;
  --backgroud-color: #FFF;
  --container-color: #F9F9F9;

  --border-color: #D3D3D3;
  --success-color: #D4AF37;

  --transition-time: 2s;
}

/*Tags*/
body {
  height: 100%;
  margin: 0px;
  max-width: 100%;
  overflow-x: hidden;
}

label {
  color: #3c4043;
  display: flex;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .5px;
  margin: 5px;
  max-width: 18vw;
  position: relative;
  justify-content: flex-start;
}

input, select {
  border-radius: 24px;
  border-style: none;
  box-shadow: rgba(0, 0, 0, .2) 0 3px 5px -1px,rgba(0, 0, 0, .14) 0 6px 10px 0,rgba(0, 0, 0, .12) 0 1px 18px 0;
  clear: left;
  color: #3c4043;
  display: flex;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  height: 40px;
  letter-spacing: .5px;
  margin-bottom: 35px;
  padding-left: 15px;
  position: relative;
  width: 20vw;
}

input[type="checkbox"] {
  display: block;
  appearance: none;
  position: absolute;
  cursor: pointer;
  width: 1.15em;
  height: 1.15em;
  text-align: right;
  transform: translateX(15em);
    }
input[type="checkbox"]:before {
     content: "";
     display: block;
     position: absolute;
     width: 1.15em;
     height: 1.15em;
     top: 0;
     right: 0;
     border: 2px solid #555555;
     border-radius: 3px;
     background-color: white;
}
input[type="checkbox"]:checked:after {
     content: "";
     display: block;
     width: 1.15em;
     height: 1.15em;
     border: 2px solid #555555;
     border-radius: 3px;
     background-color: #555555;
     position: absolute;
     top: 0;
     right: 0;
}

.table_with_checkbox input[type="checkbox"] {
    display: block;
    appearance: none;
    position: relative;
    cursor: pointer;
    width: 1.15em;
    height: 1.15em;
    margin: auto; /* Center horizontally */
    transform: translateX(0); /* Remove any horizontal transformation */
}

/* Hide the default checkbox */
 textarea {
  border-radius: 24px;
  border-style: none;
  box-shadow: rgba(0, 0, 0, .2) 0 3px 5px -1px,rgba(0, 0, 0, .14) 0 6px 10px 0,rgba(0, 0, 0, .12) 0 1px 18px 0;
  clear: left;
  color: #3c4043;
  display: flex;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  height: 20vh;
  letter-spacing: .5px;
  margin-bottom: 35px;
  padding-left: 15px;
  position: relative;
  width: 20vw;
}

a {
  color: var(--font-color);
  font-weight: 750;
  text-decoration: none;
}

a:hover {
  color: var(--brand-color);
}

.errorlist {
  display: flex;
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
  padding: 3vmin;
  position: relative;
  margin-bottom: 1rem;
  list-style-type: none;
  border: 1px solid transparent;
  border-radius: .25rem;
  width: 20vw;
}

h1, h2, h3, h4 {
  font-family: var(--font-family);
  letter-spacing: .25px;
  word-wrap: break-word;
}

/*Use it for page titles*/
h1 {
  color: var(--font-color);
  font-size: var(--large-font);
  font-weight: 1000;
  margin-bottom: 35px;
  margin-top: 10vh;
  text-align: center;
}

h1.login_h1 {
  color: #0D0D0D;
  letter-spacing: .25px;
  word-wrap: break-word;
  font-family: font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0px;
  margin-top: 10vh;
  text-align: center;
}

/*Use it for page subtitles*/
h2 {
  color: var(--font-color);
  font-size: var(--medium-font);
  font-weight: 1000;
  margin-bottom: 3vh;
  position: relative;
  text-align: center;
  opacity: 0.9;
}

/*Use it for other pages*/
h3, h4, h5 {
  color: var(--font-color);
  display: block;
  left: 5vw;
  position: relative;
  text-align: left;
  top: 0vh;
  word-wrap: break-word;
}

/*Use it for other titles*/
h3 {
  font-size: var(--large-font);
  line-height: 7.5vh;
  font-weight: 1000;
}

@media (orientation: landscape) {
  h3.tilt_space {
    margin-top: 5vh;
  }
}

/*Use it for other subtitles*/
h4 {
  font-size: var(--medium-font);
  font-weight: 1000;
  opacity: 0.8;
}

/*Use it for other descriptions*/
h5 {
  font-size: var(--small-font);
  font-weight: 750;
  opacity: 0.6;
}

h6 {
  color: #3c4043;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 18px;
  font-weight: 850;
  text-align: left;
}

/*Other classes*/
.invisible {
  display: none;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.custom_hover:hover {
  transform: scale(1.05); 
}

.pointer:hover {
  cursor: pointer; 
}

.fade_in {
-webkit-animation: fadein 2s;
   -moz-animation: fadein 2s;
    -ms-animation: fadein 2s;
     -o-animation: fadein 2s;
        animation: fadein 2s;
}

.mini {
  transform: scale(0.6);
}

.title {
  color: var(--font-color);
  display: block;
  font-family: var(--font-family);
  font-size: 2.5vh;
  font-weight: 1000;
  padding: 2vh 0vw 1vh 0vw;
  position: relative;
  text-align: left;
  z-index: 0;
}

.brand {
  color: var(--brand-color);
}

/*Keyframes*/
@keyframes show_modal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Data list */
.dropdown-list {
    display: none;
    position: absolute;
    background-color: var(--container-color);
    border: 1px solid var(--border-color);
    max-height: 10em;
    overflow-y: auto;
    z-index: 1000;
    width: 100%;
    top: calc(100% + 5px);
    left: 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.0);
    border-radius: 4px;
}

.dropdown-list div {
    padding: 0.5em;
    cursor: pointer;
    font-size: var(--small-font);
    color: var(--font-color);
    font-family: var(--font-family);
}

.dropdown-list div:hover {
    background-color: var(--brand-color);
    color: var(--backgroud-color);
}

.input_container_2 {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.beige_background {
  background-color: #f5f6f4;
}

.form_login {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -40%);
  text-align: center;
  z-index: 10;
}

:root {
    --main-color: #1C345D;
    --secondary-color: #FFFCEB;
    --dark-color: #152642;
    --secondary-dark-color: #D3D3D3;
    --almost-white: #FEFEFE;
    --alternative-white: #F9F9F9;
    --gray: #E0E0E0;
    --light-gray: #F7F7F7;
    --font-family: 'Open Sans', sans-serif;
    --small-font: 0.9rem;
    --red: rgba(248, 215, 218, 0.7);
    --blue: rgba(215, 228, 247, 0.7);
}

.dropdown {
    display: inline-block;
    position: relative;
}

.dropdown_button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: relative;
}

.dropdown_button img {
    position: relative;
}

.dropdown_button img {
    height: 16px;
    object-fit: contain;
    width: 16px;
}

.dropdown_menu {
    background: var(--almost-white);
    border: 1px solid var(--secondary-dark-color);
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 150px;
    padding: 5px 0;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 10;
}

.dropdown_menu.hidden {
    display: none;
}

.dropdown_menu:not(.hidden) {
    display: block;
    z-index: 10;
}

.dropdown_item {
    color: var(--main-color);
    cursor: pointer;
    display: block;
    font-family: var(--font-family);
    font-size: var(--small-font);
    padding: 8px 12px;
    text-align: left;
    text-decoration: none;
}

.dropdown_item:hover {
    background-color: var(--light-gray);
}

.dropdown_icon {
    position: relative;
    pointer-events: none;
}


.resource_rating_row {
  display: flex;
  justify-content: center;
  margin-top: 4vh;
}

.resource_rating_form {
  display: flex;
  justify-content: center;
  font-family: var(--font-family);
}

.resource_rating_buttons {
  display: flex;
  gap: 1.5rem;
}

.resource_rating_button {
  padding: 1rem 2rem;
  font-size: var(--medium-font);
  font-family: var(--font-family);
  color: var(--brand-color);
  background-color: white;
  border: 2px solid var(--brand-color);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.resource_rating_button:hover {
  background-color: var(--brand-color);
  color: white;
  border-color: var(--brand-color);
}