/* Reset */
* {margin:0; padding:0;}

/* Container */
.month-buttons {
  max-width: 400px;
  margin: 0 auto;
  padding: 10px 0;
}

/* Base button style */
.month-btn {
  display: block;
  background: #2b6dcc;
  padding: 14px 18px;
  margin: 8px 0;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  position: relative;
}

/* RIGHT arrow circle */
.arrow-circle-right {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1em;
  color: #ffffff;
}

/* LEFT arrow circle */
.arrow-circle-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1em;
  color: #ffffff;
}

/* Indent text when arrow is on the left */
.month-btn.left-arrow {
  padding-left: 54px;   /* 18px normal padding + 28px circle + 8px spacing */
}

/* Hover effect */
.month-btn:hover {
  background: #1f5ab0;
}

@media screen {

  /* Backdrop */
  #modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 9999;
  }

  /* Modal container */
  #modal-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    width: 90%;
    max-width: 650px;

    /* KEY FIXES */
    max-height: 90vh;      /* modal never exceeds screen height */
    overflow-y: auto;      /* modal scrolls if content is tall */
    padding: 0;            /* no padding so iframe can fill space */

    border-radius: 12px;
    display: none;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    box-sizing: border-box;
  }

  /* Iframe fills modal and grows with content */
  #modal-iframe {
    width: 100%;
    height: auto;          /* iframe grows naturally */
    min-height: 200px;     /* prevents tiny iframe */
    border: none;
    display: block;
  }

  /* Close button */
  #modal-close {
    width: 100%;
    padding: 12px;
    background: #2b6dcc;
    color: #fff;
    border: none;
    font-size: 1em;
    cursor: pointer;
    border-radius: 0 0 12px 12px;
  }

  #modal-close:hover {
    background: #1f5ab0;
  }

}
