/* CSS styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 5% 0 5% 0;
    background-color: #f4f4f4;
    /* background-image: url('img/bg.jpg'); */
    background-repeat: no-repeat;
    background-size: cover;

}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    padding-bottom: 10vh;
    background-color: #fff;
    /* background: linear-gradient(to left bottom, #ffdbad, #fcf2e1, #f7ddc2); */
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.container,.container h1,.container h2,.container h3,.container h4,.container h5,.container h6,.container p{
    color: #917a47;
}

.container a{
    color: #876832;
}

.img-100{
    width: 100px;
    height: 100px;
    object-fit: fill;
}


.img-300{
    width: 300px;
    height: 300px;
    object-fit: fill;
}


.img-500{
    width: 500px;
    height: 500px;
    object-fit: fill;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

/* Styles for the QR box */
.qr-box {
    margin-top: 40px;
    display: grid;
    flex-direction: column;
    align-items: center;
}

.qr-box img {
    width: 300px;
    height: 300px;
    border-radius: 8px;
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);*/
    margin: auto;
}

.qr-box p {
    font-size: 18px;
    color: #555;
    text-align: center;
}

p.description-qr{
    text-align: left;
}

p.title-qr{
    font-weight: 600;
}

/* Styles for the stamp grid */
.stamp-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
}

.stamp-cube {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    margin: auto;
}

.stamp {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 24px;
    background-color: #ffffff;
    transition: background-color 0.3s ease-in-out;
    cursor: pointer;
    margin: 10px;
}


/* Styles for empty stamps */
.stamp-empty {
    /*background-color: #eeeeee;*/
    background-color: #ffffff;
    font-size: 12px;
    /* Additional styles for empty stamps */
}

h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.reward-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 20px;
}

.reward-item {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
    background-color: #fff;
    padding-bottom: 10px;
}

.reward-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    /*border-bottom: 1px solid #ccc;
    box-shadow: 0 0 5px rgba(0,0,0,0.3)*/
}

.reward-content {
    padding: 15px;
}

.reward-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.reward-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.redeem-btn, input[type="submit"] {
    padding: 8px 20px;
    background-color: #d6a55f;
    background: linear-gradient(to left bottom, #C36839, #CD8A5F, #C36839);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.redeem-btn:hover, input[type="submit"]:hover {
    background-color: #d6a55f;
}

.redeem-btn-grey-out {
    padding: 8px 20px;
    color: white;
    background-color: #d6a55f;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    pointer-events: none; 
    opacity: 0.5; 
  }
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 80%;
    max-height: 80%;
    overflow: auto;
    border-radius: 10px;
}

.popup img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 999;
    cursor: pointer;
    color: black;
}

#openPopup{
    color: white;
    background-color: rgb(192, 0, 0);
    background: linear-gradient(to left bottom, #C36839, #CD8A5F, #C36839);
    border-radius: 5px;
    padding: 10px 20px;
    border: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

table.history {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.history th, .history td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.history th {
    background-color: #f2f2f2;
}

.history tr:hover {
    background-color: #f9f9f9;
    cursor: pointer;
}

#detailsDiv {
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 20px;
}

.hidden-row {
    display: none;
}

.details-container {
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

 /* Slideshow container */
        .slideshow-container {
            width: 100%;
            position: relative;
            margin: auto;
        }

        /* Hide the images by default */
        .mySlides {
            display: none;
            width: 100%;
            height: auto;
        }
        
        .mySlides img{
            height: 400px;
            border-radius: 10px;
            object-fit: cover;
        }
        
        .arrow{
            display: flex;
            width: 100%;
        }

        /* Next & previous buttons */
        .prev, .next {
            cursor: pointer;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: auto;
            padding: 16px;
            color: white;
            font-weight: bold;
            font-size: 18px;
            transition: 0.6s ease;
            border-radius: 0 3px 3px 0;
            user-select: none;
            z-index: 1;
        }
        
        /* Position the "next button" to the right */
        .next {
            right: 0;
            border-radius: 3px 0 0 3px;
        }


        /* Caption text */
        .text {
            color: #f2f2f2;
            font-size: 15px;
            padding: 8px 12px;
            position: absolute;
            bottom: 8px;
            width: 100%;
            text-align: center;
        }

        /* Number text (1/3 etc) */
        .numbertext {
            color: #f2f2f2;
            font-size: 12px;
            padding: 8px 12px;
            position: absolute;
            top: 0;
        }

        /* The dots/bullets/indicators */
        .dot {
            cursor: pointer;
            height: 10px;
            width: 10px;
            margin: 0 2px;
            border-radius:5px;
            background-color: #bbb;
            display: inline-block;
            transition: background-color 0.6s ease, width 0.6s ease;

        }

        /* Active dot */
       .active, .dot:hover {
            background-color: #d6a55f;
            animation-name: dot-fade;
            animation-duration: 0.5s;
            width: 30px;
            transition: width 0.6s ease; /* Adding transition effect */
        } 
        
        /* Fading animation */
        .fade {
          animation-name: fade;
          animation-duration: 1.5s;
        }
        
        @keyframes fade {
          from {opacity: .4} 
          to {opacity: 1}
        }
        
         @keyframes dot-fade {
          from {width: 10px} 
          to {width: 30px}
        }

        /* Styling for the more_list */
        .more_list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        /* Styling for list items */
        .more_list li {
            margin-bottom: 10px;
            border-bottom: 1px solid #ccc; /* Add bottom border */
            padding: 15px 5px;
            padding-right: 30px;
            position: relative; /* Set position relative to contain absolutely positioned elements */
        }

        /* Styling for links */
        .more_list li a {
            display: block; /* Allow full width clicking */
            text-decoration: none;
            color: #5c5c5c; /* Change link color */
            padding-left: 25px; /* Adjust padding as needed */
            position: relative;
            text-align: left; /* Align text to the left */
            line-height: 30px; /* Adjust line height for vertical alignment */
            justify-content: space-between;
        }

        /* Styling for icons */
        .more_list li a i {
            position: absolute;
            left: 0;
            top: 50%; /* Align icon vertically */
            transform: translateY(-50%);
            font-size: 18px; /* Change icon size */
            width: 20px;
            text-align: center;
            color: inherit; /* Inherit color from link */
        }

        .arrow-right::after {
            content: '\f054'; /* FontAwesome Unicode for right arrow */
            font-family: 'Font Awesome 5 Free'; /* Ensure this matches your FontAwesome version */
            font-weight: 900; /* For FontAwesome solid icons */
            position: absolute;
            right: 10px; /* Position arrow to the far right */
            top: 50%; /* Align vertically with the text */
            transform: translateY(-50%); /* Center the arrow vertically */
        }

        /*outlet*/
        .outlet-grid {
            display: block;
            background-color:#ffffff;
        }
        
        .outlet-item {
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
            padding: 20px;
            text-align: left;
            margin-bottom: 20px;
        }
        
        .outlet-item img {
            max-width: 100%;
            height: auto;
            border: 1px solid #ddd;
        }
        
        .outlet-item h3 {
            margin-top: 10px;
            font-size: 1.2em;
        }
        
        .outlet-item p {
            margin-top: 5px;
            color: #888;
            font-size: 0.9em;
        }
        
        .outlet-item a {
            display: block;
            margin-top: 15px;
            padding: 8px 20px;
            background-color: #d6a55f;
            color: #fff;
            text-decoration: none;
            border-radius: 5px;
            transition: background-color 0.3s ease;
            text-align: center;
        }
        
        .outlet-item a:hover {
            background-color: #d6a55f;
        }

        .outlet-item iframe{
            width: 100% !important;
        }

 /* Media query for mobile devices */
 @media screen and (max-width: 600px) {
    div{
        font-size: 12px;
    }
    .prev, .next,.text {font-size: 11px}
    .dot {height: 5px;}
    .mySlides img{
        height: 200px;
    }
    .outlet-item iframe{
        height: 200px !important;
    }
     
    p.description-qr{
        font-size: 12px;
        text-align: left;
    }

    p.title-qr{
        font-size: 14px;
        font-weight: 600;
    }

    .img-100{
        width: 80px;
        height: 80px;
        object-fit: fill;
    }
    
    
    .img-300{
        width: 180px;
        height: 180px;
        object-fit: fill;
    }
    
    
    .img-500{
        width: 280px;
        height: 280px;
        object-fit: fill;
    }

    .container {
        margin: 15% 5%;
    }
    h1 {
        font-size: 16px;}
    h2 {
        font-size: 14px;
    }

    p {
        font-size: 12px;
    }
    .stamp-cube {
        padding: 10px 0;
    }
    
    .stamp {
        width: 60px;
        height: 60px;
        margin: 0;
    }

    .popup{
        width: 70%;
    }

    .outlet-item a, .redeem-btn, input[type="submit"] {
        font-size: 12px;
    }
    .reward-item h3 {
        font-size: 16px;    }

    .reward-item p {
        font-size: 12px;
        
    }
    
    .reward-description {
        font-size: 12px;}
    
    .reward-item img {
        height: 150px;
    }
 }
