/* index.php */
body.index {
    margin: 0;
    padding: 0;
    background-color: #8357eb;
    background-image: url('photos/horizon.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    box-sizing: border-box;
    margin: 0;
    margin-left:-20px;
    padding: 0;
    justify-content: space-evenly;
    align-items: center; /* Vertical center */
    width: 100vw;
    height: 100vh;
}

main.index  {
    transition: all 0.5s;
    -webkit-text-stroke: 4px #d6f4f4;
    font-variation-settings: "wght" 900, "ital" 1;
    font-size: 15rem;
    text-align: center;
    color: transparent;
    font-family: "Meta", sans-serif;
    text-shadow: 10px 10px 0px #07bccc,
    15px 15px 0px #e601c0,
    20px 20px 0px #e9019a,
    25px 25px 0px #f40468,
    45px 45px 10px #482896;
    cursor: pointer;
}

main.index:hover {
    font-variation-settings: "wght" 100, "ital" 0;
    text-shadow: none;
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.modal {
    background: #202020;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.modal input[type="password"] {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.modal button {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    background:rgb(112, 0, 204);
    color: white;
    border: none;
    border-radius: 20px;
    margin-top: 10px;
    cursor: pointer;
}

.modal button:hover {
    background: #07bccc;
}



/*Episode-Animes*/
html.reel {
  overflow-y: scroll;
  height: 100%;
}

body.reel {
    position: relative;
    background-color: #202020;
    margin: 10px;
    padding: 0;
    font-family: Arial, sans-serif;
}

body.reel::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("photos/Reel.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3; /* Adjust to your preference */
    z-index: -1;
    pointer-events: none; /* Allows clicking through */
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.site-main {
    min-height: calc(100vh - 60px); /* 60px = footer height */
    padding: 20px;
    box-sizing: border-box;
}


.site-footer {
    color: #ccc;
    padding: 100px 0;
    width: 100%;
    text-align: center;
    font-size: 16px;
}


.site-footer a {
    color: #7DF9FF;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}


.site-footer a:hover {
    color: #E0115F;
    text-decoration: none;
}



/* Animes */
.anime-grid {
    max-width: 1459px;
    margin: 25px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.anime-card {
    margin: 10px;
    width: 250px;
    background-color: rgba(17, 17, 17, 0.6);;
    border: 3px solid rgb(125, 249, 255);
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    color: #7DF9FF;
}

.anime-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.anime-titles {
    padding: 10px;
    font-weight: bold;
    font-size: 16px;
    word-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    text-align: center;
}

.anime-card {
    transition: transform 0.2s ease;
}

.anime-card:hover {
    border-color: #E0115F;
    transform: scale(1.3);
    color: #E0115F;
}

.switch {
    text-align: center;
    max-width: 335px;
    margin: 0 auto;
}

.switch a {
    text-decoration: none;
    color: rgb(125, 249, 255);
    padding: 10px;
    margin: 5px;
    margin-top: 25px;
    background-color: #202020;
    border-radius: 10px;
    display: inline-block;
    position: relative;
    border-color: #7DF9FF;
    border: 1px solid rgb(125, 249, 255);
    font-weight: bold;
}

.switch a:hover {
    color: #7DF9FF;
    border: 1px solid #E0115F;
}

.searchbar {
    
    margin: 0px auto;                 /* Center horizontally and add top margin */
    margin-top:50px;
    padding: 12px 16px;                /* Bigger padding for better UX */
    width: 100%;                       /* Responsive width */
    max-width: 250px;                  /* Grows bigger on large screens, like 4K */
    font-size: 1.1em;                  /* Slightly larger text */
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;           /* Ensures padding doesn't break width */
}


.animes-pagination{
    text-align:center; margin-bottom: 100px;
}

.animes-pagination > .episode-list{
    text-align: center; 
    margin-top: 20px;
}

.replacer{
    background-color: rgba(17, 17, 17, 0.7); /* 50% opacity dark background */
    text-decoration: none; 
    font-weight: bold;
    color: #fff;
    padding: 10px 20px;
    border-radius: 15px;
    transition: background-color 0.3s ease;
}
.replacer:hover{
    background-color: rgba(255, 255, 255, 0.3);
}

.footer-fileSync {
    margin-top: 20px;
}



/*Episode*/
.pagination {
    text-align: center;
}

.video-container {
    margin: 20px auto;
    max-width: 800px;
    background-color: rgba(17, 17, 17, 0.8);
    /*border: 1px groove #7DF9FF;*/
    padding: 10px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

h2.titleColor {
    color: #7DF9FF;
}

p.message{
    text-align:center;
    color: rgb(125, 249, 255);
}

.select {
    text-align: center;

}

video.content {
    width: 100%;
    height: auto;
}

.pagination a {
    color: #7DF9FF;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
}

.pagination span {
    color: #ccc;
    margin: 0 10px;
}

.anime-title {
    padding: 10px;
    font-weight: bold;
    word-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    text-align: center;
}

.pagination, .episode-list {
    text-align: center;
    margin-top: 15px;
}

.episode-list {
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.episode-list a,
.episode-list span {
    display: inline-block;
    width: 55px;
    text-align: center;
    text-decoration: none;
    color: #7DF9FF;
    padding: 4px;
    background-color: #202020;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.episode-list a:hover {
    background-color: #7DF9FF;
    color: #000;
}

.episode-list span {
    background-color: #444;
    color: #fff;
}
.category-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px;
}

.category-links a {
    background-color: rgba(17, 17, 17, 0.7);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.category-links a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.to-animes{
    text-align: center; 
    margin: 30px 0;
}
.to-animes > a{
    display: inline-block; 
    background-color: rgba(17, 17, 17, 0.7);
    text-decoration: none; 
    font-weight: bold;
    color: #fff;
    padding: 10px 20px;
    border-radius: 15px;
    transition: background-color 0.3s ease;
}
.to-animes > a:hover{
    background-color: rgba(255, 255, 255, 0.3);
}

.range-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
}

.range-selector select {
    background-color: #202020;
    color: #7DF9FF;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 15px; 
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.range-selector select:hover {
    background-color: #7DF9FF;
    color: #000;
}

.range-nav {
    display: inline-block;
    background-color: #202020;
    color: #7DF9FF;
    padding: 6px 12px; 
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: background-color 0.2s ease;
}

.range-nav:hover {
    background-color: #7DF9FF;
    color: #000;
}

.range-nav.disabled {
    background-color: #444;
    color: #999;
    cursor: default;
    pointer-events: none;
}

.under-video-container{
    margin: 20px auto;
    max-width: 800px;
    background-color: rgba(17, 17, 17, 0.8);
    /*border: 1px groove #7DF9FF;*/
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}