/* logbook.css */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', cursive;
    background-image: url('https://file.garden/ZWlUCY4S7Xz2vypS/archived%20backgrounds/colours/purple/purp045.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: #666547;
}

.page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.main-container {
    width: 946px;
    height: 1206px;
    background-image: url('https://64.media.tumblr.com/tumblr_lzvjakQDzV1qhvdofo5_500.jpg');
    background-size: cover;
    background-position: center;
    border: 8px solid #fb2e01;
    border-radius: 20px;
    box-shadow: 
        0 0 30px rgba(251, 46, 1, 0.6),
        inset 0 0 30px rgba(255, 226, 138, 0.3);
    position: relative;
    overflow: hidden;
}

.main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 238, 179, 0.1), rgba(111, 203, 159, 0.1));
    z-index: 1;
}

.header-container {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, #fffeb3 0%, #ffe28a 50%, #fb2e01 100%);
    border-bottom: 6px solid #666547;
    display: flex;
    align-items: center;
    padding: 20px;
    z-index: 2;
}

.header-sprite {
    height: 80px;
    width: auto;
    image-rendering: pixelated;
    border: 4px solid #666547;
    box-shadow: 4px 4px 0 #fb2e01;
    transition: transform 0.2s ease;
}

.sprite-link:hover .header-sprite {
    transform: scale(1.1);
}

.header-title {
    font-size: 28px;
    color: #666547;
    text-shadow: 
        3px 3px 0 #fb2e01,
        6px 6px 0 #6fcb9f;
    margin-left: 30px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 2px;
}

.guestbook-container {
    position: relative;
    z-index: 2;
    height: calc(1206px - 120px - 40px);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.guestbook-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: rgba(255, 238, 179, 0.9);
    padding: 15px 20px;
    border: 3px solid #6fcb9f;
    border-radius: 10px;
    box-shadow: 4px 4px 0 #666547;
}

.guestbook-header h2 {
    font-size: 18px;
    color: #666547;
    text-shadow: 2px 2px 0 #fb2e01;
}

.refresh-btn, .submit-btn {
    background: linear-gradient(135deg, #6fcb9f, #ffe28a);
    color: #666547;
    border: 3px solid #666547;
    padding: 10px 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    cursor: pointer;
    border-radius: 8px;
    text-transform: uppercase;
    box-shadow: 3px 3px 0 #fb2e01;
    transition: all 0.2s ease;
}

.refresh-btn:hover, .submit-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #fb2e01;
}

.manual-entry {
    margin-top: 20px;
    background: rgba(255, 226, 138, 0.95);
    padding: 20px;
    border: 4px solid #fb2e01;
    border-radius: 12px;
    box-shadow: inset 0 0 20px rgba(111, 203, 159, 0.3);
}

.manual-entry h3 {
    font-size: 16px;
    color: #666547;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 2px 2px 0 #6fcb9f;
}

.manual-entry input, .manual-entry textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 3px solid #666547;
    border-radius: 8px;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: #666547;
    box-shadow: inset 2px 2px 0 rgba(251, 46, 1, 0.2);
}

.manual-entry input::placeholder, .manual-entry textarea::placeholder {
    color: #999;
    opacity: 0.7;
}

#timestamp {
    margin-top: 10px;
    padding: 10px;
    background: rgba(111, 203, 159, 0.8);
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    color: #666547;
}

.local-entry {
    background: rgba(255, 238, 179, 0.9);
    border-left: 6px solid #6fcb9f;
    padding: 15px;
    margin: 10px 0;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
}

.local-entry .timestamp {
    color: #fb2e01;
    font-size: 10px;
    float: right;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
    .main-container {
        width: 95%;
        height: auto;
        min-height: 1206px;
    }
    
    .header-title {
        font-size: 24px;
    }
}