/* General page layout */

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 20px;
  background-color: #f0f0f0;
  color: #333;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

h1 {
  font-size: 2.5em;
}

h2 {
  font-size: 1.8em;
  /*margin-top: 20px;*/
}

p {
  margin-bottom: 20px;
}

section {
  margin-bottom: 40px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

footer {
  text-align: center;
  margin-top: 40px;
}

.starter-template {
  text-align: center;
  margin: 40px auto; /* Adjusted margin for better spacing */
  padding: 20px; /* Add padding to make sure the content is visible */
}

.starter-template p {
  font-size: 24px; /* Adjust font size for visibility */
  color: #333; /* Make sure the text color contrasts well with the background */
}

.container {
  max-width: 1200px; /* Limit the max width */
  width: 90%; /* Make the container width responsive */
  margin: 40px auto; /* Added margin for better spacing */
  padding: 20px;
}

.calendar-container {
  margin: 20px auto; /* Center the calendar */
  border: 1px solid #ddd; /* Optional: border for better definition */
  border-radius: 8px; /* Optional: rounded corners */
  overflow: hidden; /* Prevent overflow */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  background-color: #fff; /* White background */
}


/* Box styling for file list and preview */
.box {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Ensure the table takes up full width of the container */
.file-list-table {
  width: 100%; /* Make the table fill the entire box */
  border-collapse: collapse; /* Ensure no space between table cells */
  margin: 0; /* Remove default margin */
}

.file-list-table th, 
.file-list-table td {
  padding: 10px; /* Cell padding */
  text-align: left;
  border-bottom: 1px solid #ddd;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.file-list-table th {
  background-color: #f4f4f4;
}

/* GitHub-like code block styling */
pre {
  background-color: #fafbfc; /* Light background */
  border: 1px solid #e1e4e8; /* Light border */
  border-radius: 6px;        /* Rounded corners */
  padding: 16px;             /* Padding inside the block */
  overflow-x: auto;          /* Allow horizontal scrolling */
  white-space: pre;          /* Preserve whitespace */
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; /* GitHub's font stack */
  font-size: 14px;           /* Font size */
  position: relative;        /* Make pre container relative */
}

code {
  color: #24292e; /* Default text color */
  font-size: 14px; /* Font size to match pre */
}

/* Copy button styling */
.copy-button {
  background-color: #6c757d; /* Primary color for button */
  color: #ffffff;            /* White text */
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1;               /* Ensure the button appears above code block */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    width: 100%; /* Full width on smaller screens */
    padding: 10px; /* Reduce padding */
  }

  .calendar-container {
    margin: 10px; /* Reduce margin on small screens */
  }

  iframe {
    height: 400px; /* Adjust height for smaller screens */
  }

  .box {
    padding: 15px; /* Adjust box padding */
  }

  .file-list-table th,
  .file-list-table td {
    padding: 8px; /* Adjust table cell padding */
  }

  pre {
    font-size: 12px; /* Adjust font size */
    padding: 10px;   /* Adjust padding */
  }

  .copy-button {
    font-size: 10px; /* Adjust button font size */
    padding: 4px 8px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 5px; /* Further reduce padding */
  }

  .box {
    padding: 10px; /* Further adjust box padding */
  }

  .file-list-table th,
  .file-list-table td {
    padding: 5px; /* Further adjust table cell padding */
  }

  pre {
    font-size: 11px; /* Further adjust font size */
    padding: 8px;    /* Further reduce padding */
  }

  .copy-button {
    font-size: 9px; /* Further adjust button font size */
    padding: 3px 6px;
  }
}

/* Links */
a {
  color: #007BFF;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Buttons */
button {
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}


/* Style the collapsible buttons with a plus/minus icon */
.collapsible {
  background-color: #333;  /* Keep the button dark grey */
  color: white;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
  margin: 5px 0;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Prevent the default blue outline and background when hovered */
.collapsible:hover, .collapsible:focus {
  background-color: #333;  /* Keep the background dark grey */
  outline: none;  /* Remove focus outline */
}

.collapsible .icon {
  font-size: 18px;  /* Adjust size of the icon */
  margin-right: 10px;  /* Space between icon and text */
}

/* Style for the collapsible content */
.content {
  padding: 10px;
  display: block;  /* Show by default */
  overflow: hidden;
  background-color: white;  /* White background for content */
  border: 1px solid #ddd;
  border-radius: 5px;
}

/* Add smooth transition for expanding/collapsing */
.collapsible.active + .content {
  display: block;
}
