/* Global Styles */
body {
    font-family: Arial, sans-serif;
    background: url("/static/bilder/Framside.jpeg") no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.form-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.form-container form label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.form-container form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-container form button {
    width: 100%;
    padding: 10px;
    background: #007BFF;
    border: none;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.form-container form button:hover {
    background: #0056b3;
}

/* Hints Section */
.hints-container {
    margin-top: 20px;
    text-align: center;
}

.hints-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hint-btn {
    padding: 8px 12px;
    background: #6c757d;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
}

.hint-btn:hover {
    background: #5a6268;
}

.hint-text {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
}

/* Denied Page Styling */
.denied-page {
    text-align: center;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    color: white;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Semi-transparent box for better readability */
.denied-container {
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Image inside the container */
.denied-container img {
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}

.denied-container h1 {
    font-size: 28px;
}

.denied-container p {
    font-size: 18px;
}

.retry-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 15px;
    background: #ff4d6d;
    color: white;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    transition: 0.3s;
}

.retry-button:hover {
    background: #ff1a47;
}




/* Home Page */
.home-page {
    text-align: center;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: url("/static/bilder/home_background.jpeg") no-repeat center center fixed;
    background-size: cover;
    color: white;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.home-container {
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 30px;
}

/* Home Page Buttons */
.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.home-button {
    display: inline-block;
    padding: 12px 18px;
    background: #ff4d6d;
    color: white;
    text-decoration: none;
    font-size: 18px;
    border-radius: 8px;
    transition: 0.3s;
}

.home-button:hover {
    background: #ff1a47;
}

/* Log Out Button */
.logout-container {
    margin-top: 30px;
}

.logout-button {
    display: inline-block;
    padding: 12px 18px;
    background: #ff1a47;
    color: white;
    text-decoration: none;
    font-size: 18px;
    border-radius: 8px;
    transition: 0.3s;
}

.logout-button:hover {
    background: #d90027;
}








/* Memories Page */
.memories-page {
    text-align: center;
    background: #fef5dc;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    color: #ff4d6d;
    margin: 0;
    padding: 0;
}

.memories-container {
    padding: 20px;
}

/* Make album covers large and taller */
.albums {
    display: flex;
    flex-direction: column;
    /* Stack albums vertically */
    align-items: center;
    gap: 50px;
    /* Space between albums */
}

.album {
    display: block;
    width: 95vw;
    /* Cover most of the screen width */
    max-width: 1400px;
    /* Prevents covers from getting too wide */
    height: 70vh;
    /* Increased height (previously 50vh) */
    position: relative;
    text-decoration: none;
    color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.album img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image fills the box while maintaining aspect ratio */
    position: absolute;
    top: 0;
    left: 0;
}

.album-title {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 25px;
    font-size: 28px;
    font-weight: bold;
    border-radius: 10px;
    text-align: center;
}

/* Hover effect */
.album:hover {
    transform: scale(1.03);
}

/* Memories Buttons */
.memories-buttons {
    text-align: center;
    margin-bottom: 20px;
}

.home-button {
    display: inline-block;
    padding: 12px 18px;
    background: #ff4d6d;
    color: white;
    text-decoration: none;
    font-size: 18px;
    border-radius: 8px;
    transition: 0.3s;
}

.home-button:hover {
    background: #ff1a47;
}







/* Slideshow Page */
.slideshow-page {
    text-align: center;
    background: #fff;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.slideshow-container {
    padding: 20px;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.image-gallery img {
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Back Button */
.back-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background: #ff4d6d;
    color: white;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    transition: 0.3s;
}

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

/* Slideshow Page */
.slideshow-page {
    text-align: center;
    background: #fff;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.slideshow-container {
    padding: 20px;
}

.slideshow-img {
    width: 500px;
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
    display: block;
}

/* Slideshow Buttons */
.slideshow-buttons {
    margin-top: 20px;
}

.home-button,
.view-all-button,
.back-button {
    display: inline-block;
    padding: 10px 15px;
    background: #ff4d6d;
    color: white;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    margin: 10px;
    transition: 0.3s;
}

.home-button:hover,
.view-all-button:hover,
.back-button:hover {
    background: #ff1a47;
}


/* Grid Page */
.grid-page {
    text-align: center;
    background: #fff;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.grid-container {
    padding: 20px;
}

.image-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.image-grid img {
    width: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ================== COUPONS PAGE STYLES ================== */

.coupons-page {
    text-align: center;
    background: #fff5e1;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    color: #ff4d6d;
    margin: 0;
    padding: 0;
}

.coupons-container {
    padding: 20px;
}

/* Home Button */
.coupons-buttons {
    text-align: center;
    margin-bottom: 20px;
}

.home-button {
    display: inline-block;
    padding: 12px 18px;
    background: #ff4d6d;
    color: white;
    text-decoration: none;
    font-size: 18px;
    border-radius: 8px;
    transition: 0.3s;
}

.home-button:hover {
    background: #ff1a47;
}

/* Coupon Categories */
.coupon-categories {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
}

/* Each category section */
.coupon-category {
    width: 80%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.coupon-category h2 {
    font-size: 24px;
    color: #ff4d6d;
    margin-bottom: 15px;
}

/* Coupons Grid */
.coupon-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 10px;
}

/* Coupon Button (Hidden at First) */
.coupon-card {
    background: white;
    padding: 15px;
    width: 200px;
    height: 80px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    font-size: 18px;
    font-weight: bold;
    border: 2px dashed #ff4d6d;
}

/* Coupon Hover Effect */
.coupon-card:hover {
    background: #ff4d6d;
    color: white;
    transform: scale(1.05);
}

/* Style for Redeemed Coupon */
.coupon-card.redeemed {
    background: #4CAF50;
    color: white;
    border: 2px solid #3e8e41;
    transform: scale(1.05);
}

/* Cooldown State */
.coupon-card.cooldown {
    background: #ccc;
    color: #666;
    border: 2px solid #aaa;
    cursor: not-allowed;
}