@tailwind base;
@tailwind components;
@tailwind utilities;
body {
  @apply leading-[normal] m-0;
}

/* unvisited link */
a.imagelink:link {
  color: white;
}

/* visited link */
a.imagelink:visited {
  color: white;
}

/* mouse over link */
a.imagelink:hover {
  color: white;
}

/* selected link */
a.imagelink:active {
  color: white;
}

/* unvisited link */
a.imagelink_grayscale:link {
  color: white;
}

/* visited link */
a.imagelink_grayscale:visited {
  color: white;
}

/* mouse over link */
a.imagelink_grayscale:hover {
  color: white;
}

/* selected link */
a.imagelink_grayscale:active {
  color: white;
}

.imagelink_grayscale {
  filter: grayscale(100%);
}

body {
  font-family: Prompt;
  font-size: 17px;
}

.textlink:link {
  color:rgb(44, 57, 210);
}

.textlink:visited {
  color:rgb(44, 57, 210);
}

.textlink:hover {
  color:rgb(44, 57, 210);
}

.textlink:active {
  color:rgb(44, 57, 210);
}

.textlink-left {
  float: left;
}

.textlink-right {
  float: right;
}

.thumbnail_container {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  min-width: 300px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  /*grid-template-columns: repeat(auto-fill, 320px);*/
  grid-gap: 25px;
}

.thumbnail_container img {
  vertical-align: middle;
  max-height: 200px;
}

.thumbnail_container .thumbnail_content {
  position: absolute;
  bottom: 0;
  background: rgb(0, 0, 0); /* Fallback color */
  background: rgba(0, 0, 0, 0.5); /* Black background with 0.5 opacity */
  color: #f1f1f1;
  width: 100%;
  padding: 5px;
  border-radius: 3%;
}

img {
  border-radius: 2%;
  object-fit: contain;
}

h1 {
  font-size: 26px;
}

h2 {
  font-size: 16px;
}

.horizontal-list li {
  display: inline-block;
  margin: 0 8px;
}

.horizontal-list a {
  color: #f2f2f2;
  text-align: center;
  padding-left: 7px;
  padding-right: 7px;
  text-decoration: none;
  font-size: 17px;
}

.horizontal-list {
  text-align: right;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #333;
  color: white;
  z-index: 1000;
}

.container-xl {
  margin-top: 50px;
}

.outerdiv {
  margin-left: 3%;
  margin-right: 3%;
}

.page_navigation {
  display: flex;
  justify-content: center;
}

.navigation_button {
  margin-left: 5px;
}

.checkmark {
  position: absolute;
  top: 10%;
  left: 60%;
}

.difficulty_select {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
  min-height: 41px;
  max-height: 41px;
  line-height: 41px;
  width: 226px;
  padding-left: 16px;
  padding-right: 16px;
  font-weight: 500;
  --tw-text-opacity: 1;
  color: rgb(10 35 33 / var(--tw-text-opacity));
  font-family: Prompt;
  border-radius: 6px;
  outline: 2px solid transparent;
  outline-offset: 2px;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("../image_selection/vector-5.4f8c381d56f0.svg");
  background-repeat: no-repeat;
  background-position: right 1.0rem center;
}

option {
  font-family: Prompt;
}

[data-tooltip] {
  position: relative;
  cursor: pointer;
  color: white;
  border-radius: 1em;
}

[data-tooltip]:before {
  content: attr(data-tooltip);
  position: absolute;
  opacity: 0; 
  width: 150px;
  transform:translateX(0%) translateY(150%);
  bottom: 25px;
  padding: 0.5em;
  background-color: black;
  border-radius: 0.25em;
  color: white;
  text-align: center;
  transition:0.2s;
  z-index: 10;
}

@media screen and (min-width: 640px) {
  [data-tooltip]:before {
    transform: translate(75%, 75%);
  }
}

[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
  opacity: 1; 
}

[data-tooltip-images] {
  position: relative;
  cursor: pointer;
  color: white;
  border-radius: 1em;
}

[data-tooltip-images]:before {
  content: attr(data-tooltip-images);
  position: absolute;
  opacity: 0; 
  min-width: 100px;
  transform:translate(15%, -10%);
  padding: 0.1em;
  background-color: black;
  border-radius: 0.25em;
  color: white;
  text-align: center;
  transition:0.2s;
  z-index: 100;
  font-size: 14px;
  white-space: nowrap; /* prevent text from wrapping */
}

[data-tooltip-images]:hover:before,
[data-tooltip-images]:hover:after {
  opacity: 1; 
  background-color: black;
}

[x-cloak] { display: none !important; }