﻿body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

.magazine-viewport {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    background-color: #1a2a3a;
    position: relative;
}

.magazine {
    width: 90%; /* Responsive width */
    max-width: 1240px; /* Maintain desired max width */
    height: calc(90vw * (1750 / 1240)); /* Maintain aspect ratio */
    position: relative;
    margin-left: 0 !important; /* Override Turn.js margin */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.page {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f0f0f0; /* Fallback color */
}

/* Navigation Buttons */
.controls {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 20px;
}

#prev-btn, #next-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease;
}

    #prev-btn:hover, #next-btn:hover {
        background-color: #0056b3;
    }
