/* Hero */
.hero {
    height: 600px;
    position: relative;
    padding: 0px 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.5s ease-in-out;
    animation: fadeBackground 12s infinite;
    z-index: -2;
}

.hero::before {
    background-image: url('/static/img/header-image1.jpg');
    animation-delay: 0s;
}

.hero::after {
    background-image: url('/static/img/header-image2.jpg');
    animation-delay: 6s;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: -1;
}

.hero.expired {
    background-color: rgba(0, 0, 0, 0.6);
}

.hero.expired::before,
.hero.expired::after {
    filter: grayscale(100%);
}

@keyframes fadeBackground {
    0%, 25% {
        opacity: 1;
    }
    40%, 60% {
        opacity: 0;
    }
    75%, 100% {
        opacity: 1;
    }
}

.hero .title {
    margin-top: 50px;
}

.title .greeting {
    font-size: 50px;
    font-weight: bold;
}

.title .description {
    font-size: 25px;
    font-weight: bold;
    width: 40%;
}

.timer-container {
    display: flex;
    gap: 40px;
    align-self: center;
    align-items: center;
    justify-content: center;
    padding: 7px 120px;
    background: linear-gradient(to right, var(--quaternary-color), var(--tertiary-color));
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 20px;
    width: 100%;   
    margin-top: 40px;
}

.experience-bottom {
    padding-top: 10px;
}

.timer-container.expired {
    padding: 25px 120px;
}

.timer-container p:first-child {
    font-size: 20px;
    text-align: right;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.timer .item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.timer .separator {
    font-size: 27px;
}

.timer .item .digit {
    font-size: 27px;
    font-weight: bold;
}

.timer .item .unit {
    font-size: 13px;
    margin-top: -5px;
}

@media (max-width: 768px) {
    .hero {
        padding: 20px 40px;
    }

    .hero .title {
        text-align: center;
    }

    .main h1 {
        text-align: center;
    }

    .title .greeting {
        font-size: 35px;
    }
    
    .title .description {
        font-size: 18px;
        font-weight: bold;
        width: 90%;
    }

    .timer-container {
        flex-direction: column;
        justify-content: center;
        padding: 20px 40px;
        gap: 10px;
        width: 100%;
    }

    .timer-container.expired {
        padding: 15px 20px;
    }

    .timer-container.expired h1 {
        font-size: 20px;
    }

    .timer-container p:first-child {
        font-size: 15px;
        text-align: center;
    }

    .timer .item .digit {
        font-size: 24px;
    }

    .timer .separator {
        font-size: 24px;
    }
}

.coupon-container {
    display: flex;
    justify-content: flex-start;
    min-height: 50px;
    border-radius: 5px;
    margin-bottom: 100px;
}

.coupon-container.hidden {
    display: none !important;
}
  
.discount-code-box {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 10px;
    padding-left: 20px;
    width: 100%;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    box-sizing: border-box;
}
  
.discount-code-box i {
    font-size: 25px;
    color: var(--tertiary-color);
    margin-right: 10px;
}
  
.discount-input {
    flex: 1;
    padding: 12px 8px;
    border: none;
    outline: none;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}
  
.apply-btn {
    background-color: var(--tertiary-color);
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    cursor: pointer;
    width: 100px;
    font-weight: bold;
    box-sizing: border-box;
}
  
.apply-btn:hover {
    background-color: rgba(127, 28, 157, 0.9);
}

@media (min-width: 768px) {
    .discount-code-box {
        width: 400px;
    }
    
    .apply-btn {
        width: 100px;
    }
}

@media (max-width: 768px) {
    .apply-btn {
        width: 100px;
        padding: 12px 10px;
        font-size: 14px;
    }
}

.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.coupon-applied-container {
    background-color: var(--tertiary-color);
    padding: 17px 22px;
    border-radius: 5px;
    color: white;
    width: fit-content;
    margin-bottom: 100px;
}

.coupon-applied-container.hidden {
    display: none !important;
}

.check-icon {
    width: 30px;
    height: 30px;
    background-color: white;
    color: var(--tertiary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
    margin-right: 10px;
}

.coupon-text {
    font-size: 16px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

#discount-value {
    font-weight: bold;
}

@media (max-width: 768px) {
    .coupon-text {
        font-size: 16px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
}

/* Hero End */

/* Main */
.home-container {
    display: flex;
    flex-direction: row;
    gap: 25px;
    flex-wrap: wrap;
}

.home-item {
    flex: 1 1 calc(33.33% - 25px);
    max-width: calc(33.33% - 25px);
    background-color: white;
    color: black;
    border-radius: 7px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    position: relative;
}

.home-item:hover {
    cursor: pointer;
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
}

.home-item.expired:hover {
    cursor: not-allowed;
    transform: none;
    box-shadow: initial;
}

.home-item-image {
    width: 100%;
    height: 230px;
    display: block;
    position: relative;
    z-index: 1;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

.home-item-image.expired {
    filter: grayscale(100%);
}

.discount-label {
    position: absolute;
    background-color: var(--tertiary-color);
    color: white;
    display: flex;
    align-items: center;
    padding: 13px 20px;
    border-top-left-radius: 5px;
    border-bottom-right-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
    gap: 7px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4);
}

.discount-label.hidden {
    display: none;
}

.home-item-title {
    font-weight: bold;
    font-size: 20px;
    padding: 15px;
    background-color: white;
    text-align: center;
    border-radius: 0 0 7px 7px;
    box-shadow: 0px -1px 5px rgba(0, 0, 0, 0.1);
    z-index: 0;
}

@media (max-width: 1024px) {
    .home-item {
        flex: 1 1 calc(50% - 25px);
        max-width: calc(50% - 25px);
    }
}

@media (max-width: 768px) {
    .home-item {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .home-item-image {
        height: 180px;
    }

    .home-item-title {
        font-size: 16px;
    }
}

/* Main End */

.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-weight: 200;
    background-color: #221958;
    color: white;
}