/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  overflow-x: hidden; /* optional, but helps debug horizontal scroll */
  box-sizing: border-box;
}

/* app/assets/stylesheets/application.css */

#startButton {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background-color: #2563eb;
  color: white;
  padding: 1.5rem 2rem;
  font-size: 1.25rem;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  z-index: 1000;
  cursor: pointer;
  transition: right 0.5s ease, opacity 0.5s ease;
}

#startButton.hidden {
  right: -150px;
  opacity: 0;
  pointer-events: none;
}

#myModal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#myModal.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

#myModal > div {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  position: relative;
  font-family: sans-serif;
}

#myModal button.close {
  position: absolute;
  top: 10px; right: 10px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

      html, body {
        margin: 0;
        padding: 0;
        width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
      }
      main {
        width: 100vw;
        display: flex;
        flex-direction: column;
        overflow: hidden;
      }
      .image-container {
        width: 100%;
        background: #e5e7eb; 
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
      }
      .image-container img {
        width: 100%;
        object-fit: contain;
        display: block;
      }



/* Base modal content transition */
.modal-content {
  transition: transform 0.4s ease, opacity 0.4s ease;
  position: relative;
}

/* Slide out left */
.modal-slide-out-left {
  transform: translateX(-100%);
  opacity: 0;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1050;
}

/* Slide out right */
.modal-slide-out-right {
  transform: translateX(100%);
  opacity: 0;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1050;
}

/* Slide in from left */
.modal-slide-in-left {
  transform: translateX(0);
  opacity: 1;
}

/* Slide in from right */
.modal-slide-in-right {
  transform: translateX(0);
  opacity: 1;
}

.nav-tabs .nav-link {
  color: #555;
  padding: 0.5rem 1rem;
  border: none;
}
.nav-tabs .nav-link.active {
  border-bottom: 2px solid #0d6efd;
  color: #0d6efd;
  background-color: transparent;
  font-weight: bold;
}

.modal-content {
  will-change: transform;
}
