html, body {margin: 0; height: 100%; overflow: hidden}

html {
    margin: 15;
    padding: 0;
    color: #000;
    height: 100%;
    overflow-x: hidden;
}

body {
    max-width: 100vw !important;
    max-height: 100vh !important;
    overflow-y: auto; /* Allow vertical scrolling */
    font-family: Arial, sans-serif;
    padding-bottom: 50px; /* Give space for footer */
}

.headings {
    font-size: 35px;
    font-weight: 500;
}

.top_row {
    text-align: center;
    margin-top: 1.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.timestamp{
    font-size: small;
}
.error_code {
    border: #ddd;
    background-color: #ddd;
    border-radius: 12px; /* Only rounded corners, not full circle */
    padding: 5px 15px;
    /* font-size: 12px; */
    font-size: 26px;
}

.middle_row {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 1rem 2%; /* Reduce padding on smaller screens to ensure full coverage */
    margin-top: 2rem;
    background-color: #d8d8d8;
    min-height: 35vh;
    border: 1px solid #000;
    flex-wrap: wrap; /* Allow elements to wrap on smaller screens */
    width: 100%; /* Ensure it covers the full width */
    box-sizing: border-box; /* Include padding in the width calculation */
}

.middle_row p {
    text-align: center;
    margin-top: 10px;
}

.middle_row img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-height: 150px; /* Limit image height */
}

.browser, .waf, .host {
    text-align: center;
    flex: 1;
    background-color: ;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px; /* Add margin for spacing on small screens */
}

.bottom_row {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
    /* padding: 0 5%; */
    flex-wrap: wrap;
}
.bottom_row .heading-text{
    margin-top: 100px;
}
.footer_row {
    border-top: 1px solid #ddd;
    min-height: 2.6rem;
    padding: 15px 0;
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
}

.copy_right {
    margin-top: 0.8rem !important;
    font-size: 15px;
}

.success_msg{
    color: #198754;
    font-weight: bold;
}
.error_msg{
    color: #dc3545;
    font-weight: bold;
}
/* added by chetan */
#message {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 276px; /* Adjust as needed */
    margin: 0 auto; /* Centers the message horizontally */
    text-align: center; /* Centers the text within the element */
}
/* Responsive adjustments */
@media (max-width: 768px) {
    #message {
        max-width: 200px; /* Adjust for tablets and smaller screens */
    }
}

@media (max-width: 576px) {
    #message {
        max-width: 293px; /* Adjust for mobile screens */
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    html {
        margin: 0;
        padding: 0;
        color: #000;
        height: 100%;
        overflow-x: hidden;
    }
    .top_row {
        flex-direction: column;
        gap: 20px;
    }

    .middle_row {
        flex-direction: column;
        padding: 1rem 0;
    }

    .middle_row img{
        gap: -2rem !important;
    }

    .browser, .waf, .host {
        margin-bottom: 20px;
        max-width: 100%;
    }

    .bottom_row {
        gap: 15px;
        flex-direction: column;
        align-items: center;
        margin-top: 2.5rem;
    }

    .footer_row {
        margin-top: 1.2rem;
        position: static;
        padding: 10px;
    }
    /* added by chetan  */
        .col-md-2.left {
            all: unset !important; /* Reset all inline styles */
            float: none; /* Override the float for mobile */
            text-align:  center !important; /* Center-align the text */
        }
        .col-md-2.right {
            all: unset !important; /* Reset all inline styles */
            float: right; /* Add necessary styles back */
            text-align:  center !important; /* Center-align the text */
        }
}