:root {
   --Primary: #E0ACD5;
}

@font-face {
   font-family: Katto;
   src: url(../fonts/katto.otf);
} /* Cat Letters */
@font-face {
   font-family: Kosan;
   src: url(../fonts/kosans.ttf);
} /* Sharp thing */
@font-face {
   font-family: Meows;
   src: url(../fonts/meows.ttf);
} /* Cat Icons */

* {
   outline: none;
   box-sizing: border-box;
   scrollbar-width: thin;
}

/* Chrome/Edge/Safari */
*::-webkit-scrollbar {
   width: 12px;
}
*::-webkit-scrollbar-thumb {
   border-radius: 50px;
}

body, html {
   font-family: Kosan;
   margin: 0;
   padding: 0;
   font-size: 18px;

   scroll-behavior: smooth;
   scroll-padding-top: 3rem;

   background-color: #181818;
   color: white;
}

img {
   width: 100%;
}
article {
   padding: 10px;
}
h1, h2, h3 {
   text-align: center;
}

header {
   text-align: center;
   margin: 0;
   padding: 10px 0;
   font-family: Katto;

   color: black;
   background-color: var(--Primary);
}
footer {
   position: relative;
   left: 0;
   bottom: 0;
   width: 100%;
   text-align: center;
   padding: 25px;
   margin-top: 5px;
   font-family: Katto;

   color: black;
   background-color: var(--Primary);
}

#toTop {
   display: none;
   position: fixed;
   bottom: 50px;
   right: 0px;
   z-index: 99;
   border: none;
   outline: none;
   cursor: pointer;
   padding: 12px;
   margin: 0;
   border-top-left-radius: 10px;
   border-bottom-left-radius: 10px;
   font-size: 0px;
   width: 25px;

   transition: all 500ms;

   background-color: #3993DD;
   color: black;
}
#toTop:hover {
   font-size: 24px;
   width: 50px;
   padding: 15px;

   background-color: lightskyblue;
}

nav {
   display: flex;
   flex-grow: 1;
   overflow: hidden;
   border: 1px solid;

   border-color: transparent;
   background-color: transparent;
}

nav input {
   background-color: inherit;
   float: left;
   border: none;
   outline: none;
   cursor: pointer;
   padding: 14px 16px;
   transition: 0.3s;
   font-family: Katto;

   font-size: 24px;
   margin-left: auto;
   margin-right: auto;
}

nav input:hover {
   background-color: #3993DD;
   border-color: #3993DD;
}

nav a, nav a:visited {
   background-color: inherit;
   float: left;
   border: none;
   outline: none;
   cursor: pointer;
   padding: 14px 16px;
   transition: 0.3s;
   font-family: Katto;
   text-decoration: none;
   font-weight: bold;

   font-size: 24px;
   position: relative;
   top: 50%;
   left: 50%;
   transform: translate(-50%, 0%);
   text-align: center;
   color: black;
}
nav input.active {
   background-color: #29E7CD;
   border-color: #29E7CD;
   color: black;
}

.tabcontent {
   display: none;
   padding: 6px 12px;
   border: 1px solid;
   border-top: none;
   animation: fadeEffect 1s;

   border-color: transparent;
}

.basic-grid {
   display: grid;
   gap: .5rem;
   grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
}

.card, .cardh {
   display: flex;
   flex-direction: column;
   justify-content: center;

   font-size: 18px;
   font-family: Arial;

   height: 100%;
   width: 100%;

   box-shadow: rgba(3, 8, 20, 0.1) 0px 0.15rem 0.5rem, rgba(2, 8, 20, 0.1) 0px 0.075rem 0.175rem;
   overflow: hidden;
   transition: all 500ms;
   padding: 15px;
   border-radius: 25px;

   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;

   color: #fff;
   background-color: #2A2A2A;
}
.cardh {
   background-color: #22B2AA;
   aspect-ratio: 9/16;
}
.cardh:hover {
   box-shadow: rgba(2, 8, 20, 0.1) 0px 0.35em 1.175em, rgba(2, 8, 20, 0.08) 0px 0.175em 0.5em;
   background-color: #454545;
   transform: translateY(-3px) scale(1.1);
   z-index: 1;
   cursor: pointer;
}

.row:after {
   content: "";
   display: table;
   clear: both;
}

.TwoColumns {
   float: left;
   width: 50%;
   padding-left: 5px;
   padding-top: 5px;
}

.ThreeColumns {
   float: left;
   width: 33%;
   padding-left: 5px;
   padding-top: 5px;
}

.Left {
   float: left;
   width: 40%;
   padding-right: 5px;
   padding-bottom: 5px;
   padding-top: 5px;
}

.Middle {
   float: left;
   width: 30%;
   padding: 5px;
}

.Right {
   float: left;
   width: 30%;
   padding-left: 5px;
   padding-bottom: 5px;
   padding-top: 5px;
}

.SearchBar {
   width: 100%;
   border-radius: 15px;
   padding: 10px;
   text-align: center;
   margin: 5px;
   margin-top: 15px;
   
   display: none;

   background-color: #393939 !important;
   color: white;
}

.flip-card {
   background-color: transparent;
}

.flip-card-inner {
   position: relative;
   width: 100%;
   height: 100%;
   text-align: center;
   transition: transform 0.8s;
   transform-style: preserve-3d;
}

.flip:hover .flip-card-inner {
   transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
   position: absolute;
   width: 100%;
   height: 100%;
   backface-visibility: hidden;
}

.flip-card-front {
   background-color: rgba(0, 0, 0, 0.4);
   color: white;
   text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000;
}

.flip-card-back {
   background-color: rgba(0, 0, 0, 0.75);
   color: white;
   transform: rotateY(180deg);
}
.Gold {
   position: relative;
   border: none;
   overflow: hidden;
   border-radius: 15px;
}

.Gold::before {
   content: '';
   position: absolute;
   top: 0;
   left: -80%;
   width: 65%;
   height: 99.5%;
   background: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 200, 0.6) 40%,
      rgba(255, 255, 255, 0.9) 50%,
      rgba(255, 255, 200, 0.6) 60%,
      rgba(255, 255, 255, 0) 100%
   );
   transform: skewX(-25deg);
   animation: sheen-bar 2s linear infinite;
   opacity: 0.9;
   mix-blend-mode: screen;
   pointer-events: none;
   border-radius: 15px;
   /* box-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 0 0 25px rgba(255, 215, 0, 0.3); */
}

.modal {
   display: none;
   position: fixed;
   z-index: 1;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   overflow: auto;
   background-color: rgba(0, 0, 0, 0.6);
   padding-top: 60px;
}

.modal-content {
   background-color: #191919;
   color: #e0e0e0;
   margin: 5% auto;
   padding: 20px;
   border: 1px solid #333;
   width: 80%;
   max-width: 500px;
   position: relative;
   border-radius: 8px;
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.close {
   color: #aaa;
   float: right;
   font-size: 24px;
   font-weight: bold;
   position: absolute;
   top: 10px;
   right: 20px;
   transition: color 0.2s ease;
}

.close:hover, .close:focus {
   color: #fff;
   text-decoration: none;
   cursor: pointer;
}

form {
   display: flex;
   flex-direction: column;
   gap: 15px;
}

label {
   margin-top: 10px;
   color: #b0b0b0;
   font-size: 14px;
}

input[type="text"] {
   padding: 10px;
   margin-top: 5px;
   background-color: #2a2a3b;
   color: #e0e0e0;
   border: 1px solid #444;
   border-radius: 4px;
   font-size: 14px;
   transition: border-color 0.2s ease;
}

input[type="text"]:focus {
   border-color: var(--Primary);
   outline: none;
}

#suggest-btn {
   width: 100%;
   padding: 15px;
   margin-bottom: 10px;
   background-color: #E0ACD5;
   color: #191919;
   border: none;
   border-radius: 15px;
   cursor: pointer;
   font-size: 16px;
   font-weight: 600;
   transition: background-color 0.2s ease, transform 0.2s ease;
   text-align: center;
   box-shadow: 0 2px 8px rgba(224, 172, 213, 0.5);
}

#suggest-btn:hover {
   background-color: #d69bc9;
   transform: translateY(-2px);
}

button[type="submit"] {
   padding: 12px;
   background-color: var(--Primary);
   color: #191919;
   border: none;
   border-radius: 4px;
   cursor: pointer;
   font-size: 16px;
   font-weight: 600;
   transition: background-color 0.2s ease, transform 0.2s ease;
   box-shadow: 0 2px 8px rgba(224, 172, 213, 0.5);
}

button[type="submit"]:hover {
   background-color: #d69bc9;
   transform: translateY(-2px);
}

#error-message {
   color: #ff5555;
   margin-top: 10px;
   font-size: 14px;
}

#suggestions-list {
   margin-top: 20px;
}

.suggestion-item {
   background-color: #22B2AA;
   color: #e0e0e0;
   border: 1px solid #444;
   padding: 15px;
   margin-bottom: 15px;
   border-radius: 6px;
   transition: transform 0.2s ease;
}

.suggestion-item:hover {
   transform: translateY(-2px);
}

.suggestion-item img {
   max-width: 100px;
   height: auto;
   border-radius: 4px;
}

.suggestion-item a {
   color: var(--Primary);
   text-decoration: none;
}

.suggestion-item a:hover {
   text-decoration: underline;
}

a {
   color: #66cdaa;
   text-decoration: none;
   font-weight: 500;
   transition: color 0.2s ease;
}

a:hover {
   color: #4f9e83;
}

@keyframes sheen-bar {
   0% {
      left: -100%;
   }
   100% {
      left: 160%;
   }
}
@keyframes fadeEffect {
   from {
      opacity: 0;
   }
   to {
      opacity: 1;
   }
}

@media screen and (max-width: 1760px) {
   nav {
      display: block;
   }
   nav input {
      width: 50%;
   }
}

@media screen and (max-width: 800px) {
   nav {
      display: block;
   }
   nav input, .TwoColumns, .ThreeColumns, .Left, .Middle, .Right {
      width: 100%;
   }
   #toTop, #toTop:hover {
      bottom: 5%;
      right: 5%;
      border-radius: 50%;

      font-size: 24px;
      width: 50px;
      height: 50px;
   }
   article {
      padding: 5px;
   }
   .cardh:hover {
      transform: translateY(-3px) scale(1.02);
   }
   .SearchBar {
      width: 95%;
   }
}