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

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
}

.pdf-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 40px);
    min-height: 600px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.header h1 {
    color: #2d5016;
    margin-bottom: 5px;
    font-size: 28px;
}

.header p {
    color: #666;
    font-size: 14px;
}

/* PDF viewer area - takes remaining space */
.pdf-viewer {
    flex: 1;
    position: relative;
    background: #454545;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.controls {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    background-color: rgb(0, 209, 0);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: rgb(0, 180, 0);
    transform: scale(1.05);
}

.btn-secondary {
    background-color: #666;
}

.btn-secondary:hover {
    background-color: #555;
}

/* Mobile warning modal */
#mobileWarning {
    display: none;
}

.warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.warning-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    margin: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.warning-box h2 {
    margin: 0 0 15px 0;
    color: #333;
}

.warning-box p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.5;
}

.warning-checkbox {
    margin: 20px 0;
    text-align: left;
}

.warning-checkbox label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.warning-checkbox input {
    margin-right: 8px;
    cursor: pointer;
}

.warning-checkbox span {
    color: #666;
    font-size: 14px;
}

.warning-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.warning-button:hover {
    background: #0056b3;
}

@media (max-width: 768px) {
    .pdf-container {
        padding: 10px;
        height: calc(100vh - 20px);
    }
    
    .header h1 {
        font-size: 22px;
    }
    
    .controls {
        gap: 10px;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}