/* 
        .container1 {
            width: 80%;
            margin: 20px auto;
            padding: 20px;
            background: white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        h1, h2 {
            color: #0056b3;
        }
        pre {
            background-color: #eee;
            padding: 15px;
            border-left: 3px solid #0056b3;
            overflow: auto;
        }
        p {
            line-height: 1.6;
        } */
         /* Base Styles */

.container1 {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    line-height: 1.6;
    font-family: Arial, sans-serif;
    width:800px;
}


h1, h2, h3 {
    color: #333;
}

pre {
    background-color: #f4f4f9;
    border-left: 5px solid #0056b3;
    padding: 10px;
    white-space: pre-wrap; /* Wraps text within pre tag */
    word-wrap: break-word;
    overflow-x: auto; /* Allows horizontal scrolling if necessary */
    font-size: 0.95em;
}

/* Media Queries for devices with a max width of 768px */
@media (max-width: 768px) {
    .container1 {
        padding: 10px;
    }

    h1 {
        font-size: 1.5em; /* Smaller font size for h1 */
    }
    #exercise{
        display: none;
    }
#display1{
    display:none;
}
#display2{
    display:block;
}
    h2 {
        font-size: 1.3em; /* Smaller font size for h2 */
    }

    h3 {
        font-size: 1.1em; /* Smaller font size for h3 */
    }

    pre {
        padding: 8px;
        font-size: 0.85em; /* Smaller font size makes it easier to read code without scrolling */
    }
}

/* Additional Media Queries for very small devices */
@media (max-width: 480px) {
    .container1 {
        padding: 5px;
    }

    h1 {
        font-size: 1.4em;
    }

    h2 {
        font-size: 1.2em;
    }

    h3 {
        font-size: 1em;
    }

    pre {
        font-size: 0.75em; /* Further reduce font size for very small screens */
    }
}
@media (max-width: 768px) {
    .sidebar {
        display: block;
        width: 100%;
        padding: 10px;
        background-color: #f1f1f1;
        margin-bottom: 20px;
    }
    .sidebar .content {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .sidebar select {
        width: 100%;
        padding: 10px;
        font-size: 1em;
    }
}