body {
    font-family: 'Arial', sans-serif;
    background-color: rgb(38, 42, 43);/*#333;*/
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.code-textarea {
    margin-top: 10px;
    width: 100%;
    height: 100px;
    padding: 5px;
    box-sizing: border-box;
    background-color: #555; /* Darker background color for code textarea */
    color: #fff; /* Text color for code textarea */
    border: 1px solid #888; /* Border color for code textarea */
    border-radius: 5px;
    resize: none;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: rgb(26, 28, 29);
    padding: 10px;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-width: min(80vw, 491px);
}

.docs-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.docs-section {
    width: 80%;
    margin: 10px 10px 10px 10px; /* Reduced margin here */
    background-color: rgb(51, 55, 58);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.section-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.section-content {
    font-size: 1.2em;
}

/* Responsive styles */
@media only screen and (max-width: 600px) {
    .docs-section {
        width: 90%;
    }

    .section-title {
        font-size: 1.2em;
    }

    .section-content {
        font-size: 1em;
    }
}


a:hover::before {
    transform: scaleX(1);
}

nav {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.2em;
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #fff;
}

nav a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #fff;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

nav a:hover::before {
    transform: scaleX(1);
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
    }
    nav a {
        margin: 5px 10px;
    }
}

.button-container {
    display: inline;
    justify-content: right; 
}

.open-container {
    display: inline;
    justify-content: center; 
}

button {
    padding: 10px;
    margin-right: 10px;
    background-color: rgb(51, 55, 58);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #666;
}

.code-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Adjusted to make examples populate from left to right */
    gap: 20px; /* Added gap between examples */
    width: 80%;
    max-width: 900px;
}

.code-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    justify-content: left;
}

.code-date {
    font-size: 0.9em;
    color: #95a5a6;
    margin-bottom: 10px;
}

.code-poster {
    font-size: 0.9em;
    margin-bottom: 10px;
    color: #95a5a6;
    display: flex;
}

.code-description {
    font-size: 1em;
    line-height: 1.5;
}

.code-textarea {
  margin-top: 10px;
  width: 100%;
  height: 100px;
  padding: 5px;
  box-sizing: border-box;
  background-color: #555; /* Darker background color for code textarea */
  color: #fff; /* Text color for code textarea */
  border: 1px solid #888; /* Border color for code textarea */
  border-radius: 5px;
  resize: none;

  /* Styling the scrollbar */
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: #888 #555; /* Scrollbar thumb and track color */
}

.code-textarea::-webkit-scrollbar {
  width: 8px; /* Width of the scrollbar */
}

.code-textarea::-webkit-scrollbar-thumb {
  background-color: #888; /* Color of the scrollbar thumb */
  border-radius: 4px; /* Border radius of the thumb */
}

.code-textarea::-webkit-scrollbar-track {
  background-color: #555; /* Color of the scrollbar track */
}


.blog-post {
    width: 80%; /* Set a fixed width for all blog posts */
    margin: 10px auto; /* Center the blog post container */
    background-color: rgb(51, 55, 58);/*#444;  Darker background color for blog posts */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.post-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    justify-content: left;
}

.post-date {
    font-size: 0.9em;
    color: #95a5a6;
    margin-bottom: 10px;
}

.post-content {
    font-size: 1em;
    line-height: 1.5; /* Adjust line height to space out lines of text */
}


.delete-btn {
    cursor: pointer;
    color: red;
    font-size: 0.8em;
    font-weight: bold;
    text-align: right;
    margin-right: 10px;
}

.event {
    flex: 0 0 calc(100% - 20px); /* Full width on mobile, with margin between events */
    background-color: rgb(51, 55, 58); /* Darker background color for events */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 8px;
    padding: 20px;
    box-sizing: border-box;
}

@media only screen and (min-width: 600px) {
    .event {
        flex: 0 0 calc(50% - 20px); /* 2 columns on screens wider than 600px */
    }
}

@media only screen and (min-width: 900px) {
    .event {
        flex: 0 0 calc(33.33% - 20px); /* 3 columns on screens wider than 900px */
    }
}

.code-textarea {
    margin-top: 10px;
    width: 100%;
    height: 100px;
    padding: 5px;
    box-sizing: border-box;
    background-color: #555; /* Darker background color for code textarea */
    color: #fff; /* Text color for code textarea */
    border: 1px solid #888; /* Border color for code textarea */
    border-radius: 5px;
    resize: none;
}

.docs-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.docs-section {
    width: 80%;
    margin: 10px 10px 10px 10px; /* Reduced margin here */
    background-color: rgb(51, 55, 58);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}
.section-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}
.section-content {
    font-size: 1.2em;
}

/* Responsive styles */
@media only screen and (max-width: 600px) {
    .docs-section {
        width: 90%;
    }
    .section-title {
        font-size: 1.2em;
    }
    .section-content {
        font-size: 1em;
    }
}