/* smooth animation accross ALL idk, looks good tho */
* {
  transition: all 0.1s ease-out;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: auto;
  padding: 0;
  color: #f8f9fa;
  background-color: #212529;
  font-family: "Ubuntu Sans", sans-serif;
  display: flex;
  flex-direction: column;
  /* height: 90vh;
    width: 90vw; */
}

h1 {
  text-align: center;
  margin-top: 20px;
  /* text-decoration: none;
    position: relative; */
  transition: text-shadow 0.5s ease;
}

h1:hover {
  text-shadow: 0 0 5px #fff;
}

/* 
h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 3px;
    background-color: #F4EEE0;
    transform: translateX(-50%);
    transition: width 0.5s ease;
}

h1:hover::after {
    width: 315px;
} */

.container {
  width: 60%;
  height: 80vh;
  margin: 0 auto;
  background-color: #343a40;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  /* margin-bottom: 20px; */
  display: flex;
  align-items: center;
  flex-direction: column;
}

.search-container {
  width: 100%;
  height: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.inner-search-container {
  margin-bottom: 0px;
  width: 35%;
  height: 50%;
  min-height: 35px;
  position: relative;
}

.items {
  background-color: #495057;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 20px;
  overflow-y: auto;
  border-radius: 10px;
  overflow-x: hidden;
  padding-right: 40px;
  padding-bottom: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.item {
  background-color: #6c757d;
  height: 100px;
  margin-bottom: 20px;
  width: 100%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-items: center;
  gap: 25px;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.5s ease forwards;
}

.item h2 {
  font-size: 16px;
}

.main-info {
  border-radius: 10px;
  height: 100%;
  width: 50%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 0 5px 0 5px;
}

.timer {
  width: 20%;
  height: 50px;
  border: 2px solid #f8f9fa;
  box-sizing: border-box;
  font-weight: normal;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
}

.watchnow {
  /* width: 20%; */
  /* font-weight: normal; */
  height: 100%;
  flex: 1;
  max-height: 50px;
  border: 2px solid #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow 1s;
  background-color: transparent;
  color: #f8f9fa;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.watchnow h2 {
  margin: 0;
  font-weight: normal;
}

.watchnow:disabled {
  opacity: 0.5;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0);
}

.watchnow:not([disabled]):hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.remove {
  width: 30px;
  height: 30px;
  background-color: transparent;
  border: 2px solid #f8f9fa;
  border-radius: 10px;
  color: #f8f9fa;
  font-size: 100%;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition:
    border 1s,
    color 1s,
    box-shadow 1s;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.remove:hover {
  border: 2px solid red;
  color: red;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.hidden {
  display: none;
}

.disabled {
  cursor: default;
}

.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

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

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

.selectionContainer {
  margin-bottom: 20px;
  font-size: 12px;
}

#search {
  margin-bottom: 0px;
  width: 100%;
  height: 100%;
  background-color: transparent;
  border: 2px solid #f8f9fa;
  box-sizing: border-box;
  border-radius: 10px;
  padding: 6px;
  color: #f8f9fa;
  padding-right: 45px;
  transition: box-shadow 2s;
  font-size: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#search:hover,
#search:active,
#search:focus {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  outline: none;
}

.addAnime {
  height: 100%;
  width: 40px;
  border-radius: 10px;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  border: 2px solid #f8f9fa;
  position: absolute;
  right: 0px;
  background-color: transparent;
  box-sizing: border-box;
  color: #f8f9fa;
  font-size: 100%;
  cursor: pointer;
  transition:
    border 1s,
    color 1s,
    box-shadow 1s;
}

.addAnime:hover {
  border: 2px solid rgb(30, 155, 30);
  color: rgb(30, 155, 30);
  /* box-shadow: 0 0 10px rgba(0, 255, 0, 0.5); */
}

.unableToAdd {
  border: 2px solid red;
  color: red;
  transition:
    border 1s,
    color 1s;
}

.rotateAdd {
  display: inline-block;
  transform: rotate(45deg);
  transition: transform 1s;
}

.rotateAdd:hover {
  display: inline-block;
  transform: rotate(45deg);
}

.unrotate {
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 1s;
}

.unableToAdd:hover {
  border: 2px solid red;
  color: red;
}

/* .beta {
    position: absolute;
    right: 10px;
    bottom: -13px;
    font-size: 20px;
} */

.credits {
  position: absolute;
  left: 10px;
  bottom: -5px;
  font-size: 10px;
}

.item a {
  width: 20%;
  height: 54px;
  /* border: 2px solid #f8f9fa; */
  display: flex;
  /* justify-content: center; */
  align-items: center;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow 1s;
  background-color: transparent;
  /* color: #f8f9fa;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); */
}

a .watchnow {
  width: 100%;
  height: 100%;
  /* font-weight: normal; */
  /* border: 2px solid #f8f9fa; */
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  align-items: center;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow 1s;
  background-color: transparent;
  /* color: #f8f9fa;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); */
}

a .disabled {
  cursor: default;
}

.name {
  display: flex;
  /* justify-content: center; */
  /* align-items: center; */
  text-align: left;
  justify-content: left;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
}

.name a {
  width: 100%;
  color: #f8f9fa;
  text-align: left;
}

.item a {
  text-decoration: none;
}

.underlineEffect {
  text-decoration: none;
  position: relative;
  cursor: pointer;
  color: #f8f9fa;
}

.underlineEffect::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: #f4eee0;
  transition: width 0.7s ease;
}

.underlineEffect:hover::after {
  width: 100%;
}

.underlineEffect:hover {
  text-decoration: none;
}

::-webkit-scrollbar {
  background-color: #202324;
  color: #aba499;
}

::-webkit-scrollbar-corner {
  background-color: #181a1b;
}

::-webkit-scrollbar-thumb {
  background-color: #454a4d;
}

::selection {
  background-color: #b4b4b4;
  color: #000000;
}

/* tablet */
@media only screen and (max-width: 1000px) {
  .container {
    width: 90vw;
    box-sizing: border-box;
  }
}

/* mobile */
@media only screen and (max-width: 745px) {
  body {
    margin: 0px;
    height: 100vh;
    width: 100vw;
  }

  h1 {
    font-size: larger;
  }

  .container {
    /* height: 90vh; */
    width: 100%;
    flex: 1;
    /* box-sizing: border-box; */
    /* bottom: 0px;
        left: 0px; */
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    padding: 0px;
    padding-top: 20px;
  }

  .items {
    /* padding-left: 0px;
        padding-right: 20px; */
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    overflow-y: scroll; /* Allow vertical scrolling */
    scrollbar-width: none; /* For Firefox: hide the scrollbar */
  }

  .items::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Edge: hide the scrollbar */
  }

  .item {
    gap: 10px;
  }

  .inner-search-container {
    width: 60%;
  }

  .name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
  }

  h2 {
    font-size: smaller !important;
  }

  p {
    font-size: smaller !important;
  }

  .releasedate {
    font-size: smaller !important;
  }

  .credits {
    display: none;
  }

  /* .beta {
        display: none;
    } */

  .timer {
    font-size: 12px !important;
  }
}
