:root {
    --primary-color: #1e88e5;
    --secondary-color: #e0e0e0;
    --dark-primary-color: #90caf9;
    --dark-secondary-color: #2c2c2c;
    --text-color: #212121;
    --dark-text-color: #fafafa;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    background-color: var(--secondary-color);
    transition: background-color 0.3s, color 0.3s;
}

header {
    position: relative;
    text-align: center;
    background-color: #3f51b5;
    color: white;
    padding: 1rem;
}

h1 {
    margin: 0;
    position: relative;
    z-index: 1;
}

input[type="checkbox"] {
    margin-left: 0.5rem;
}

.repo {
    background-color: #f6f8fa;
    border: 3px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.repo-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 1rem;
}

code {
    background-color: #f0f0f0;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

pre {
    background-color: #f0f0f0;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

.dark-mode {
    background-color: var(--dark-secondary-color);
    color: var(--dark-text-color);
}

.dark-mode a {
    color: var(--dark-primary-color);
}

.dark-mode .repo {
    background-color: #424242;
}

.dark-mode code, .dark-mode pre {
    background-color: #4f4f4f;
}

.readme {
    margin-top: 1rem;
    border: 1px solid #cccccc; /* Change border color to grey */
    border-radius: 8px;
    padding: 1rem;
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 2s ease-in-out;
}

.toggle-readme {
    background-color: #3f51b5;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.3rem 0.6rem;
    margin-bottom: 1rem;
}

.copy-button {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border: none;
    padding: 4px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    display: none;
}

.dark-mode-button {
    background: none;
    border: none;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
}

.moon-icon, .sun-icon {
    font-size: 1.5em;
}

.repositories {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.star-icon {
    font-size: 1.2em;
    margin-right: 4px;
}

.repo:first-child {
    margin-top: 1rem; /* Add spacing between the banner and the first repository */
}

body:not(.dark-mode) .repo {
    border-color: #8E8E8E; /* Change border color to black in normal/light mode */
}

.container {
    max-width: 840px; /* Adjust this value to control the maximum width */
    margin: 0 auto; /* Center the container horizontally */
    padding: 0 16px; /* Add some horizontal padding for smaller screens */
}

.repo-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.links-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.divider {
    margin: 0 5px;
}

.toggle-readme {
    font-size: 1.1em; /* Increase the font size */
    padding: 5px 10px; /* Add padding to the button */
}

.dark-mode-button {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    z-index: 2;
}

.close-readme {
    background-color: #3f51b5;
    color: white;
    font-size: 1rem;
    padding: 5px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.link-wrapper {
    display: inline;
}

.readme-content {
  opacity: 0;
  transition: opacity 2s ease-in-out; /* Change from 0.5s to 1s */
}

.readme.open .readme-content {
  opacity: 1;
}

/* ... (previous code) */

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .banner {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .banner-title {
    text-align: center;
    width: 100%;
    margin-bottom: 1rem;
  }

  .dark-mode-toggle {
    position: static;
    transform: none;
    margin-top: 0;
    margin-bottom: 1rem;
  }

  .repo {
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
  }
}
