.top {
    background-color: #121111;
    overflow: hidden;
    height: 3.7rem;
    display: flex;
    font-family: "Lexend Deca", serif;
    justify-content: space-between;
    color: #fff;
}

.top-logo img {
    width: 5rem;
    position: relative;
    top: 1rem;
    left: 0.3rem;
}

.top-left {
    display: flex;
}

.top-basic {
    display: flex;
    position: relative;
    top: 1.2rem;
    left: 2rem;
    gap: 1.5rem;
}

.top-home>a {
    text-decoration: none;
    /* Remove underline if any */
    color: #fff;
    transition: color 0.3s ease;
    /* Smooth transition */
}


.top-home>a:hover {
    color: #ff5733;
}

.top-cartoon,
.top-genre {
    transition: color 0.3s ease;
    /* Smooth transition */
    cursor: pointer;
}

.top-cartoon:hover {
    color: #ff5733;
}

.top-genre:hover {
    color: #ff5733;
}

.top-random{
    transition: color 0.3s ease;
    /* Smooth transition */
    cursor: pointer;
}

.top-random:hover {
    color: #ff5733;
}

.top-right {
    position: relative;
    top: 1rem;
    display: flex;
    gap: 1rem;
    right: -0.1rem;
}

.top-searchbutton svg {
    width: 1rem;
    position: relative;
    top: -0.1rem;
    right: 0.2rem;
}

.top-voice svg {
    width: 1rem;
    position: relative;
    right: 1rem;
    top: 0.1rem;
}

.bg-cartoon {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(58, 58, 62, 0.8);
    z-index: 103;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
}

.error-top {
    position: fixed;
    top: 25%;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 103;
    display: none;
}

.wb {
    position: fixed;
    top: 25%;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 103;
    display: none;
}

.phone-scroll {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(58, 58, 62, 0.8); */
    z-index: 103;
    /* backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px); */
    display: none;
}

.cartoon-f {
    background-color: #1e1d1d;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Lexend Deca", serif;
    width: 32rem;
    flex-direction: column;
    border-radius: 16px;
    position: relative;
    top: 30%;
}

.cartoon-thing {
    column-count: 2;
    column-gap: 2rem;
}

.cartoon-c>a {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 7px;
}

.cartoon-image img {
    width: 3rem;
    height: 3.1rem;
    border-radius: 16px;
    margin-bottom: 0.5rem;
    /* Space between image and text */
    position: relative;
    left: 1rem;
    object-fit: cover;
}

.cartoon-n {
    background-color: #353536;
    padding: 2px 18px;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    border-radius: 8px;
    /* Optional for rounded corners */
    transition: background-color 0.3s ease;
}

.cartoon-n:hover {
    cursor: pointer;
    background-color: #4c4c4e;
}

.cartoon-titleg {
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    padding: 4px;
}

.cartoon-titleg>span {
    font-size: 22px;
    font-weight: 500;
}

.cartoon-back {
    color: #fff;
    /* background-color: #484747; */
    padding: 4px 12px;
    margin-bottom: 1rem;
    border-radius: 6px;
    display: flex;
    position: relative;
    top: 1rem;
}

.back-image img {
    width: 3rem;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 0.5rem;
    /* Space between image and text */
    position: relative;
    left: 1rem;
    top: -0.7rem;

}

.back-n {
    background-color: rgb(53, 53, 54);
    padding: 2px 18px;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    border-radius: 8px;
    /* Optional for rounded corners */
    transition: background-color 0.3s ease;
}

.back-n:hover {
    cursor: pointer;
    background-color: #ff5733;
}

.top-search input {
    position: relative;
    width: 14rem;
    padding: 4px 9px;
    border-radius: 6px;
    background-color: #0a0a0a;
    border: 1px solid #3a3a3a;
    color: #ababab;
    transition: border ease 0.3s;
    font-size: 14px;
}

.top-search input:hover {
    border: 1px solid #ff5733;
}

.search input {
    padding: 4px;
}

.top-search button {
    position: relative;
    width: 2rem;
    padding: 4px px;
    border-radius: 0 6px 6px 0;
    right: 2.3rem;
    top: 0rem;
    background-color: #0a0a0a;
    
}

.top-profile img {
    width: 35px;
    /* Set your desired width */
    height: 35px;
    /* Set your desired height */
    border-radius: 50%;
    /* This makes the image circular */
    object-fit: cover;
    /* Ensures the image fills the circle without distortion */
    position: relative;
    top: -0.1rem;
    right: 0.7rem;
    cursor: pointer;
}

::selection {
    background-color: #ff5733;   /* Change the highlight color to orange */
    color: white;               /* Optional: change the text color within the selection */
  }

 /* Basic container styling */
.error-top {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: "Lexend Deca", serif;
}

.wb {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: "Lexend Deca", serif;
}

/* Form and field styling */
.error-register {
    border: 1px solid #272727;
    padding: 20px;
    border-radius: 8px;
    background-color: #1e1d1d;
}

.error-title {
    font-size: 20px;
    font-weight: 200;
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
}

.error-title > span{
    font-size: 22px;
    color: #fff;
    font-weight: 500;
}

.error-scode {
    font-size: 14px;
    color: #fff;
    border: 1px solid #4CAF50;
    text-align: center;
    margin-bottom: 20px;
    padding: 5px 2px;
    display: none;
    
}

.error-username {
    margin-bottom: 15px;
}

.error-tellname {
    font-size: 13px;
    margin-bottom: 5px;
    color: #fff;
    opacity: 0.6;
}

.error-username > input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    box-sizing: border-box;
}

.error-userbutton {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.submit_error, .return_error {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    color: #fff;
}

.submit_error {
    background-color: #4CAF50;
}

.return_error {
    background-color: #f44336;
}

.error-logintheuser {
    text-align: center;
    margin-top: 14px;
    color: #fff;
}

.error-logintheuser > span{
    color: #f44336;
    cursor: pointer;
}

.phone-user{
    display: none;
    position: relative;
    left: 1rem;
}

.search1{
    width: 91%;
    font-family: "Lexend Deca", serif;
    position: relative;
    padding: 4px 9px;
    border-radius: 4px;
    background-color: #0a0a0a;
    border: 1px solid #3a3a3a;
    color: #ababab;
    transition: border ease 0.3s;
    font-size: 13px;
}

.search1:hover {
    border: 1px solid #ff5733;
}

.top-searchbuttonphone > svg{
    width: 1rem;
    position: relative;
    top: -0.1rem;
}

.top-searchbuttonphone{
    position: relative;
    top: 0.1rem;
    left: -2.2rem;
    background-color: #0a0a0a;
}

.phone-toop > svg{
    width: 1rem;
    position: relative;
    top: 1.1rem;
}

.phone-toop{
    display: none;
}

.top-search {
    position: relative;
    left: 1rem;
}

.phone-sc{
    background-color: #1e1d1d;
    color: #ababab;
    width: 10rem;
    position: relative;
    top: 3.6rem;
    font-family: "Lexend Deca", serif;
    font-size: 13px;

}

.all-phone{
    padding: 4px 10px;
    background-color: #1e1d1d;
    cursor: pointer;
}

.all-phone svg{
    width: 0.7rem;
    position: relative;
    top: -0.1rem;
    left: 1rem;
}

.all-phone:nth-child(even){
    background-color: #171717;
}

.sub-allphone{
    width: 28rem;
    column-count: 3;
    background-color: #1e1d1d;
    display: none ;
}

.sub-allcartoonphone{
    width: 18rem;
    column-count: 2;
    background-color: #1e1d1d;
    display: block;
    position: relative;
    left: -0.6rem;
    display: none;
}

.sub-network > a {
    text-decoration: none;
    color: #ababab;
}

.sub-network {
    padding: 4px 17px;
    transition: background-color ease 0.3s;
}

.sub-network:hover {
    background-color: #f44336;
    cursor: pointer;
    color: #fff !important;
}

.all-phone:nth-child(4):hover {
    background-color: #ff5733;
    color: #fff;
}

.loading-icon {
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 24px;
    }

    .loading-icon span {
      display: inline-block;
      width: 12px;
      height: 10px;
      margin: 0 4px;
      background-color: #f44336;
      border-radius: 0%;
      animation: blink 0.8s infinite ease-in-out;
    }

    .loading-icon span:nth-child(2) {
      animation-delay: 0.2s;
    }

    .loading-icon span:nth-child(3) {
      animation-delay: 0.4s;
    }

    @keyframes blink {
      0%, 100% {
        opacity: 1;
      }
      50% {
        opacity: 0.3;
      }
    }

    .pagination-buttons {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
        font-family: "Lexend Deca", serif;
    }
    
    .pagination-buttons button {
        padding: 7px 20px;
        font-size: 14px;
        cursor: pointer;
        background-color: #121111;;
        border-radius: 0%;
        font-weight: 600;

    }

    .pagination-buttons button > a {
        text-decoration: none;
        color: #fff;
        
    }

    .pagination-buttons button:hover {
        padding: 7px 20px;
        font-size: 14px;
        cursor: pointer;
        background-color: #ff5733;
        border-radius: 0%;
        font-weight: 600;

    }

    /* footer */
  .upper-links-footer > a > svg {
    width: 1rem;
    position: relative;
    top: -0.1rem;
}

.upper-links-footer{
    align-items: center;
    text-align: center;
    display: flex;
    justify-content: center;
    position: relative;
    top: 1rem;
    gap: 0.7rem;
}

.upper-links-footer > a {
    background-color: #ff5733;
    padding: 4px 10px;
    font-family: "Lexend Deca", sans-serif;
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    
   
}

.upper-links-footer > a:hover {
    background-color: #ffffff;
    cursor: pointer;
    color: #000;

}

.footer-down{
    position: relative; /* Position context for the pseudo-element */
background-color: #121111;
margin-top: 14rem;
height: 5.6rem;
overflow: hidden; /* Ensure the pseudo-element doesn't overflow */
}

.lower-link-footer{
    text-align: center;
    position: relative;
    top: 1.5rem;
    font-family: 'Poppins', sans-serif;        
    font-size: 10px;
    color: #ababab;
}

.lower-link-footer > a{
    text-decoration: none;
    color: #ff5733;
}

    

/* Responsiveness */

@media (max-width: 990px) {
    .top-basic{
        display: none;
    }

    .search{
        display: none;
    }

    .phone-user.active {
        display: block;
    }

    .top-searchbutton{
        background-color: transparent !important;
        left: -1.7rem;
    }

    .top-search button {
        padding: 4px 0px;

    }

    .top-searchbutton svg{
        width: 1rem;
    }

    .top-voice svg{
        width: 1rem;
    }

    .phone-toop{
        display: block;
        position: relative;
        left: 0.5rem;
    }

    .top-logo img{
        left: 1.5rem;
    }

}


@media (max-width: 768px) {
    .error-title {
        font-size: 20px;
    }

    .error-scode {
        font-size: 13px;
    }

    .submit_error, .return_error {
        width: 48%;
        font-size: 14px;
    }

    .error-logintheuser span {
        cursor: pointer;
        color: #f44336;
    }

}

@media screen and (max-width: 634px) {
    .request-the-anime{
        width: 95% !important;
    }
}

@media (max-width: 480px) {
    .error-title {
        font-size: 18px;
    }

    .error-title > span{
        font-size: 20px;
    }

    .error-scode {
        font-size: 12px;
    }

    .submit_error, .return_error {
        width: 100%;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .error-userbutton {
        flex-direction: column;
    }

    .sub-allphone{
        width: 25rem;
    }
}

  @media screen and (max-width: 564px) {
    .cartoon-f {
        width: 90%;
    }

    .cartoon-thing {
        display: flex;
        gap: -0.5rem; /* Negative gap to control overlap */
        flex-wrap: wrap;
        flex-direction: column;
    }
    
    .cartoon-thing > * {
        flex: 1 1 45%; /* Adjust width as needed */
    }

    .cartoon-titleg{
        font-size: 18px;
        margin-top: 0.5rem;
    }

    .cartoon-titleg > span{
        font-size: 18px;
    }
    
}


@media screen and (max-width: 416px) {
    .sub-allphone{
        width: 22rem;
        column-count: 2;
    }
}
