 /* 
  Octarule Project
  Author: Keith (Arc.Keith)
  Created: July 2025
  License: Creative Commons Attribution 4.0 International (CC BY 4.0)
  https://creativecommons.org/licenses/by/4.0/
*/

body {
  background-color: #111;
  color: #e0e0e0;
  margin: 0;
  padding: 0;
  display: block;
}

main {
  max-width: 1200px !important;
  width: 96%;
  margin: 2rem auto;
  padding: 0 10px;
  text-align: center;
}

    h2 {
      margin-bottom: 0.25rem;
      font-size: 1.5rem;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
    }
    #yearInput {
      font-size: 1rem;
      width: 80px;
      text-align: center;
    }
    .offset-row {
      margin-bottom: 10px;
    }
    input[type="number"] {
      width: 50px;
      padding: 2px;
      font-size: 14px;
      text-align: center;
    }
    .control-bar {
      display: flex;
      justify-content: space-between;
      margin-bottom: 10px;
      max-width: 700px;
      margin-inline: auto;
    }
    .control-group {
      font-size: 1.5rem;
    }
    .control-button {
  background: transparent;
  color: #fff;
  border: 1px solid #666;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
}

.control-button:hover {
  background-color: #333;
  border-color: #aaa;
}
    .calendar {
      background-color: #111;
      display: grid;
      grid-template-columns: repeat(8, 1fr);
      gap: 4px;
      max-width: 700px;
      margin-inline: auto;
      padding: 4px;
  border-radius: 6px;
    }
    .weekday, .day {
      border: 1px solid #ccc;
      border-radius: 6px;
      aspect-ratio: 1 / 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      overflow-wrap: break-word;
    }
    .weekday {
  background-color: #1f1f1f;
  font-weight: bold;
  font-size: 14px;
  line-height: 1.2;
  color: #aabbee;
}

    .weekday small {
      font-size: 10px;
      font-weight: normal;
    }
    .day {
  background-color: #222;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  color: #ddd;
  border: 1px solid #333;
  box-sizing: border-box;
}

    .today {
      border: 2px solid red;
    }
    .modal {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.5);
      display: none;
      justify-content: center;
      align-items: center;
    }
    .modal-content {
  background: #2a2a2a;
  padding: 1rem;
  border-radius: 8px;
  width: 300px;
  max-width: 90%;
  color: #eee;
}

    .modal-content textarea {
  width: 100%;
  height: 100px;
  background: #121212;
  color: #e0e0e0;
  border: 1px solid #555;
}

    .modal-content button {
      margin-top: 0.5rem;
    }
    .date-info {
      margin-top: 1rem;
      font-size: 0.9rem;
      white-space: pre-wrap;
    }

    .wide-octagon-button {
      width: 160px;
    }

.date-container {
  display: flex;
  align-items: center; /* vertically align them */
  gap: 12px;           /* space between text and button */
  justify-content: center;
}

@media (max-width: 400px) {
  .date-container {
    flex-direction: column; /* stack items vertically */
    gap: 6px; /* smaller gap */
  }

