/* Colours */
:root {
  --kaworu-red: #C54343;
  --kaworu-red-light: #f06b6b;
  --kaworu-gray-hair: #b3b1b6;
}

/* Main Vidya CSS */
.vidya-page{
    overflow-x: hidden;
    scroll-snap-type: block;
    scrollbar-color: var(--kaworu-red) transparent;

}

#vidya-maintitle{
  text-align: center;
}

.tdlr{
  position: relative;
  z-index: 10;

  font-size: 10pt;
  font-weight: 700;
  text-align: center;
  color: var(--kaworu-gray-hair);
  text-shadow: 0px 2px 0px rgb(0, 0, 0);
}

/* TV CSS */

.tv-vidya{
  width: fit-content;
  margin: auto;
  vertical-align: middle;

  height: 1100px;

}

.tv-content{

  position: absolute;

  top: 625px;

  z-index: 1;
  overflow-y: scroll;
  overflow-x: hidden;


  width: 900px;
  height: 655px;
  margin-left: 100px;

  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--kaworu-red) transparent;
}

.tv-img{
  width: 1082px;
  z-index: -1;
  margin: auto;
}

.tv-img img{
  position: absolute;
  top: 540px;
}

.kaworu-tv{
  width: 350px;
  margin: auto;

}

.kaworu-tv img{
  position: absolute;
  top: 210px;
  margin-left: -400px;

}

.a2-tv{
  width: 476px;
  margin: auto;
}

.a2-tv img{
  position: absolute;
  top: 218px;
  margin-left: 430px;

}


/* Vidya Filters */

.filters {
  position: relative;
  z-index: 10;
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.year-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: auto;
  gap: 10px;
  margin-top: 10px;
}
 
.year-button {
  font:inherit;
  color: white;
  padding: 20px 25px;
  border: none;
  font-size: 1.5em;
  background-color: #202020;
  cursor: pointer;
  border: 2px solid #202020;
}

.year-button:hover{
  border: 2px solid var(--kaworu-red);
}

.year-button.active {
  background-color: var(--kaworu-red);
  color: white;
  border-color: var(--kaworu-red);
}

#search{
  border: 2px solid var(--kaworu-red);
  color: white;
  font:inherit;
  padding: 20px 20px;
  background-color: #202020;
}

/* Vidya List */

.game-list {
  display: flex;
  flex-direction: column;
}

.game-card {
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  overflow: show;
  display: flex;
  flex-direction: column;
  padding: 15px;
}


.card-top {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}


.game-cover {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  overflow: hidden;
  background-color: #eee;
}

.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-info {
  padding: 1em;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-top:hover {
  background: var(--kaworu-red);
  color: white;

  .meta{
  border: 2px solid #202020;
  }

  .toggle-button{
  color: white;
  background-color: #202020;
  }

  .game-year, .title-rating, .meta{
    color: #202020;
  }
}

.rating {
  font-weight: 800;
  font-size: 1.5em;
}

.title-year{
  margin-bottom: 5px;
  display: flex;
  flex-direction:row;
  align-items: baseline;
}

.game-title{
  font-weight: 800;
  font-size: 1.5em;
}

.game-year{
  margin-left: 5px;
  color:var(--kaworu-red);
}

.title-rating {
  margin-bottom: 5px;
  font-size: 0.9em;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 5px;
}

.meta {
  padding: 10px;
  border: 2px solid var(--kaworu-red);
  color: #d9d9d9;
  font-size: 0.9em;
}

.toggle-button {
  font-family: inherit;
  font-weight: 800;
  color: white;
  padding: 15px 20px;
  font-size: 15px;
  border: none;
  background-color: var(--kaworu-red);
  cursor: pointer;
  margin-top: 10px;
  margin-right: 20px;
}

.review-content {
  display: none;
  margin-top: 25px;
  font-size: 1.1em;

  p{
    margin-bottom: 2em !important;
    color: #d9d9d9;
  }
}


.review-content a {
  color: var(--kaworu-red);
  text-decoration: none;
}

.review-content a:hover {
  text-decoration: underline;
}

.review-content p {
  margin: 0 0 10px;
}

/*
@media (max-width: 600px) {
  .card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .meta-row {
    flex-direction: column;
  }
}*/

/* Styles for 1440p screens (2560×1440) */
@media only screen and (min-width: 2500px) and (max-width: 3799px) {

.tv-vidya{
  height: 1100px;

}

.tv-content{
  top: 725px;
}

.tv-img img{
  position: absolute;
  top: 640px;
}


.kaworu-tv img{
  position: absolute;
  top: 310px;
}

.a2-tv img{
  top: 318px;
}
}

/* Styles for 4K screens (3840×2160 and up) */
@media only screen and (min-width: 3800px) {
.vidya-page{
  zoom: 150%;
}
}