@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --page-width-ratio: 866;
    --page-height-ratio: 1170;
    --primary-color: #c0392b;
    --secondary-color: #ffffff;
    --text-color: #333;
    --white: #fff;
    --logo-url: 'https://aticturkiye.org/wp-content/uploads/2024/05/cb8fe0_ce732991e9744d61ba6957614aa26331mv2-e1715467030602.png';
    --arrow-color: #001f5c;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
	font-family: "Poppins", sans-serif;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: var(--secondary-color);
}

.logo-left, .logo-right {
    position: absolute;
    width: 180px;
    height: 180px;
    background-image: url(https://aticturkiye.org/wp-content/uploads/2024/05/cb8fe0_ce732991e9744d61ba6957614aa26331mv2-e1715467030602.png);
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 10;
    pointer-events: none;
}

.logo-left {
    left: 40px;
    top: 40px;
}

.logo-right {
    right: 40px;
    top: 40px;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

.flipbook-container {
    width: 90vw;
    height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Yan oklar stilleri */
.side-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--arrow-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 50;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
}

.side-arrow:hover {
    background-color: white;
    color: var(--arrow-color);
    transform: translateY(-50%) scale(1.1);
    border: 2px solid var(--arrow-color);
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

/* Sayfa çevirme yönergesi */
.page-turn-hint {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%) translateY(20px);
    background-color: rgba(0,0,0,0.75);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 100;
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-turn-hint.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.page-turn-hint i {
    font-size: 16px;
    color: #ffcc00;
    animation: swipeAnimation 2s infinite;
}

@keyframes swipeAnimation {
    0% { transform: translateX(0); }
    50% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

.flipbook-wrapper {
    position: relative;
    transition: transform 0.2s ease-out;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.flipbook-wrapper.dragging {
    transition: none;
    cursor: grabbing !important;
}

.flipbook {
    width: 100%;
    height: 100%;
    max-width: min(90vw, calc(85vh * (var(--page-width-ratio) * 2) / var(--page-height-ratio)));
    max-height: min(85vh, calc(90vw * var(--page-height-ratio) / (var(--page-width-ratio) * 2)));
    margin: 0 !important;
    left: 0 !important;
    transform-origin: center center;
}

.flipbook .hard {
    background: var(--primary-color) !important;
    color: var(--white);
    font-weight: bold;
    border: none; 
}

.flipbook .hard small{
	font-style: italic;
	font-weight: lighter;
	opacity: 0.7;
	font-size: 14px;
}

.flipbook .page {
    background: white;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.11);
    aspect-ratio: var(--page-width-ratio) / var(--page-height-ratio);
}

.page img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
}

.flipbook .page small {
	font-size: 14px;
    margin-bottom: 0;
}

/* Kontrol öğeleri */
.controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    z-index: 100;
}

.controls.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.control-btn {
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 12px;
}

.control-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.control-btn:active {
    transform: translateY(0);
}

.control-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.zoom-level {
    display: flex;
    align-items: center;
    padding: 0 5px;
    font-weight: 500;
    font-size: 12px;
}

.page-number {
    font-size: 12px;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    margin: 0 5px;
}

/* Zoom göstergesi */
.zoom-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.zoom-indicator.visible {
    opacity: 1;
}

/* Mobil stiller */
@media screen and (max-width: 768px) {
    .logo-left, .logo-right {
        width: 120px;
        height: 120px;
    }
    
    .logo-left {
        left: 20px;
        top: 20px;
    }
    
    .logo-right {
        right: 20px;
        top: 20px;
    }

    .flipbook-container {
        width: 95vw;
        height: 80vh;
    }

    .flipbook {
        width: 95vw;
        max-width: 95vw;
        height: auto;
        max-height: 80vh;
        aspect-ratio: var(--page-width-ratio) / var(--page-height-ratio);
    }
    
    .controls {
        padding: 5px 10px;
        gap: 5px;
    }
    
    .control-btn {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    .page-number, .zoom-level {
        font-size: 10px;
    }
    
    .page-turn-hint {
        font-size: 12px;
        padding: 8px 12px;
        max-width: 90vw;
        white-space: normal;
        text-align: center;
        bottom: 15px;
    }
    
    /* Mobilde yan okları gizle */
    .side-arrow {
        display: none;
    }
}

