body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    font-family: math;
}
html{
    scroll-behavior: smooth;
}

/* Code Editor Section */
#editor {
    width: 100%;
    height: 1000px;  /* Increased height for better visibility */
    font-size: 14px;
    border-radius: 0;
    resize: none;
}
.ad-container {
    text-align: center;
    margin-top: 20px;
    overflow-x: auto; /* Enables horizontal scrolling */
    white-space: nowrap; /* Prevents content from wrapping */
}
#loadingSpinner {
    position: fixed; /* Keeps it fixed in the viewport */
    top: 50%; /* Vertically center */
    left: 50%; /* Horizontally center */
    transform: translate(-50%, -50%); /* Centering adjustment */
    z-index: 9999; 
    display: none; /* Initially hidden */
    border-radius: 8px; 
    padding: 20px; 
    width: 20vw; /* Width in viewport units for responsiveness */
    height: 20vw; /* Height in viewport units for responsiveness */
    max-width: 320px; /* Maximum width of 320px */
    max-height: 320px; /* Maximum height of 320px */
}

.spinner-border {
    width: 100%; /* Use 100% of the parent container */
    height: 100%; /* Use 100% of the parent container */
    color: white;
}

/* Media Query for extra small devices (up to 320px) */
@media (max-width: 320px) {
    #loadingSpinner {
        width: 80vw; /* Adjust width for smaller screens */
        height: 80vw; /* Adjust height for smaller screens */
        max-width: 200px; /* Maximum width of 200px on small screens */
        max-height: 200px; /* Maximum height of 200px on small screens */
    }
}

/* Media Query for small devices (321px to 480px) */
@media (min-width: 321px) and (max-width: 480px) {
    #loadingSpinner {
        width: 50vw; /* Adjust width for small devices */
        height: 50vw; /* Adjust height for small devices */
        max-width: 240px; /* Maximum width of 240px */
        max-height: 240px; /* Maximum height of 240px */
    }
}

/* Media Query for medium devices (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    #loadingSpinner {
        width: 30vw; /* Adjust width for medium devices */
        height: 30vw; /* Adjust height for medium devices */
        max-width: 320px; /* Maximum width of 320px */
        max-height: 320px; /* Maximum height of 320px */
    }
}

/* Media Query for large devices (769px and up) */
@media (min-width: 769px) {
    #loadingSpinner {
        width: 20vw; /* Use 20% of viewport width */
        height: 20vw; /* Use 20% of viewport height */
        max-width: 320px; /* Maximum width of 320px */
        max-height: 320px; /* Maximum height of 320px */
    }
}



#inputs {
    height: 200px;  /* Increased input height */
    resize: none;
}

#output {
    height: auto;
    background-color: #f1f3f5;
    border: 1px solid #dee2e6;
    border-radius: 0;
}

/* Button Styles */
.btn {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

/* Card Styles */
.card {
    border-radius: 10px;
    overflow: hidden;
}

.card-header {
    padding: 10px;
    font-size: 1rem;
    font-weight: bold;
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    #editor {
        height: 1000px;
        font-size: 14px;
    }

    #inputs {
        height: 1000px;
    }

    #output {
        min-height: 120px;
    }
}

@media (max-width: 992px) {
    #editor {
        height: 400px;
        font-size: 14px;
    }

    #inputs {
        height: 160px;
    }

    #output {
        min-height: 100px;
    }
}

@media (max-width: 768px) {
    #editor {
        height: 350px;
        font-size: 13px;
    }

    #inputs {
        height: 140px;
    }

    #output {
        min-height: 90px;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 576px) {
    #editor {
        height: 300px;
        font-size: 12px;
    }

    #inputs {
        height: 120px;
    }

    #output {
        min-height: 80px;
    }

    .btn {
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
    }
}

@media (max-width: 400px) {
    #editor {
        height: 250px;
        font-size: 12px;
    }

    #inputs {
        height: 100px;
    }

    #output {
        min-height: 70px;
    }

    .btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 320px) {
    #editor {
        height: 220px;
        font-size: 11px;
    }

    #inputs {
        height: 80px;
    }

    #output {
        min-height: 60px;
    }

    .btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
}
