* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    /* iPhone specific optimizations */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-overflow-scrolling: touch;
    /* Safe area support for iPhone X and newer */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.container {
    display: flex;
    width: 200vw;
    height: 100vh;
    transition: transform 0.3s ease-in-out;
    /* iPhone specific optimizations */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.page {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    /* iPhone specific optimizations */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Safe area adjustments */
    padding-top: max(20px, env(safe-area-inset-top) + 10px);
    padding-bottom: max(20px, env(safe-area-inset-bottom) + 10px);
    padding-left: max(20px, env(safe-area-inset-left) + 10px);
    padding-right: max(20px, env(safe-area-inset-right) + 10px);
}

#birthdays-page {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    font-family: Tahoma, sans-serif;
}

#omdenken-page {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: white;
    font-family: "Comic Sans MS", "Comic Sans";
}

.content {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.birthdays-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.birthday-item {
    padding: 0.8rem;
    margin-bottom: 0.3rem;
}

.birthday-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.birthday-details {
    font-size: 0.9rem;
    opacity: 0.9;
}

.omdenken-text {
    font-size: 2rem; /* Initial size, will be adjusted dynamically */
    line-height: 1.4;
    font-weight: 400;
    text-align: center;
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: font-size 0.3s ease;
}

.loading {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Swipe indicators */
.swipe-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    opacity: 0.7;
    text-align: center;
}

.swipe-indicator::before {
    content: "← Swipe →";
    display: block;
    margin-bottom: 0.5rem;
}

/* iPhone specific responsive font scaling */
@media (max-width: 375px) {
    .omdenken-text {
        font-size: 1.3rem;
    }
    h1 {
        font-size: 1.8rem;
    }
    .birthday-name {
        font-size: 1.3rem;
    }
}

@media (min-width: 414px) {
    .omdenken-text {
        font-size: 1.7rem;
    }
}

/* iPhone specific optimizations */
@media screen and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 2) {
    .content {
        max-width: 90vw;
    }
    
    .birthday-item {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .swipe-indicator {
        bottom: max(20px, env(safe-area-inset-bottom) + 10px);
        font-size: 0.9rem;
    }
}

/* iPhone landscape optimizations */
@media screen and (max-device-width: 812px) and (orientation: landscape) {
    .omdenken-text {
        font-size: 1.5rem;
        min-height: 60vh;
    }
    
    h1 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
}

/* Touch-friendly interactions */
.birthday-item {
    transition: transform 0.2s ease;
    /* iPhone specific touch optimizations */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.birthday-item:active {
    transform: scale(0.98);
}

/* iPhone specific touch feedback */
.birthday-item:active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Prevent text selection during swipes */
.container {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Refresh button styling */
.refresh-button {
    position: absolute;
    top: max(20px, env(safe-area-inset-top) + 10px);
    right: max(20px, env(safe-area-inset-right) + 10px);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 16px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    z-index: 10;
    /* iPhone specific optimizations */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.refresh-button:active {
    transform: scale(0.95);
}

/* iPhone specific animations */
@keyframes pageActivate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* iPhone specific loading states */
.loading {
    font-size: 1.1rem;
    opacity: 0.8;
    /* iPhone specific loading animation */
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
} 