@font-face {
  font-family: haritha;
  src: url(../fonts/Haritha-Regular.ttf);
}

.align-center{margin-left: auto;margin-right: auto}

/* box-shadow */
ol.gradient-list > li::before, ol.gradient-list > li {
  box-shadow: 0.25rem 0.25rem 0.6rem rgba(0, 0, 0, 0.05), 0 0.5rem 1.125rem rgba(75, 0, 0, 0.05);
}

/*** STYLE ***/
*,
*:before,
*:after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background-color: #fafafa;
  color: #1d1f20;
  font-family: "Raleway", sans-serif;
}

main {
  display: block;
  margin: 0 auto;
  max-width: 40rem;
  padding: 1rem;
}

body {
  font-family: Calibri, Helvetica, sans-serif;
}

.wrapper {
  min-height: 100vh;
  /*background-color: skyblue;*/
  width: 100%;
}

.header .top {
  background: darkslategrey;
  margin-top: 10px;
  border-radius: 10px;
  color: white;
}

.title {
  /*font-family: cursive;*/
  font-size: 4em;
}

.search-container {
  background-color: ghostwhite;
  border-radius: 10px
}

.word-list {
  padding: 5px;
  display: table;
  background-color: cadetblue;
  border-radius: 10px;
}

.word-list>.word {
  display: table-cell;
  font-weight: bold;
  float: left;
  text-align: center;
  color: white;
  cursor: pointer;
}

.word-list>.word>div {
  border: 1px solid white;
  border-radius: 4px;
}

.word-list>.word.selected>div {
  background-color: darksalmon
}

.find {
  border-radius: 15px;
  border: 2px solid;
  font-size: 1.5em;
  font-weight: bold;
}

.definitions h3 {
  font-size: 1.3em;
  font-weight: 700;
}

.result .pronunciation {
  font-weight: 700;
}

.definitions > li {
    margin-top: 1em;
}

.definitions ul li {
  font-size: 1em;
}

.result a h2 {
  font-size: 2em;
}

.btn {
  margin-left: -4%;
  border-end-end-radius: 15px;
  background-color: darkblue;
  color: white;
  font-size: 1.8em;
  border: 0;
}

.result-list {
  line-height: 1.4;
}

.list {
  height: auto;
  width: 100%;
}

.footer {
  height: 50px;
  width: 100%;
  color: brown;
  font-weight: bold;
  font-size: 13px;
  text-align: center;
  margin-top: 15px;
}

.footer>div {
  background-color: darkslategrey;
  color: white;
  border-radius: 5px;
}

.search-container {
  min-height: 50vh;
}

.logo img {
  width: 120px;
}

.loader {
  position: absolute;
  height: 100vh;
  z-index: 2;
  width: 100%;
  top: 0;
}

.loader .loader-content {
  position: relative;
  background: darkblue;
  z-index: 2;
  border-radius: 15px;
  padding: 5%;
  margin: 0 auto;
  transform: translateY(-50%);
  top: 50%;
}

.loader .loader-bg {
  height: 100vh;
  width: 100%;
  background-color: darkslategray;
  opacity: 0.2;
  position: absolute;
}

@media screen and (max-width: 650px) {
  .title {
    font-size: 2em;
  }

  .logo img {
    width: 100px;
  }
}

ol.gradient-list {
  counter-reset: gradient-counter;
  list-style: none;
  margin: 1.75rem 0;
  padding-left: 1rem;
}
ol.gradient-list > li {
  background: white;
  border-radius: 0 0.5rem 0.5rem 0.5rem;
  counter-increment: gradient-counter;
  margin-top: 1rem;
  min-height: 3rem;
  padding: 2rem 1rem 1rem 1rem;
  position: relative;
}
ol.gradient-list > li::before, ol.gradient-list > li::after {
  background: linear-gradient(135deg, #83e4e2 0%, #a2ed56 100%);
  border-radius: 1rem 1rem 0 1rem;
  content: "";
  height: 3rem;
  left: -1rem;
  overflow: hidden;
  position: absolute;
  top: -1rem;
  width: 3rem;
}
ol.gradient-list > li::before {
  align-items: flex-end;
  content: counter(gradient-counter);
  color: #1d1f20;
  display: flex;
  font: 900 1.5em/1 "Montserrat";
  justify-content: flex-end;
  padding: 0.125em 0.25em;
  z-index: 1;
}
ol.gradient-list > li:nth-child(10n+1):before {
  background: linear-gradient(135deg, rgba(162, 237, 86, 0.2) 0%, rgba(253, 220, 50, 0.2) 100%);
}
ol.gradient-list > li:nth-child(10n+2):before {
  background: linear-gradient(135deg, rgba(162, 237, 86, 0.4) 0%, rgba(253, 220, 50, 0.4) 100%);
}
ol.gradient-list > li:nth-child(10n+3):before {
  background: linear-gradient(135deg, rgba(162, 237, 86, 0.6) 0%, rgba(253, 220, 50, 0.6) 100%);
}
ol.gradient-list > li:nth-child(10n+4):before {
  background: linear-gradient(135deg, rgba(162, 237, 86, 0.8) 0%, rgba(253, 220, 50, 0.8) 100%);
}
ol.gradient-list > li:nth-child(10n+5):before {
  background: linear-gradient(135deg, #a2ed56 0%, #fddc32 100%);
}
ol.gradient-list > li:nth-child(10n+6):before {
  background: linear-gradient(135deg, rgba(162, 237, 86, 0.8) 0%, rgba(253, 220, 50, 0.8) 100%);
}
ol.gradient-list > li:nth-child(10n+7):before {
  background: linear-gradient(135deg, rgba(162, 237, 86, 0.6) 0%, rgba(253, 220, 50, 0.6) 100%);
}
ol.gradient-list > li:nth-child(10n+8):before {
  background: linear-gradient(135deg, rgba(162, 237, 86, 0.4) 0%, rgba(253, 220, 50, 0.4) 100%);
}
ol.gradient-list > li:nth-child(10n+9):before {
  background: linear-gradient(135deg, rgba(162, 237, 86, 0.2) 0%, rgba(253, 220, 50, 0.2) 100%);
}
ol.gradient-list > li:nth-child(10n+10):before {
  background: linear-gradient(135deg, rgba(162, 237, 86, 0) 0%, rgba(253, 220, 50, 0) 100%);
}
ol.gradient-list > li + li {
  margin-top: 2rem;
}

.disabled {
    pointer-events: none;
    cursor: default;
}

/* Base mobile-first style */
.site-title {
  font-size: clamp(20px, 4vw, 42px); /* auto scales with screen width */
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
  text-align: center; /* better on mobile */
  word-break: break-word;
}

/* Tablet */
@media (min-width: 768px) {
  .site-title {
    font-size: clamp(28px, 2vw, 48px);
    text-align: left; /* adjust if you want desktop left aligned */
  }
}

/* Desktop */
@media (min-width: 1200px) {
  .site-title {
    font-size: 52px; /* stable big size on large screens */
  }
}