@font-face {
    font-family: 'Comic Book';
    src: url('fonts/Comic_Book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Background Layer */
.background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay Layer */
.overlay-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.up-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Yatay ekran için up.gif */
.up-horizontal {
    display: block;
}

.up-vertical {
    display: none;
}

/* Text Layer */
.text-layer {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
}

.text-image {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
}

/* Button Container */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.action-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
}

.action-button:hover {
    transform: scale(1.1);
}

.button-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 40, 0.95) 100%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.popup-content {
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: #fff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 450px;
    position: relative;
    border: 3px solid #ff3333;
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.3), 
                0 10px 40px rgba(0, 0, 0, 0.8),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: popupGlow 2s ease-in-out infinite alternate;
}

@keyframes popupGlow {
    0% {
        box-shadow: 0 0 30px rgba(255, 51, 51, 0.3), 
                    0 10px 40px rgba(0, 0, 0, 0.8),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    100% {
        box-shadow: 0 0 40px rgba(255, 51, 51, 0.5), 
                    0 15px 50px rgba(0, 0, 0, 0.9),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

.popup-message {
    font-size: 28px;
    font-weight: normal;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: #ff3333;
    letter-spacing: 2px;
    font-family: 'Comic Book', sans-serif;
}

.copy-button {
    background: linear-gradient(145deg, #ff3333 0%, #cc0000 100%);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: normal;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    font-family: 'Comic Book', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.4);
    position: relative;
    overflow: hidden;
}

.copy-button:hover {
    background: linear-gradient(145deg, #ff4444 0%, #dd1111 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 51, 51, 0.6);
}

.copy-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 51, 51, 0.4);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    background: linear-gradient(145deg, #333 0%, #555 100%);
    border: 2px solid #ff3333;
    color: #ff3333;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.close-button:hover {
    background: linear-gradient(145deg, #ff3333 0%, #cc0000 100%);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.6);
}

/* Yatay Ekran (Landscape) */
@media screen and (orientation: landscape) {
    .container {
        /* Yatay ekranda tam ekran görünüm */
    }
    
    .up-horizontal {
        display: block;
    }
    
    .up-vertical {
        display: none;
    }
    
    .up-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .text-layer {
        top: 20px;
        right: 20px;
    }
}

/* Dikey Ekran (Portrait) */
@media screen and (orientation: portrait) {
    .container {
        /* Dikey ekranda orta kısmı göster, yanları gizle */
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        position: relative;
    }
    
    .background-layer {
        position: absolute;
        width: 140%; /* %30 daha geniş */
        height: 100%;
        left: -20%; /* Sola kaydır */
        /* Dikey ekranda bg.gif tam ekranı kaplasın ama yanları kes */
    }
    
    .overlay-layer {
        position: absolute;
        width: 140%; /* %30 daha geniş */
        height: 100%;
        left: -20%; /* Sola kaydır */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .up-horizontal {
        display: none;
    }
    
    .up-vertical {
        display: block;
    }
    
    .up-image {
        /* Dikey ekranda up_vertical.gif'i ortala ve boyutlandır */
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    
    .text-layer {
        /* Dikey ekranda text.gif'i sağ üst köşeye yerleştir */
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 3;
    }
    
    .text-image {
        max-width: 150px;
        max-height: 80px;
        object-fit: contain;
    }
    
    .button-container {
        gap: 8px;
        margin-top: 12px;
    }
    
    .button-image {
        width: 65px;
        height: 65px;
    }
}

/* Mobil cihazlar için ek optimizasyon */
@media screen and (max-width: 768px) {
    .up-horizontal {
        display: none;
    }
    
    .up-vertical {
        display: block;
    }
    
    .text-layer {
        top: 10px;
        right: 10px;
    }
    
    .text-image {
        max-width: 120px;
        max-height: 60px;
    }
    
    .button-container {
        gap: 6px;
        margin-top: 10px;
    }
    
    .button-image {
        width: 65px;
        height: 65px;
    }
} 