/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0; /* Background color for the body */
}

header {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}

main {
    max-width: 90%; /* Updated max-width for mobile */
    margin: 0 auto;
    padding: 20px;
    background-color: #fff; /* Background color for the main content */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); /* Adding a subtle shadow to the main content */
    border-radius: 5px; /* Rounded corners for the main content */
}

section {
    margin-bottom: 20px;
    background-color: #f9f9f9; /* Background color for sections */
    padding: 20px;
    border-radius: 5px; /* Rounded corners for sections */
}

h1 {
    font-size: 24px;
    color: #fff; /* Text color for headings */
    margin-bottom: 10px; /* Add margin at the bottom of headings */
}

h2 {
    font-size: 20px;
    color: #007bff; /* Text color for subheadings */
    margin-top: 20px; /* Add margin at the top of subheadings */
    margin-bottom: 10px; /* Add margin at the bottom of subheadings */
}

p {
    font-size: 16px;
    color: #555; /* Text color for paragraphs */
    margin-bottom: 10px; /* Add margin at the bottom of paragraphs */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* Center images */
}

.code-container {
    background-color: #f4f4f4;
    padding: 10px;
    overflow-x: auto;
    position: relative;
    border-radius: 5px; /* Rounded corners for the code container */
}

pre {
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
}

.copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px; /* Rounded corners for the copy button */
}

.copy-button:hover {
    background-color: #0056b3;
}

/* Media Query for Desktop */
@media screen and (min-width: 768px) {
    main {
        max-width: 70%; /* Updated max-width for desktop */
    }
}
