/* General styling */
body {
    background-color: #006491; /* Same color as the share button */
    color: #fff; /* White text for contrast */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

.container {
    max-width: 800px;
    margin: 20px auto; /* Center the content container with margin */
    padding: 20px;
    background-color: #006491; /* Same color as the menu */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    margin-left: auto;  /* Add auto margin to center */
    margin-right: auto;
    position: relative;
    padding-bottom: 80px; /* Make space for the fixed bottom menu */
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #ff6600;
}

/* Deals table styling */
.deals-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.deals-table thead th {
    background: white;
    color: black;
    padding: 10px;
    text-align: center; /* Center align column titles */
    font-size: 20px;
}

.deals-table tbody tr {
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center; /* Align content vertically */
}

.deals-table td {
    padding: 10px;
    vertical-align: middle;
    display: flex;
    align-items: center;
}

/* Deals table styling */
.store-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.store-table thead th {
    background: white;
    color: black;
    padding: 10px;
    text-align: center; /* Center align column titles */
    font-size: 20px;
}

.store-table tbody tr {
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center; /* Align content vertically */
}

.store-table td {
    padding: 10px;
    vertical-align: middle;
    display: flex;
    align-items: center;
}

.store-info {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    flex: 3; /* Occupies 3/4 width of row */
}

.store-info img {
    width: 100%;  /* Make the image fill the container */
    height: 100%;  /* Make the height match the container */
    object-fit: cover;  /* Ensures the image covers the area completely */
    border: 2px solid white;  /* Tight border around the image */
    border-radius: 10px;  /* Rounded corners */
    display: block;  /* Remove any default inline gaps */
    cursor: pointer;  /* Show pointing hand cursor on hover */
}


.store-name-overlay {
    position: absolute;
    top: 10px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 2;
}

/* Actions styling */
.actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center; /* Center icons vertically */
    flex: 1; /* Occupies 1/4 width of row */
}

.actions i {
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
    text-align: center;
    gap: 50px; /* Add spacing between the icons */
}

.actions i:hover {
    color: #ffcc00;
}

.add-deal-btn {
    display: inline-block;
    margin: 20px 0;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%; /* Ensure button is full width or use a specific width if preferred */
    box-sizing: border-box;
}

.add-deal-btn:hover {
    background-color: #218838;
}


/* General styling for the SweetAlert2 popup */
.swal2-popup {
    font-family: Arial, sans-serif;
    padding: 20px;
    max-width: 600px;
}

/* Styling for store images */
.store-item img {
    width: 200px;
    height: auto;
    border-radius: 5px;
}

/* Styling for the store name above the image */
.store-item img + div {
    text-align: left;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    color: #fff;
}

/* Styling for buttons */
.add-store-btn {
    font-size: 12px;
    padding: 5px 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Styling for deal description */
.store-item td p {
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
}

/* Styling for the Domino's logo */
.swal2-popup img {
    width: 180px; /* Slightly larger */
    margin-bottom: 15px;
}

/* Styling for buttons */
.add-store-btn {
    font-size: 12px;
    padding: 5px 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Styling for deal description */
.store-item td p {
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
}

/* Bottom menu styling */
.bottom-menu {
    display: flex;
    justify-content: center; /* Center the icons horizontally */
    background-color: #534545;
    padding: 15px 0;
    color: white;
    font-size: 25px;
    border-top: 1.5px solid white;
    position: fixed;
    bottom: 0;
    left: 0;  /* Ensure it's aligned left */
    width: 100%;
    z-index: 500;
    align-items: center;
    height: 50px;
    gap: 40px; /* Add spacing between the icons */
}

.hot-deal-icon {
    color: red;
}

.bottom-menu i {
    color: white;
    cursor: pointer;
    line-height: 1;
}

.bottom-menu i:hover {
    color: #ffcc00; /* Change color on hover */
}

/* Logo styling */
.logo {
    width: 280px;
    margin: 0px auto;
}

 /* Left-aligned subheading styling */
 h4 {
    color: #ffcc00;
    margin-top: 15px;
    margin-bottom: 10px;
    text-align: left;
}

/* Paragraph styling */
p {
    color: #ccc;
    font-size: 1em;
    line-height: 1.6;
    margin: 10px 0;
}

/* Footer styling */
footer {
    background-color: #006491;
    color: #ccc;
    padding: 10px;
    font-size: 14px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

/* Link styling */
a {
    color: #ffcc00;
    text-decoration: underline;
}

/* Override styles specifically for the trophy icon */
.actions i.fa-trophy {
    font-size: 22px;  /* Larger size for the trophy */
    color: #ffcc00;  /* Gold color for the reward theme */
    animation: pulsate 1.5s infinite ease-in-out; /* Apply pulsating animation */
    gap: 50px; /* Add spacing between the icons */
}

/* Pulsate animation */
@keyframes pulsate {
    0% {
        transform: scale(1); /* Start at normal size */
    }
    50% {
        transform: scale(1.2); /* Scale up the icon */
    }
    100% {
        transform: scale(1); /* Scale back to original size */
    }
}

/* Shake animation for the bell icon */
.actions i.fa-bell.shake-icon {
    font-size: 22px;  /* Increase the size of the bell */
    color: white;     /* Set the bell color */
    transition: transform 0.2s ease-in-out; /* Smooth transition for shake */
}

/* Shake keyframes for two back-and-forth shakes */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }  /* First shake to the left (smaller) */
    50% { transform: translateX(5px); }   /* First shake to the right */
    75% { transform: translateX(-5px); }  /* Second shake to the left */
    100% { transform: translateX(5px); }  /* Second shake to the right */
}

/* Apply the shake animation when the shake class is added */
.actions i.shake {
    animation: shake 0.5s ease-in-out; /* Shake back and forth twice, faster */
}

/* Responsive design */
@media (max-width: 768px) {
    .deals-table tbody tr {
        flex-direction: column; /* Stack rows vertically on smaller screens */
    }

    .store-table tbody tr {
        flex-direction: column; /* Stack rows vertically on smaller screens */
    }

    .store-info img {
        width: 100%; /* Make image responsive */
        height: auto;
    }

    .actions {
        flex-direction: row; /* Align icons horizontally */
        justify-content: space-around;
    }

    .actions i {
        font-size: 24px; /* Adjust icon size for smaller screens */
    }
    h2, h3 {
        text-align: center;
        color: white;
    }

    /* Custom style for SweetAlert2 to adjust width on mobile */
    @media (max-width: 600px) {
        .swal2-popup {
            width: 90% !important;
            min-width: 250px !important; /* Ensure there's a minimum width */
            font-size: 14px !important; /* Adjust font size for smaller screens */
        }
    }

    /* For larger screens, adjust width to be more centered */
    @media (min-width: 601px) {
        .swal2-popup {
            width: 400px !important;
            font-size: 16px !important;
        }
    }
}

