/* Importing Google Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* General Page Styling */
body {
    font-family: 'Roboto', sans-serif; /* Updated font-family */
    background: linear-gradient(135deg, #1c1c1c, #4d4d4d, #ffffff);
    background-size: 300% 300%;
    animation: animateBackground 15s ease infinite;
    color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-y: auto; /* Allow vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    box-sizing: border-box;
    text-align: left;
    margin: auto; /* Center the container */
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2em;
    font-weight: 700; /* Making header bold */
}

h2 {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: 700; /* Making sub-headers bold */
    border-bottom: 2px solid #4d5254; /* Underline the header */
    padding-bottom: 10px; /* Space below the underline */
}

h3 {
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: 700; /* Making sub-sub-headers bold */
}

p, pre {
    font-size: 1em;
    font-weight: 400; /* Normal weight for paragraphs and code blocks */
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.api-details {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    margin-bottom: 10px; /* Add spacing between containers */
}

.api-info, .required-params {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    margin-top: 20px;
    overflow-x: auto; /* Ensure table stays within the box */
}

.api-info th, .required-params th, .api-info td, .required-params td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.api-info th, .required-params th {
    background: rgba(0, 0, 0, 0.3);
    color: #61dafb;
    font-weight: 700; /* Making table headers bold */
}

.api-info td, .required-params td {
    color: #ffffff;
}

.required-params thead {
    background: rgba(0, 0, 0, 0.3);
}

.note {
    font-size: 14px; /* Font size for the additional note */
    color: #d3d3d3; /* Lighter color for note text */
    margin-top: 10px;
}

/* Back Button Styling */
.back-button-container {
    text-align: center;
    margin-top: 30px;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #ffffff;
    background-color: #43494b;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #543d3d; /* Darker shade on hover */
}

/* Background Animation 
@keyframes animateBackground {
    0% {background-position: 0 0;}
    50% {background-position: 1000px 1000px;}
    100% {background-position: 0 0;}
} */

/* Responsive Design for Mobile */
@media only screen and (max-width: 768px) {
    body {
        padding: 10px; /* Add some padding to the body */
        overflow-y: auto; /* Ensure scrolling on mobile */
    }

    .container {
        padding: 20px;
        margin: 0 auto; /* Center container horizontally */
        box-sizing: border-box;
    }

    .api-details {
        padding: 20px;
        margin-bottom: 10px; /* Add spacing between containers */
    }

    h1 {
        font-size: 1.5em;
    }

    h2, h3 {
        font-size: 1.2em;
    }

    table {
        font-size: 0.9em;
    }

    th, td {
        padding: 8px;
    }

    .api-info, .required-params {
        overflow-x: auto; /* Ensure horizontal scrolling if needed */
        display: block; /* Ensure tables are displayed as block elements */
        border-radius: 0; /* Remove border-radius for mobile */
    }

    .back-button {
        font-size: 14px; /* Adjust font size for mobile */
        padding: 8px 16px; /* Adjust padding for mobile */
    }
}
