/* Pet Bird Slot Machine Styles */
@import url(https://fonts.googleapis.com/css?family=Six+Caps);
@import url(https://fonts.googleapis.com/css?family=Montserrat);

.pet-bird-slot-section {
  position: relative;
  max-width: 42rem;
  margin: 20px auto;
  padding: 0 1rem;
  background: #fff;
  border-radius: 15px;
  box-shadow: none;
  overflow: hidden;
}

.pet-bird-slot-section aside {
  margin: 0 auto 1rem;
  width: 6rem;
  text-align: center;
}

.pet-bird-slot-section main {
  position: relative;
  z-index: 210;
  padding: 20px;
  text-align: center;
  margin: auto;
}

.copy__title {
  margin-top: 0;
  font-size: 10vw;
  letter-spacing: .2rem;
  line-height: .5;
  text-align: center;
  font-family: "Six Caps", sans-serif;
  color: #333;
}

.copy__title strong {
  color: #CC2802;
}

h1.copy__title2 {
  font-weight: 700;
  text-align: center;
  color: #883492;
  font-family: "Six Caps", sans-serif;
  letter-spacing: 4px;
  font-size: 75px;
  margin-top: -10px;
}

.copy__description {
  font-size: 4vw;
  text-align: center;
  color: #666;
  margin-bottom: 20px;
}

.slot-instruction {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin: 20px 0 10px 0;
  font-style: italic;
}

.slots {
  display: flex;
  gap: 1rem;
  margin: 20px 0;
}

.slots__slot {
  flex: 1;
  height: 200px;
  border: 1px solid #ccc;
  border-radius: 1rem;
  overflow: hidden;
  background-color: #fff;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.slots__slot:hover {
  border: 3px solid #8D3192;
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(141, 49, 146, 0.3);
}

.slots__container {
  position: relative;
  transition: transform 0.3s ease;
  transform: translateY(0px);
}

.slots__option {
  display: flex;
  text-align: center;
  text-transform: uppercase;
  height: 100%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-height: 200px;
  border: 1px solid #ccc;
  margin: 2px 0;
}

/* Remove colored backgrounds - clean white slots */
.slots__slot:nth-child(1) .slots__option {
  background-color: #fff;
  border-color: transparent;
}

.slots__slot:nth-child(2) .slots__option {
  background-color: #fff;
  border-color: transparent;
}

.slots__slot:nth-child(3) .slots__option {
  background-color: #fff;
  border-color: transparent;
}

.slots__option:hover {
  background-color: #fff; /* Keep white background */
}

.slots__option span {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-family: "Montserrat", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 3vw;
  letter-spacing: .1rem;
}

.product-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0px;
}

.product-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin: 0;
  display: block;
}

.product-name {
  font-size: 12px;
  text-align: center;
  line-height: 1.2;
  color: #333;
}

.slots__option span strong {
  font-family: "Six Caps", sans-serif;
  font-size: 9vw;
  line-height: 1;
}

/* Bird type specific colors */
.slots__option[data-type="small-bird"] span {
  color: rgb(139, 195, 74);
}

.slots__option[data-type="small-bird"] span strong {
  color: #4CAF50;
}

.slots__option[data-type="medium-bird"] span {
  color: rgb(255, 193, 7);
}

.slots__option[data-type="medium-bird"] span strong {
  color: #FF9800;
}

.slots__option[data-type="large-bird"] span {
  color: rgb(156, 39, 176);
}

.slots__option[data-type="large-bird"] span strong {
  color: #9C27B0;
}

.btn--spin {
  margin: 20px auto;
  width: 200px;
  background: #8D3192;
  color: #fff;
  letter-spacing: .25rem;
  font-size: 1.5rem;
  border: none;
  padding: 1rem 0;
  cursor: pointer;
  display: block;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.btn--spin:hover {
  background: #7a2a7f;
}

.btn--spin:active {
  background: #6b2469;
}

.graphic {
  position: relative;
}

.graphic__machine {
  position: relative;
  z-index: 410;
  width: 100%;
  height: auto;
}

/* Responsive design */
@media screen and (min-width: 42rem) {
  .pet-bird-slot-section {
    display: flex;
    align-items: center;
    max-width: 800px;
  }
  
  .pet-bird-slot-section aside {
    width: calc(99.99% * 1/3 - (2rem - 2rem * 1/3));
    margin-right: 2rem;
  }
  
  .pet-bird-slot-section main {
    width: calc(99.99% * 2/3 - (2rem - 2rem * 2/3));
  }
  
  .copy__title {
    font-size: 2rem;
  }
  
  .copy__description {
    font-size: 1rem;
  }
  
  .slots__slot,
  .slots__option {
    height: 10rem;
  }
  
  .slots__option span {
    font-size: 1rem;
  }
  
  .slots__option span strong {
    font-size: 3rem;
  }
  
  .product-image {
    width: 100%;
    height: auto;
  }
}

/* Hide third slot on mobile for better spacing */
@media screen and (max-width: 768px) {
  .slots__slot:nth-child(3) {
    display: none;
  }
}

@media screen and (min-width: 420px) {
  .slots__slot,
  .slots__option {
    height: 18vw;
    max-height: 200px;
  }
}

/* Modal Styles */
.pet-bird-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
  box-sizing: border-box;
}

.pet-bird-modal-container {
  position: relative;
  background: white;
  border-radius: 15px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
}

.pet-bird-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  color: #666;
  cursor: pointer;
  z-index: 10000;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.pet-bird-modal-close:hover {
  background-color: #f0f0f0;
  color: #333;
}

.pet-bird-modal-content {
  padding: 25px;
  margin: 0;
  background: white;
  border-radius: 15px;
}

.modal-close-link {
  text-align: center;
  margin-top: 15px;
}

.modal-close-link a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.modal-close-link a:hover {
  color: #333;
  text-decoration: underline;
}

/* Responsive modal adjustments */
@media screen and (max-width: 768px) {
  .pet-bird-modal-overlay {
    padding: 20px 10px;
  }
  
  .pet-bird-modal-container {
    max-width: 95%;
  }
  
  .pet-bird-modal-content {
    padding: 20px 15px;
  }
  
  .pet-bird-modal-close {
    top: 10px;
    right: 15px;
    font-size: 24px;
    width: 35px;
    height: 35px;
  }
}