@font-face {
    font-family: 'alfabet';
    src: url('assets/fonts/Analfabet.otf') format('opentype');
}

body {
    font-family: 'alfabet', sans-serif;
    font-size:30px;
    color: #fffaf5;
    text-decoration: none; /*This rule removes underlines for ALL links*/
    background-color: #9f4335;
    background-image: url('assets/images/brick_wall.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0 0 0 0;
}

/*NAVBAR SHOP PAGE*/
.navbar {
    position: fixed;
    top: 0;        /* Stick it to the bottom */
    left: 0;          /* Stretch to the left */
    right: 0;
    background-color: #141924;
    color: white;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    z-index: 1001;
}

.navbar-content {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.navbar a {
    text-decoration: none;
    color:white;
    padding: 10px 15px;
    transition: transform 0.2s ease, color 0.1s ease;
}

.navbar a:hover {
        transform: rotate(-5deg);
        color: #a5ff5c;
}

.navbar-button {
    display: none;
    background: black;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.left {
    flex: 1;
}

.center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.right {
    flex: 1;
    text-align: right;
}

.landing_page {
    display: flex;           /* Enables Flexbox */
    flex-direction: column;
    justify-content: center; /* Centers items horizontally */
}

a {
    font-family: 'alfabet', sans-serif;
    font-size:45px;
    color: #fffaf5; /* Sets text color to white */
    text-decoration: none; /*This rule removes underlines for ALL links*/
}

.index, .index html {
    font-family: 'alfabet', sans-serif;
    font-size:30px;
    color: #fffaf5;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}
.centered-text {
    text-align: center; /*rule for centered text...*/
} 

/*first draft of absolute container for image links*/
.container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 20px; /* Space between buttons and social icons */
    width: auto;
    height: 730px; /* Adjust size as needed */
}

.button {
    position: absolute;
    width: 600px; /* Adjust size as needed */
    height: 365px; /* Adjust size as needed */
    margin: 0 10px;
}

.button img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.button:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.button:nth-child(2) {
    bottom: 0;
    left: 0;
}

.button:nth-child(3) {
    bottom: 0;
    right: 0;
}

/*SHOP PAGE*/
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1rem;
    margin: 90px 0 0 0;
}

/* Image container styling */
.image-container {
    position: relative;
    width: 300px;
    height: 300px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire container */
    border-radius: 12px;
}

/* Price overlay styling */
.price-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.4); /* Light overlay for readability */
    color: #ffcc00; /* Bright yellow for emphasis */
    padding: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
}

.add-to-cart {
    position: absolute;
    bottom: 15px;
    left: 50%;
    background-color: #28a745;
    color: white;
    font-family: 'alfabet';
    font-size: 1rem;
    padding: 0.4rem 1rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.add-to-cart:hover {
    background-color: #0097a7; /* Darker teal on hover */
    transform: scale(1.05);
}

.footer {
    position: relative;
    padding: 14px;
    bottom: 0px;
    height: 50px;
}
/*footer container for youtube and instagram buttons on the homepage*/
.footer-with-buttons {
    background-color: #141924;
    color: white;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    width: 100%;
}

.footer-with-buttons a {
    text-decoration: none;
    color:white;
    padding: 10px 15px;
    transition: transform 0.2s ease, color 0.1s ease;
}

.footer-with-buttons a:hover {
        transform: rotate(-5deg);
        color: #a5ff5c;
}

/*mobile formatting*/
@media only screen and (max-width: 600px) {
    body {
        background-image: url('assets/images/mobile_brick_wall.jpg'); /* Change to mobile background image */
        background-size: cover; /* Make the image cover the entire body */
        background-repeat: no-repeat; /* Prevent repeating */
    }
    .container {
        position: relative; /* Ensure container positioning is correct */
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        align-items: center;
        height: auto; /* Let it grow based on content */
        width: 100%; /* Full width for proper alignment */
    }

    .button {
        position: relative; /* Remove absolute positioning */
        width:80%;
        height:auto;
        max-width: 600px; /* Set a max width for larger screens */
    }

    .button img {
        width: 100%; /* Ensure image takes full width of the button */
        height: auto; /* Maintain aspect ratio */
        display:block; /*remove extra space below the image*/;
    }

    .social-container {
        width: 100%; /* Full width to ensure correct placement */
        display:flex;
        justify-content: center; /* Center social icons horizontally */
    }
    
    .navbar-button {
        display: block;
    }
    
    .navbar-content {
        display: none;
        flex-direction: column;
        background: black;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
    }
    
    .navbar-content a {
        padding: 15px;
        text-align: center;
        display: block;
    }
    
    .navar-button.active + navbar-content {
        display: flex;
    }
}