* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to right, #fff6f6, #fff3e5);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

.marquee-container,
.marquee-container-bottom {
    width: 100%;
    overflow: hidden;
    position: fixed;
    left: 0;
    z-index: 10;
    white-space: nowrap;
}

.marquee-container {
    top: 0;
}

.marquee-container-bottom {
    bottom: 0;
}

.marquee {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.marquee-track {
    display: inline-block;
}

.marquee img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0.2);
    transition: transform 0.3s ease;
    margin: 0 30px;
    display: inline-block;
    vertical-align: middle;
}

.marquee img:hover {
    transform: scale(1.1);
    filter: none;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    margin: 80px 0;
    text-align: center;
}

.selection-title {
    font-size: 2.5rem;
    color: #c3002f;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
}


.brand-left {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 250px;
}

.brand-right {
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 250px;
}

.brand-container {
    display: none;
}

.brand-label {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.brand {
    background: white;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.4s ease;
    border: 4px solid transparent;
}

.brand:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.brand-kfc:hover {
    border-color: #c3002f;
    animation: kfc-pulse 0.5s ease;
}

.brand-pizza:hover {
    border-color: #ee2e24;
    animation: pizza-rotate 0.8s ease;
}

@keyframes kfc-pulse {
    0% {
        transform: scale(1.08);
    }

    50% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1.08);
    }
}

@keyframes pizza-rotate {
    0% {
        transform: rotate(0deg) scale(1.08);
    }

    25% {
        transform: rotate(5deg) scale(1.08);
    }

    75% {
        transform: rotate(-5deg) scale(1.08);
    }

    100% {
        transform: rotate(0deg) scale(1.08);
    }
}

.brand img {
    max-height: 160px;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.brand:hover img {
    transform: scale(1.1);
}

.video-container {
    order: 2;
    flex-grow: 1;
    max-width: 800px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.instruction-text {
    font-size: 1.1rem;
    color: #555;
    margin-top: 30px;
    max-width: 600px;
    line-height: 1.6;
}

.highlight {
    color: #c3002f;
    font-weight: bold;
}


@media (max-width: 1024px) {
    body {
        overflow-y: auto; 
    }

    .content-wrapper {
        flex-direction: column;
    }

    .brand-left,
    .brand-right {
        display: none; 
    }

    .brand-container {
        display: flex; 
        justify-content: center;
        gap: 40px;
        width: 100%;
        margin-bottom: 30px;
    }

    .brand-side {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}


@media (max-width: 640px) {
    .brand-side {
        width: 140px;
        height: 180px;
    }

    .brand {
        width: 100px;
        height: 100px;
    }

    .brand img {
        max-width: 80px;
        max-height: 80px;
    }
}

@media (max-width: 480px) {
    .brand {
        height: 140px;
    }

    .brand img {
        max-height: 100px;
    }

    .selection-title {
        font-size: 1.5rem;
    }
}
