/* Reset & base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    overflow-y: scroll;
    position: relative;
}

#bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../photos and videos/5166950.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
}

/* Navbar styles (copied from index.css) */
.navbar {
    background-color: #1d1c1e8f;
    padding: 1.9rem 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Layout: brand on top-left, nav links below */
.navbar .container {
    display: flex;
  flex-direction: row;            /* instead of column */
  justify-content: space-between; /* pushes brand to left, nav to right */
  align-items: center;   
}

.navbar-brand {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.navbar-nav {
     display: flex;
  flex-direction: row;
  gap: 2rem;
  margin-left: auto; /* extra insurance that it stays on the right */
  width: auto;     
}

/* Unified link and cart icon styling */
.nav-item a,
.nav-cart-icon {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 3rem;
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-item a:hover,
.nav-cart-icon:hover {
    color: #00bcd4;
}

/* Checkout and other content styles */
.checkout-main {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    color: white;
}

.checkout-container {
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.checkout-container h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

form label {
    display: block;
    margin-top: 1rem;
}

form input {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: none;
    border-radius: 8px;
}

button[type='submit'] {
    width: 100%;
    margin-top: 2rem;
    padding: 1rem;
    background-color: #00bcd4;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

/* Confirmation message */
.confirmation-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    color: black;
    padding: 2rem;
    border-radius: 12px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-align: center;
    display: none;
}

.confirmation-message h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.confirmation-message p {
    margin-bottom: 1.5rem;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: -220px;
    font-size: 1.5rem;
    color: #999;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ff3333;
}

/* Cart sidebar off-canvas */
#cart {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
}

#cart.cart-open {
    right: 0;
}

#cart.cart-closed {
    right: -100%;
}

/* Responsive navbar behavior */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .nav-item a,
    .nav-cart-icon {
        padding: 1rem 1.5rem;
        font-size: 1.2rem;
        background-color: transparent;
    }
    .navbar-brand {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar-brand {
        font-size: 1rem;
    }
    .navbar-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }
    .nav-item a,
    .nav-cart-icon {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        background-color: transparent;
    }
    h1 {
        font-size: 2rem;
    }
    p {
        font-size: 0.95rem;
    }
}

@media (max-width: 1200px) {
  .navbar {
    padding: 1rem;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .nav-item a {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background-color: transparent;
  }

  h1 {
    font-size: 2rem;
  }

  p {
    font-size: 0.95rem;
  }
}

@media (max-width: 1024px) {
  .navbar {
    padding: 1rem;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .nav-item a {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background-color: transparent;
  }

  h1 {
    font-size: 2rem;
  }

  p {
    font-size: 0.95rem;
  }
}

