/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */


/*
 * APPLICATION
 */
 body {
  margin: 0;
  padding: 0;
  background-color: #f7f7ff;
  min-width: 750px;
}
#wrapper {
  width: 96%;
  margin: 0 auto;
  padding: 0;
  background-color: #f0f0ff;
}
a {
  color: black;
}
/*
 * Menu
 */
#header {
  width: 96%;
  padding: 2% 2%;
  background-color: #bbd;
  border-bottom: 2px solid #779;
}
#header h1 {
  margin: 0;
  padding: 0;
}
#header h1 a, #header h1 a:visited {
  text-decoration: none;
  color: black;
}
#menu {
  width: 98%;
  padding: 0.5% 1%;
  background-color: #bbd;
}
#menu::after {
  content: "";
  display: table;
  clear: both;
}
#menu a {
  display:block;
  padding: 0 2% 0 0;
  float: left;
}
#content {
  margin: 1%;
}
/*
#content::after {
  content: "";
  display: table;
  clear: both;
}
*/
/*
 * GENERAL
 */
.odd_row {
}
.even_row {
  background-color: #bbd;
}
/*
 * Action: index
 * Models: show and torrent
 */
.grid_container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0%;
}
.grid_item_today_h4 {
  background-color: #bbd;
  margin: 0;
}
.grid_item_today {
  background-color: #bbd;
}
.grid_item {
  aspect-ratio: 3 / 2;
  /*display: flex;
  align-items: center;
  justify-content: center;*/
  padding: 0 0 10px 0;
  max-width: 340px;
}
.grid_item_img {
  width: 38%;
  float: left;
}
.grid_item_img img {
  width: 100%;
  aspect-ratio: 10 / 14;
}
.grid_item_info {
  width: 60%;
  margin: 0 0 0 40%;
}
.show_title {
  height: 70px;
}
.grid_item_info .downloaded {
  font-size: 12px;
}
.grid_item_info p {
  margin: 5px 0 0 0;
}
.grid_item h3 {
  margin: 0;
  padding: 0;
  padding-bottom: 5px;
}
/*
 * Torrents list
 */
#torrents_list_div_index {
  clear: both;
  padding-top: 0%;
}
#torrents_list_div_index table {
  border-collapse: collapse;
}
#torrents_list_div_index td {
  padding: 7px 7px;
}
#torrents_list_div {
  float: left;
  width: 43.5%;
  /*clear: both;*/
  padding: 0%;
  margin-left: 2%;
}
#torrents_list_div table {
  float: right;
  border-collapse: collapse;
}
#torrents_list_div td {
  padding: 7px 7px;
}
.green_bg {
  background-color: #99D;
  font-weight: bold;
}
.table_dark_bg {
  background-color: #CCE;
}
/*
 * Footer
 */
#footer {
  clear: both;
  width: 100%;
  min-height: 50px;
  background-color: #bbd;
  border-top: 2px solid #779;
}

/*
 * SHOWS
 */
 #show_grid_container {
  display: grid;
  grid-template-columns: 20% 32% 43.5%;
  gap: 3%;
}
#show_img {
  width: 20%;
  float: left;
  padding-bottom: 2%;
}
#show_img img {
  width: 100%;
  height: 100%;
}
#show_info {
  width: 32.5%;
  float: left;
  padding-bottom: 2%;
  margin-left: 2%;
}
#show_info h2 {
  margin: 0 0 1% 0;
  padding: 0;
}
#todays_torrents {
  float: right;
  width: 27%;
}
#todays_torrents table {
  width: 100%;
}
.week_shows {
  /*float: left;*/
  width: 72%;
}
.week_shows h2{
  /*margin: 0;
  padding: 0;*/
}
.week_shows h4 {
  margin: 0.5em 0;
  padding: 0px;
}
.week_container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 5px;
}
.week_item {
  padding: 0;
}
/*
 * CSS for old seasons pages.
 */
#old_seasons_grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(15%, 14%));
  gap: 25px 2%;
}
.old_seasons_elements {
}
#old_season_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(30%, 20%));
  gap: 25px 3%;
}
.old_season_elements {
}

/*
 * TORRENTS
 */
 #torrent_grid_container {
  display: grid;
  grid-template-columns: 20% 46% 30%;
  gap: 2%;
}
#torrent_show_video {
  grid-column: 3;
  grid-row: 1;
}
#torrent_show_img {
  padding-bottom: 2%;
  grid-column: 1;
  grid-row: 1;
}
#torrent_show_img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#torrent_info {
  grid-column: 2;
  grid-row: 1;
  padding-bottom: 2%;
  margin-left: 2%;
}
#torrent_info h2 {
  margin: 0 0 1% 0;
  padding: 0;
}

/*
 * DOWNLOADS
 */
#content table {
  border-collapse: collapse;
}
#content td {
  padding: 7px;
}
