html{
 height: 100%;
}

*{ 
  margin: 0;
  padding: 0;
}

body {
  font: normal .80em 'trebuchet ms', arial, sans-serif;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-image: url('background-4.jpg');
}


p {
 padding: 0 0 20px 0;
  line-height: 1.5em;
  font-size: 107%;
}

img
{ border: 0;}


h2, h3, h4, h5, h6 
{ font: normal 250% 'Yanone Kaffeesatz', arial, sans-serif;
  color: #FFF;
}

h2
{ font: normal 170% 'Yanone Kaffeesatz', arial, sans-serif;
  color: #FFF;  
  margin: 0;
  padding: 0 0 8px 0;}

h3
{ font-size: 200%;
  margin: 0 0 9px 0;
  color: #FFF;}

h4, h5, h6
{ margin: 0;
  padding: 0 0 5px 0;
  font: normal 100% arial, sans-serif;
  color: #FFF;
  line-height: 1em;}

h5, h6
{ font: italic 95% arial, sans-serif;
  color: #888;
  padding-bottom: 15px;}

h6
{ color: #FFF;}

a, a:hover
{ outline: none;
  text-decoration: none;
  color: #35BDF5;}


.left
{ float: left;
  width: auto;
  margin-right: 10px;}

.right
{ float: right; 
  width: auto;
  margin-left: 10px;}

.center
{ display: block;
  text-align: center;
  margin: 20px auto;}

ul
{ margin: 0px 0 22px 17px;}

ul li
{ list-style-type: circle;
  margin: 0 0 0 0; 
}

#main {
  width: 1400px;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  max-width: 1400px;
  width: 100%;
  height: 150px;
  z-index: 1000;
  background-image: url("background-4.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  padding-left: calc((100% - 1400px) / 2);
  padding-right: calc((100% - 1400px) / 2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


#header h1 {
  font: normal 450% 'Yanone Kaffeesatz', arial, sans-serif;
  color: #FFF;
  float: left;
  padding-left: 50px;
}

#header h1 a {
  color: #35BDF5;
}

#header h1 a:hover {
  color: #555;
}

#slogan {
  float: right;
/*  padding-right: 25px;*/
  text-align: right;
  font: 500% 'Schoolbell', Arial, sans-serif;
  color: rgb(255,255,255);
  height: 100px;
}

#logo{
  float: left;
  width: 100px;
  height: 100px;
}

#logo img{
  height: 150px;
  width: 150px;
}

ul#menu {
  float: right;
  margin: 0;
  padding: 0;

  padding-left: 150px;
}

ul#menu li {
  float: left;
  list-style: none;
  background: transparent;
  width: 20%;
  text-align: center;
}
ul#menu li:hover {
/*  background: transparent url(transparent.png) repeat;*/
  color: #F14E23;
  border-radius: 50px;
}

ul#menu li a {
  font: normal 270% 'Yanone Kaffeesatz', sans-serif;
  text-decoration: none;
  color: #FFF;
/*  display: flex;*/
  height: 50px;
  text-align: center;
}

ul#menu li a:hover {
  color: #F14E23;
}

#site_content {
  padding-top: 150px;
  width: 1400px;
  overflow: hidden;
  margin: 0 auto;
  background-color: transparent;
  display: flex;
}

#sidebar_container {
    float: left;
    border-radius: 20px 0px 0px 20px;
    width:150px;
    background-color: #935F85; /* optional: adjust background color */
    color: white;
    border-right: 3px solid black;
}
#sidebar_container p{
  padding-left: 10px;
}

#content
{ text-align: left;
  width: 100%;
  padding: 10px;
  margin: 0px;
  background-color: #5D5086;
  color: white;
  border-radius: 0 20px 20px 0px;
}

#content ul
{ margin: 2px 0 22px 0px;}

#content ul li
{ list-style-type: none;
  background: url(bullet.png) no-repeat;
  margin: 0 0 6px 0; 
  padding: 0 0 4px 25px;
  line-height: 1.5em;}

#footer
{ clear: both;
  width: 100%;
  font: normal 150% 'yanone kaffeesatz',  arial, sans-serif;
  height: 85px;
  padding: 20px 0 5px 0;
  text-align: center; 
  color: #FFF;
  background: transparent;
  margin-bottom: 20px;}

#footer p
{ padding: 0 0 10px 0;}

#footer a, #footer a:hover
{ color: #FFF;
  text-decoration: none;}

#footer a:hover
{ color: #35BDF5;
  text-decoration: none;}

.gallery img
{ position:absolute;}

.form_settings
{ margin: 5px 0 0 0;}

.form_settings p
{ padding: 0 0 10px 0;}

.form_settings span
{ padding: 5px 0; 
  float: left; 
  width: 170px; 
  text-align: left;}
  
.form_settings input, .form_settings textarea
{ width: 252px; 
  font: 100% 'trebuchet ms', arial;
  border: 0;
  border: 1px solid #eee;
  padding: 5px 10px;
  background: #fff;
  color: #FFF;}
  
.form_settings .submit
{ border: 0; 
  width: auto;
  margin: 0 0 0 200px; 
  cursor: pointer; 
  color: #35BDF5;
  border: 1px solid #ddd;
  padding: 5px 15px;
  background: #fff;
  font: normal 140% 'Yanone Kaffeesatz', sans-serif;}

.form_settings textarea, .form_settings select
{ font: 100% 'trebuchet ms', arial; 
  border: 1px solid #eee;
  padding: 5px 10px;
  background: #fff;
  width: 252px;
  overflow: auto;}

.form_settings select
{ width: 274px;}

.form_settings .checkbox
{ margin: 4px 0; 
  padding: 0; 
  width: 14px;
  border: 0;
  background: none;}

.search
{ color: #666;
  border: 1px solid #eee;
  margin: 0;
  padding: 10px 5px;
  width: 200px;
  color: #F14E23;}
  
.subscribe
{ color: #35BDF5;
  border: 1px solid #ddd;
  padding: 5px 10px;
  background: #fff;
  float: right;
  cursor: pointer;
  margin: 0;
  font: normal 140% 'Yanone Kaffeesatz', sans-serif;}
 
table {
    width: 100%;
    border-collapse: collapse;
}

.table-row {
    border-bottom: 2px solid #ccc;
}

td {
    text-align: left;
    max-width: 100px;
}
td.order-id {
  width: 40px;
  text-align: center;
}
td.anime-image {
  width: 100px; /* Ensure the image fits within the cell */
  height: 140px; /* Maintain aspect ratio */
  object-fit: cover; 
}
td.anime-name {
  padding-left: 10px;
}
/* Add this to your CSS file */


/*======================= EPISODES TABLE ============================*/
/*===================================================================*/

.episodes-table {
    width: 80%; /* Table width set to 80% */
    margin: 0 auto; /* Center the table by setting left and right margins to auto */
    border-collapse: collapse; /* Collapse borders for a cleaner look */
    font-size: 16px; /* Set font size */
}

.episodes-table th, .episodes-table td {
    border: 2px solid black; /* Black border around table cells */
    padding: 10px; /* Padding inside cells */
    text-align: center; /* Center-align text in cells */
    box-sizing: border-box; /* Include padding in width calculation */
}

.episodes-table th {
    background-color: #f4f4f4; /* Light grey background for header cells */
}

.missing-episode {
    background-color: #f8d7da; /* Light red background for missing episodes */
    color: #721c24; /* Dark red text for contrast */
}

.normal-episode {
    background-color: #d4edda; /* Light green background for normal episodes */
    color: #155724; /* Dark green text for contrast */
}

.active-download {
    background-color: #fff3cd; /* Light yellow background for actively downloading episodes */
    color: #856404; /* Dark yellow text for contrast */
}

/*===================================================================*/
/*===================================================================*/

.download-all-button {
    background-color: #4CAF50; /* Green background */
    color: white; /* White text */
    border: none; /* No border */
    padding: 15px 32px; /* Padding around text */
    text-align: center; /* Center the text inside */
    text-decoration: none; /* No underline */
    display: inline-block; /* Allow placement control */
    font-size: 16px; /* Readable font size */
    margin: 20px 2px; /* Space around the button */
    cursor: pointer; /* Pointer cursor on hover */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 4px #999; /* Subtle shadow for depth */
    transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transition for hover effects */
}

.download-all-button:hover {
    background-color: #45a049; /* Slightly darker green on hover */
    box-shadow: 0 6px #666; /* Slightly larger shadow on hover */
    transform: translateY(-2px); /* Slightly raise the button */
}


.anime-image img {
    width: 100px; /* Example: Limit image width */
    height: 140px;
}

.order-id {
    font-size: 20px; /* Adjust as needed */
    font-weight: bold; /* Example: Make the index bold */
}

.anime-name {
    font-size: 20px; /* Adjust as needed */
    text-align: left;
}



.large-item {
    font-size: 20px; /* Increase the font size */
    margin: 10px 0;  /* Add margin above and below the list item */        
}


/* Stylize the form container (optional) */
.search-form {
    display: flex;
    align-items: left;
    justify-content: left;
    margin-top: 20px;
}

/* Stylize the input field */
.search-input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex: 1; /* Take up remaining space */
    /* Specific text style for input */
    color: #333; /* Text color */
    font-family: Arial, sans-serif; /* Font family */
    font-weight: bold; /* Font weight */
}

/* Stylize the button */
.search-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.arrow-button {
    width: 40px; /* Adjust width */
    height: 30px; /* Adjust height */
    background-color: #007bff; /* Rectangle color */
    border: none;
    cursor: pointer;
    outline: none;
    position: relative;
    margin-right: 10px; /* Space between button and heading */
    padding: 0;
}

.arrow-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px; /* Adjust position to align with rectangle */
    width: 0;
    height: 0;
    border-top: 15px solid transparent; /* Adjust arrow size */
    border-bottom: 15px solid transparent; /* Adjust arrow size */
    border-right: 20px solid #007bff; /* Arrow color */
}

.arrow-button::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 0px solid transparent;
    border-top: 0px solid transparent;
    border-bottom: 0px solid transparent;
    border-right: 0px solid #007bff; /* Rectangle color */
}

.header-row {
    display: flex;
    align-items: center; /* Align items vertically in the center */
}

.search-button:hover {
    background-color: #0056b3;
}

/* Stylize the label */
.search-label {
    font-size: 16px;
    margin-right: 10px;
}

.extra-content{
  width: 1400px;
  overflow: hidden;
  margin: 0 auto;
/*  padding-bottom: 50px;*/
  background-color: transparent;
  border-radius: 20px 20px 0px 0px;
}

.sufficient-space {
    color: #155724; /* Dark green color for sufficient space */
    font-weight: bold; /* Optional: Make the text bold for emphasis */
}

.insufficient-space {
    color: #721c24; /* Dark red color for insufficient space */
    font-weight: bold; /* Optional: Make the text bold for emphasis */
}

/* Add this new CSS class for table styling */



.filelist-table table {
    width: 100%;
    border-collapse: collapse; /* Collapse borders for a cleaner look */
    font-size: 16px; /* Set font size */
    color: #fff; /* Text color for table cells */
}

.filelist-table th, .filelist-table td {
    border: 2px solid #666; /* Border color and width for table cells */
    padding: 10px; /* Padding inside table cells */
    text-align: left; /* Align text to the left */
    box-sizing: border-box; /* Include padding in width calculation */
}

.filelist-table th {
    background-color: #444; /* Background color for header cells */
    color: #fff; /* Text color for header cells */
}

.filelist-table td {
    background-color: #353838; /* Background color for data cells */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for overflow text */
    white-space: nowrap; /* Prevent text wrapping */
}

.filelist-table tr:nth-child(even) td {
    background-color: #444; /* Background color for even rows */
}

.filelist-table tr:nth-child(odd) td {
    background-color: #353838; /* Background color for odd rows */
}

.filelist-table td a {
    color: #35BDF5; /* Color for links inside table cells */
    text-decoration: none; /* Remove underline from links */
}

.filelist-table td a:hover {
    text-decoration: underline; /* Underline on hover */
}

.filelist-table .name-cell {
    width: 60%; /* Max width for name cell */
    /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for overflow text */
    white-space: nowrap; /* Prevent text wrapping */
}

.filelist-table .size-cell {
    width: 10%; /* Max width for other cells */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for overflow text */
    white-space: nowrap; /* Prevent text wrapping */
    text-align: center;
}
.filelist-table .category-cell {
    width: 10%; /* Max width for other cells */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for overflow text */
    white-space: nowrap; /* Prevent text wrapping */
    text-align: center;
}
/*========================= SCHEDULE ========================*/
/*===========================================================*/

.anime-schedule {
  background-color: #1e2a38; /* soft blue-gray instead of black */
  color: #ffffff;
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.anime-schedule table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 15px;
}

.anime-schedule th {
  font-weight: bold;
  text-align: center;
  font-size: 1.4rem;
  background-color: #3b2e58; /* dark violet header */
  color: #f2e9ff; /* soft light-lavender text */
  padding: 12px 10px;
  border-radius: 8px;
}

.anime-schedule td {
  background-color: #2d3d52; /* soft steel-blue cell */
  font-weight: bold;
  font-size: 15px;
  text-align: center; 
  border-radius: 10px;
  padding: 15px;
  min-height: 80px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
  
  /* NEW: Flex centering */
  align-items: center;
  justify-content: center;
  text-align: center;
}

.anime-schedule td:hover {
  background-color: #3e5170; /* hover state */
}

.anime-schedule td:empty {
  background-color: transparent;
  box-shadow: none;
}


/*========================= ANIME ===========================*/
/*===========================================================*/

.anime-table {
  background-color: #1e2a38;
  color: #ffffff;
  padding: 0; /* Removed padding */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border-radius: 10px;
}

.anime-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 10px;
}

.anime-table th {
  font-weight: bold;
  text-align: center;
  font-size: 1.2rem;
  background-color: #3b2e58;
  color: #f2e9ff;
  padding: 12px 0px;
  border-radius: 8px;
}

.anime-table td {
  background-color: #2d3d52;
  font-weight: bold;
  font-size: 25px;
  text-align: center; 
  border-radius: 10px;
  min-height: 80px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Only for the first column (Cover) cells */
.anime-table td.cover-cell {
  padding: 0; /* No padding */
  background-color: transparent; /* Optional: remove background */
  box-shadow: none; /* Optional: remove shadow */
}
.anime-table td.action-cell {
  padding: 0;
  background-color: transparent;
  box-shadow: none;
  text-align: center;         /* Center horizontally */
  vertical-align: middle;     /* Center vertically */
  height: 60px;               /* Ensure consistent height */
}

.anime-table td.action-cell a {
  display: table-cell;        /* Use table-cell for vertical centering */
  vertical-align: middle;
  height: 60px;
  width: 100%;
}
.anime-table th.action-cell {
  padding: 0;
  background-color: #3b2e58;
  border-radius: 8px;
  text-align: center;
  vertical-align: middle;
}

.anime-table th.action-cell span {
  display: inline-block;
  line-height: 60px; /* Adjust this to match th height */
  height: 60px;
  vertical-align: middle;
}

.anime-table th.action-cell img {
  vertical-align: middle;
}

.anime-table th.action-cell img,
.anime-table td.action-cell img {
  padding: 0; /* No padding */
  background-color: transparent; /* Optional: remove background */
  box-shadow: none; /* Optional: remove shadow */
  width: 50px;
  height: 50px;
}

/* Optional: make sure images fill the cell */
.anime-table td.cover-cell img {
  display: block;
  width: 100px;
  height: 150px;
  border-radius: 10px; /* Or 0 if you want sharp corners */
}

.anime-table td.name-cell {
  cursor: pointer;
}

.anime-table td.name-cell:hover {
  background-color: #3e5170; /* already present, optional */
}

.anime-table td.name-cell:hover {
  background-color: #3e5170;
}

.anime-table td:empty {
  background-color: transparent;
  box-shadow: none;
}

.anime-table th:nth-child(1),
.anime-table td.cover-cell {
  width: 100px;
  max-width: 100px;
  min-width: 100px;
}

.anime-table th:nth-child(2),
.anime-table td:nth-child(2) {
  width: auto;
}

.anime-table th:nth-child(3),
.anime-table th:nth-child(4),
.anime-table th:nth-child(5),
.anime-table td:nth-child(3),
.anime-table td:nth-child(4),
.anime-table td:nth-child(5) {
  width: 5%;
  min-width: 50px;
}

.anime-table .icon {
  display: block;
  width: 50px;
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}


/* Default icons */
.anime-table .delete-icon {
  background-image: url('/static/delete_icon_no_bg.png');
}

.anime-table .view-icon {
  background-image: url('/static/view_icon_no_bg.png');
}

.anime-table .refresh-icon {
  background-image: url('/static/refresh_icon_no_bg.png');
}

/* Hover icons */
.anime-table .delete-icon:hover {
  background-image: url('/static/delete_icon_no_bg_hover.png');
}

.anime-table .view-icon:hover {
  background-image: url('/static/view_icon_no_bg_hover.png');
}

.anime-table .refresh-icon:hover {
  background-image: url('/static/refresh_icon_no_bg_hover.png');
}

.anime-table .download-icon {
  background-image: url('/static/download_icon_no_bg.png');
}

/* Hover icons */
.anime-table .download-icon:hover {
  background-image: url('/static/download_icon_no_bg_hover.png');
}
/*===========================================================*/