/* Body and Layout */
html {
    background-color: #FF3A68;
    min-height: 100vh;
}

body {
    margin: 0;
    padding: 0;
    background: transparent;
    min-height: 100vh;
    overflow-x: hidden;
}

.header {
    background-image: url('../media/Header.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.headerwrapper {
    position: relative;
}

.logo {
    width: 180px;
    height: auto;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Hamburger Menu */
.hamburger-menu {
    background-repeat: no-repeat;
    background-position: right;
    height: 100%;
}

/* Animation Effects */
.animacija {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.animacija:hover {
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.animacija:active {
    transform: scale(0.95) translateY(-5px);
}

/* Typography */
.menuFont {
    font-family: 'Libre Baskerville', serif;
}

.fontMainOne {
    font-family: 'Just Another Hand', cursive;
}

.fontCategoryTitle {
    font-family: 'Protest Strike', cursive;
    letter-spacing: 0.013em;
}

.font3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
}

/* Colors */
.mainPinkColor {
    color: #FF3A68;
}

/* Pancake Styles */
.leftSide {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    text-align: right;
}

.pancakePrice {
    font-weight: 900;
    font-size: 1.6rem;
}

/* Image Loading States */
.rightSide img {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    /* Fallback: show image after 1s even if .loaded class isn't added */
    animation: fadeInFallback 0.3s ease-in-out 1s forwards;
}

.rightSide img.loaded {
    opacity: 1;
    animation: none;
}

.pancake-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    /* Fallback: show image after 1s even if .loaded class isn't added */
    animation: fadeInFallback 0.3s ease-in-out 1s forwards;
}

.pancake-image.loaded {
    opacity: 1;
    animation: none;
}

/* Fallback animation keyframes */
@keyframes fadeInFallback {
    to {
        opacity: 1;
    }
}

/* Image optimization */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.bolderFont {
    font-weight: 800;
}

.dropShadow {
    filter: drop-shadow(2px 5px 5px rgb(0 0 0 / 0.45));
}

.dropShadow-top {
    filter: drop-shadow(16px 0px 12px rgb(0 0 0 / 0.45));
}

/* Modal Styles */
.Modal {
    transform: translate(-50%, -50%);
    background-image: url('../media/graphic/modalBG.svg');
    background-repeat: no-repeat;
    background-position: -60px -150px;
    background-size: cover;
    background-clip: border-box;
    height: 460px;
    width: 96vw;
    position: fixed;
    margin: auto;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    border-radius: 10px;
    filter: drop-shadow(0px 2px 250px rgb(19, 7, 16));
    background-color: #ffffff;
    z-index: 50;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    filter: drop-shadow(10px 10px 15px rgb(0 0 0 / 0.45));
}

.Overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(178, 24, 57, 0.697);
}

.Modal .close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    cursor: pointer;
    z-index: 1000;
}

.modal-content {
    padding: 5px;
}

.modalTop {
    position: relative;
    display: flex;
    justify-content: space-between;
}

.price {
    position: absolute;
    margin-left: 0.5rem;
    top: 200px;
    color: white;
    font-weight: 800;
    font-size: 1.8rem;
}

.pancake-image {
    position: absolute;
    top: -40px;
    right: -90px;
    width: 22rem;
    scale: 1.1;
    filter: drop-shadow(10px 10px 15px rgb(0 0 0 / 0.45));
}

.modalBottom {
    position: fixed;
    bottom: 0px;
    padding: 10px;
}

.pancake-title {
    color: #ff0066;
    font-size: 1.5rem;
}

.pancake-description {
    color: #ff0066;
}

.allergen-info {
    font-size: 0.75rem;
    color: #ff0066;
}

.allergen-names {
    font-size: 0.75rem;
}

/* Create Your Own Styles */
.kreirajsvojpalacinak {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 11px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 10px;
    transition: background-color 0.3s, transform 0.3s;
}

.kreirajsvojpalacinak.selected-item {
    background-color: #ff3a68;
    transform: scale(1.02);
}

.kreirajsvojpalacinak.selected-item .kreirajsvojItem {
    color: white;
    transform: scale(1.02);
}

.kreirajsvojItem {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-grow: 1;
}

.nazivDodatka {
    font-size: 15px;
}

.selected-item {
    background-color: rgba(249, 38, 122, 0.133);
}

.selected-item input[type="checkbox"] {
    border-color: #ff0066;
    border: 2px solid #df2222 !important;
}

.selected-item input[type="checkbox"]:checked {
    accent-color: #ff0066;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

.bounce {
    animation: bounce 2s infinite;
}

/* Loader Animation */
@keyframes loaderBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-20px) scale(1.05);
    }
    50% {
        transform: translateY(0) scale(1);
    }
    75% {
        transform: translateY(-10px) scale(1.02);
    }
}

.loader-bounce {
    animation: loaderBounce 1s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

/* Home Page Specific */
.home {
    position: relative;
}

/* Text Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Shadows */
.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover\:shadow-2xl:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Responsive Styles */
@media screen and (min-width: 768px) {
    .Modal {
        width: 96vw;
    }

    .pancake-image {
        width: 22rem;
    }
    
    .home {
        max-width: 100%;
    }
}

@media screen and (min-width: 1024px) {
    .Modal {
        max-width: 27rem;
    }

    .pancake-image {
        width: 22rem;
    }
}
