/* --- Base modal container --- */
#screensize-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
  z-index: 9999;
}

/* When active */
#screensize-modal.show {
  opacity: 1;
  pointer-events: auto;
}

/* --- Modal box --- */
#screensize-modal .modal-box {
  background: #fff;
  width: 50%;
  max-width: 768px;
  padding: 24px 28px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transform: translateY(-10px) scale(0.98);
  opacity: 0;
  transition:
    opacity 0.25s ease-out,
    transform 0.28s cubic-bezier(0.22, 1.4, 0.36, 1);
}

/* Active box animation */
#screensize-modal.show .modal-box {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Responsive widths */
@media (max-width: 600px) {
  #screensize-modal .modal-box {
    width: 90%;
  }
}

/* --- Text / layout --- */
#screensize-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
}

#screensize-modal p {
  margin-bottom: 20px;
  line-height: 1.45;
  font-weight: 300;
}

/* --- Checkbox area --- */
#screensize-modal .options {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* --- Action button --- */
#screensize-modal .play-btn {
  width: 100%;
  padding: 12px;
  background: #0d6efd;        /* Bootstrap-ish blue */
  color: white;
  text-align: center;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  border-width: 0px;
}

#screensize-modal .play-btn:hover {
  background: #0a58ca;
}
