/* General body and background styles */
body {           
  background-color: black; /* Fallback color */
            background-image: linear-gradient(black, #0f0631, black); /* Gradient */
            background-size: cover;  /* Ensures the gradient covers the entire page */
            background-position: center;  /* Center the gradient */
    font-family: "Megrim", fantasy, sans-serif;
    color: white;
    margin: 0;
    overflow-x: hidden;
    transition: transform 0.3s ease-in-out;
    cursor: url('https://alucinor.neocities.org/cursors/purplepotion.png'), auto;
            padding: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            min-height: 100vh;
            text-align:center;
        }
        
                /* Container for the logo and overlay text */
        .logo-container {
            position: relative;
            display: inline-block; /* Ensures both text and image are within the same container */
        }

        /* Styling the logo */
        .logo {
            width: 300px;
            height: 300px;
        }

        /* Overlay text container */
        .overlay-text {
            position: absolute;
            bottom: -9%;
            left: 50%;
            transform: translateX(-50%);  /* Centers the text */
            text-align: center;
            width: 100%;
            color: white;
            padding: 10px;
        }

        /* ALUCINOR text styling */
        .title {
            font-size: 2rem;  
            margin: 0;
        }

        /* COSMIC GIFTSHOP text styling */
        .subtitle {
            font-size: 0.9rem;  
            margin-top: 30px;
        }
        
         /* Title and subtitle styles */
        .title-main {
            font-size: 200%;
            margin-bottom: 10px;
        }

        .subtitle-main {
            font-size: 100px;
            margin-bottom: 30px;
            margin-top:10px;
        }
        
        
 /* Cosmic Back Button */
      .cosmic-button {
        font-family: 'Arial', sans-serif;
        font-size: 20px;
        color: white;
        background: linear-gradient(45deg, #4e2a84, #2e1f47, #0a0a2f);
        border: none;
        border-radius: 30px;
        padding: 15px 30px;
        text-align: center;
        cursor: pointer;
        outline: none;
        position: absolute;
        top: 20px;
        left: 20px;
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.7);
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 1.5px;
      }

      .cosmic-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('https://cdn.pixabay.com/photo/2015/09/18/18/43/galaxy-943028_960_720.jpg') no-repeat center center;
        background-size: cover;
        filter: blur(10px);
        z-index: -1;
      }

      .cosmic-button:hover {
        background: linear-gradient(45deg, #6e1f90, #3b2f61, #0a0a47);
        box-shadow: 0 0 50px rgba(255, 255, 255, 1);
        transform: scale(1.05);
      }

      .cosmic-button:active {
        transform: scale(0.98);
      }

/* Header styling */
header {
    text-align: center;
    padding: 20px;
}

header p {
    font-size: 200%;
}

h1 {
    font-size: 3em;
    font-weight: bold;
    margin: 20px 0;
}

/* Product Grid Layout */
.container {
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-description {
  display:flex;
  flex-direction:column;
  align-items:center;
    padding: 15px;
    flex-grow: 1;
}

.card-description h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.card-description p {
    font-size: 1em;
    margin-bottom: 15px;
    font-family:"papyrus";
}

.card-description mark {
    background-color: #333;
    color: #39FF14;
    padding: 0 5px;
}

.buy-btn {
  align-self: center;
  margin-bottom:10px;
}

.buy-btn, button {
    margin: 15px 0;
    padding: 12px 20px;
    background-color: white;
    color:black;
    font-family:"Megrim";
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    border-radius: 5px;
    opacity: 0.8;
    transition: opacity 0.3s, background-color 0.3s;
}

.buy-btn:hover, button:hover {
    opacity: 1;
    background-color: #333;
    color:#39FF14;
}

/* Open basket button positioned on the right */
.open-basket-btn {
    position: fixed;
    top: 20px; /* Distance from the top */
    right: 20px; /* Distance from the right */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000; /* Ensure it's above other elements */
}

.open-basket-btn img {
    display: block;
}

/* Sidebar positioned on the right */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.9); /* Dark background */
    color: white;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    transform: translateX(100%); /* Initially hidden (off-screen) */
    transition: transform 0.3s ease-in-out;
    z-index: 999; /* Below the button but above main content */
}

/* Sidebar visible when toggled */
.sidebar.active {
    transform: translateX(0); /* Slide in from the right */
}

/* Card contents (list) */
.card-contents {
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.card-contents ul {
    padding-left: 20px;
    font-size: 0.9em;
}

.card-contents li {
    list-style-type: disc;
    margin-bottom: 5px;
    font-family:"papyrus";
}

