body {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    font-family: 'Nunito', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-container {
    width: 100%;
    max-width: 450px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Eklendi: Ekran küçükse aşağı kaydırmaya izin verir */
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: all 0.5s ease-in-out;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.content-box {
    background: white;
    padding: 30px 20px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    margin: auto; /* Eklendi: Kutuyu dikeyde ortalar */
    width: 100%; /* Eklendi: Ekran genişliğine uydurur */
}

.icon-header {
    font-size: 50px;
    margin-bottom: 15px;
}

.title {
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 15px;
    margin-bottom: 25px;
}

.rules-list {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-list li {
    background: #fff9fa;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    border-left: 4px solid #ff4757;
}

.custom-checkbox label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.drink-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.drink-card {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 20px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.drink-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.drink-card span {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
}

.drink-card small {
    display: block;
    color: #95a5a6;
    font-size: 11px;
    margin-top: 5px;
}

.drink-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.drink-card.selected {
    background: #fff0f3;
    border-color: #ff4757;
}

.drink-card.selected img {
    transform: scale(1.1);
}

.btn-custom {
    background: #ff4757;
    color: white;
    border: none;
    width: 100%;
    padding: 15px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-custom:disabled {
    background: #dcdde1;
    color: #7f8c8d;
    cursor: not-allowed;
}

.btn-custom:not(:disabled):hover {
    background: #ff6b81;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}

/* YENİ EKLENEN POPUP CSS'İ */
.custom-popup {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(255,255,255,0.85); /* Arka planı biraz şeffaf beyaz yaptık ki kutu içinde güzel dursun */
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: 25px;
}

.custom-popup.d-none {
    display: none !important;
}

.popup-content {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    animation: popIn 0.3s ease-out forwards;
}

#popup-message {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
}

.popup-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.popup-buttons .btn {
    width: 50%;
    padding: 10px;
    font-weight: 600;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Sonuç Ekranı Yuvarlak Puan Tasarımı ve Atan Kalp Efekti */
.result-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #ff4757;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 45px;
    font-weight: 800;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(255, 71, 87, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

/* Soru şıklarına basıldığındaki renk efekti */
.answer-btn:hover, .answer-btn:active {
    background-color: #ff4757 !important;
    border-color: #ff4757 !important;
    color: white !important;
}