/* color: #f5f7fb; primary */
/* color: #FFFBEA; secondary */
/* color: #13315c; accent 1 */
/* color: #3882f6; accent 2 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
  font-family: "Poppins";
  margin: 0;
  background-color: white;
  display: grid;
  justify-content: center;
  padding: 20px;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(1fr 3);
}

main {
  display: block;
  margin-top: 100px;
}

.calendar {
  display: none;
  background: white;
  width: 75%;
  min-height: 400px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.calendar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.calendar:target {
  display: block;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.header button {
  padding: 5px 10px;
  cursor: pointer;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: bold;
  margin-bottom: 5px;
}

.dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 100px;
}

.dates a{
  min-height: 60px;
  overflow: hidden;
}

.day {
  border: 1px solid #ddd;
  background-color: #fffbea;
  min-height: 80px;
  padding: 4px;
  font-size: 14px;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: black;
}

.off_month_day {
  border: 1px solid #ddd;
  background-color: #fffbea;
  min-height: 80px;
  padding: 4px;
  font-size: 14px;
  cursor: pointer;
  color: #aaa;
  text-decoration: none;
}

.holiday {
  background: #265AA9;
  color: white;
  font-size: 12px;
  margin-top: 3px;
  padding: 2px;
  border-radius: 3px;
}

.controls {
  margin-bottom: 10px;
}

.event {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.event:target {
  display: flex;
}

.event-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-buttons {
  display: flex;
  justify-content: space-between;
}

.event-btn {
  padding: 6px 12px;
  background: #265AA9;
  color: white;
  border-radius: 5px;
  text-decoration: none;
}

.color-options {
  display: flex;
  gap: 8px;
  margin: 5px 0;
}

.color-btn {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  /* Makes it circular */
  border: 2px solid #aaa;
  /* Light border for visibility */
  cursor: pointer;
  padding: 0;
  outline: none;
}

.color-btn:hover {
  transform: scale(1.2);
}

.color-btn.selected {
  border: 2px solid black;
}

.calendar_nav_link {
  display: flex;
  padding: 6px 12px;
  background-color: #fffbea;
  color: black;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: 0.2s;
  width: 35px;
  height: 35px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  line-height: 1;
}

.calendar_nav_link:hover {
  transform: scale(1.05);
}

.calendar_nav_link:active {
  transform: scale(0.95);
}

.new-event-container {
  text-align: center;
  /* center the button */
  margin: 20px 0;
  /* space above and below */
}

.new-event-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #fffbea;
  color: black;
  font-weight: bold;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: 0.2s;
  z-index: 1;
}

.new-event-button:hover {
  transform: scale(1.05);
}

.new-event-button:active {
  transform: scale(0.95);
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #e6e6e6;
    border: 1px solid #888;
    padding: 12px 20px;
}

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid #888;
    width: 70px;
    height: 50px;
    flex-shrink: 0;
}

.logo {
    width: 30px;
    height: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

nav a {
    text-decoration: underline;
    color: blue;
    font-family: "Poppins", sans-serif;
}

nav a:hover {
    color: darkblue;
}

/* FOOTER */

footer {
    margin-top: 50px;
    border: 1px solid #888;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 15px;
    background-color: white;
    box-sizing: border-box;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo-img {
    width: 30px;
    height: auto;
}

.footer-text {
    font-weight: bold;
    color: black;
    white-space: nowrap;
}

.social-links {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.social-links a {
    color: blue;
    text-decoration: underline;
}

.social-links a:hover {
    color: darkblue;
}
