﻿/* CSS for menu.aspx extracted to external file */

body, html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

form {
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.styled-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .styled-btn:hover {
        background-color: #3e8e41;
    }

@keyframes text-glow {
    from {
        text-shadow: 0 0 10px #ff00de, 0 0 20px #ff00de, 0 0 30px #ff00de;
    }

    to {
        text-shadow: 0 0 20px #ff00de, 0 0 30px #ff00de, 0 0 40px #ff00de;
    }
}

h1 {
    animation: text-glow 2s ease-in-out infinite alternate;
    color: white;
}

#introText, #lbTruyen {
    position: relative;
    max-height: 5.4em;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.8;
    transition: max-height 0.5s ease, padding-bottom 0.5s ease;
}

    #introText.expanded, #lbTruyen.expanded {
        max-height: none;
        overflow: visible;
    }

    #introText::after, #lbTruyen::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2.5em;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(249, 249, 249, 1));
        pointer-events: none;
        transition: opacity 0.5s ease;
    }

    #introText.expanded::after, #lbTruyen.expanded::after {
        opacity: 0;
    }

.highlight {
    animation: fadeHighlight 1.5s ease-in-out;
}

@keyframes fadeHighlight {
    0% {
        background-color: #ffff99;
    }

    50% {
        background-color: #ffffcc;
    }

    100% {
        background-color: transparent;
    }
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 50px;
    background-color: #f8f8f8;
}

.marquee-text {
    position: absolute;
    white-space: nowrap;
    font-size: xx-large;
    font-weight: bold;
    color: #FF0000;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

.important-announcement {
    font-size: large;
    font-weight: bold;
    color: #FF0000;
    background-color: #FFFF00;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    animation: text-glow 1s infinite alternate;
}

@keyframes text-glow {
    from {
        text-shadow: 0 0 5px #FF0000, 0 0 10px #FF4500, 0 0 15px #FF6347;
    }

    to {
        text-shadow: 0 0 10px #FF4500, 0 0 20px #FF6347, 0 0 30px #FF7F50;
    }
}

/* Featured Product Styles */
.featured-product-container {
    width: 100%;
    max-width: 360px;
    margin: 30px auto;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

    .featured-product-container:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

.featured-product-img {
    width: 100%;
    max-width: 320px;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: transform 0.3s ease-in-out;
}

.featured-product-container:hover .featured-product-img {
    transform: scale(1.05);
}

.featured-product-title {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    margin-bottom: 10px;
}

.featured-product-message {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
}

.featured-product-btn {
    display: inline-block;
    background: #0073e6;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    transition: background 0.3s ease-in-out;
}

    .featured-product-btn:hover {
        animation: pulse 0.8s infinite;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1);
    }
}
