* {
  box-sizing: border-box;
}


html, body {
  margin: 0;
  padding: 0;
  background-color: #000;
}

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* dynamic viewport height - fixes mobile browser chrome */
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.3);
}

.title {
  font-size: 3em;
  margin-bottom: 30px;
  font-weight: 600;
}

.mint-button {
  font-size: 18px;
  padding: 14px 40px;
  background: white;
  color: black;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.mint-button:hover {
  background: #eee;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.menu-icon {
  font-size: 28px;
  font-weight: bold;
  color: white;
  cursor: pointer;
}

.ton-connect {
  background: white;
  color: black;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ton-connect:hover {
  background: #ddd;
}


.side-menu {
  position: fixed;
  top: 0;
  left: -260px;
  width: 240px;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  color: white;
  z-index: 9;
  padding-top: 80px;
  transition: left 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.side-menu.open {
  left: 0;
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu li {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-menu li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  display: block;
}

.side-menu li a:hover {
  text-decoration: underline;
}

.side-menu-close {
  position: absolute;
  top: 20px;
  right: 16px;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.side-menu-close:hover {
  color: #ccc;
}

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

.modal-content {
  background-color: white;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  width: 90%;
  max-width: 500px;
  height: auto;
  max-height: 90vh;
  position: relative;
  animation: fadeIn 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.modal-content h2 {
  margin-bottom: 12px;
  font-weight: 600;
}

.modal-description {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.4;
}

.modal-content input {
  padding: 10px;
  font-size: 16px;
  width: 100%;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
}

.modal-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.confirm-button,
.decline-button {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
}

.confirm-button {
  background-color: black;
  color: white;
}

.confirm-button:hover {
  background-color: #222;
}

.decline-button {
  background-color: #eee;
  color: black;
}

.decline-button:hover {
  background-color: #ccc;
}

.modal .close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #999;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Auctions Page --- */

.page-title {
  font-size: 2em;
  margin: 20px auto;
  text-align: center;
  font-weight: 600;
}

.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  text-decoration: none;
  font-size: 16px;
  background: #333;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.back-button:hover {
  background: #555;
}

.auction-page {
  margin-top: 80px;
  padding: 20px;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.auction-controls {
  margin-bottom: 20px;
}

.create-auction,
.filter-auction {
  font-size: 16px;
  padding: 10px 20px;
  margin: 0 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background-color: #fff;
  color: #000;
  transition: background 0.2s ease;
}

.create-auction:hover,
.filter-auction:hover {
  background-color: #ddd;
}

.auction-list {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 30px;
  color: #ccc;
}

.error-message {
  color: red;
  font-size: 14px;
  display: none;
  margin-top: 4px;
}

.date-field.error {
  border: 1px solid red;
}


button.confirm-button {
  appearance: none;   /* Remove browser styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  background: black;
  color: white;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

button.confirm-button:hover {
  background: #222;
}


.notification-container {
    margin-top: 20px;
}

.notification {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    position: relative;
}

.notification.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notification.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification .close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

.suggestions-list {
  list-style-type: none;   /* remove default bullets */
  padding-left: 0;         /* remove indentation */
  margin-top: 10px;
  text-align: center;
}

.suggestions-list li {
  margin: 5px 0;
}

.suggestion-item {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.suggestion-item:hover {
  background: #e0e0e0;
 }

@media (max-width: 768px) {
  .title {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .mint-button {
    font-size: 16px;
    padding: 12px 28px;
  }

  .modal-content {
    padding: 20px;
  }

  .side-menu {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 1.6em;
    margin-bottom: 16px;
  }

  .mint-button {
    font-size: 14px;
    padding: 8px 18px;   /* smaller padding */
    border-radius: 14px;  /* less round */
  }

  header {
    padding: 12px;
  }

  .ton-connect {
    padding: 8px 14px;
    font-size: 12px;
  }
}

.footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 16px;
  font-family: "Google Sans Code", monospace;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: #fff;                /* white text */
  background-color: #000;      /* black background */
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 0;
}

.footer p {
  margin: 0;
}


.telegram-link img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s;
}

.telegram-link img:hover {
  transform: scale(1.2); /* grows slightly on hover */
}

/* Force TonConnect modal to be on top */
.tc-modal,
.tc-modal * {
  z-index: 100000 !important;
}

.getgems-link {
  color: #4A90D9; /* or any color you want */
  text-decoration: none;
}

.getgems-link:hover {
  color: #6FB3F0;
}

.footer-link {
  color: #aaa;
  text-decoration: none;
}

.footer-link:hover {
  color: #fff;
}
.video-section {
  overflow: hidden;
}

/* Mobile: make modal full-width and scrollable */
@media (max-width: 480px) {
  .modal-content {
    width: 95%;
    padding: 24px 16px;
    border-radius: 12px;
    max-height: 85vh;
    overflow-y: auto;
  }

  .modal-content h2 {
    font-size: 20px;
  }

  .modal-description {
    font-size: 13px;
  }

  .modal-content input {
    font-size: 16px; /* prevents iOS auto-zoom on input focus */
  }

  /* Side menu full width on very small screens */
  .side-menu {
    width: 75vw;
    max-width: 260px;
  }

  /* Footer wraps on small screens */
  .footer {
    font-size: 13px;
    padding: 16px 12px;
    line-height: 1.8;
  }

  .footer p {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    align-items: center;
  }

  /* Suggestion buttons easier to tap on mobile */
  .suggestion-item {
    padding: 10px 16px;
    font-size: 15px;
  }

  /* Modal buttons stack on very small screens */
  .modal-buttons {
    flex-direction: column;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .modal-content {
    width: 92%;
  }

  .footer {
    font-size: 14px;
  }
}

/* Fix iOS Safari 100vh bug */
@supports (-webkit-touch-callout: none) {
  .video-section {
    height: -webkit-fill-available;
  }
}