body {
    background-image: url('/assets/background.gif');
    background-repeat: repeat;
    background-attachment: fixed;
    background-color: #f4e7e9;
    color: #332a2c;
    font-family: "Verdana", sans-serif;
    margin-top: 30px;
}

.main-table {
    border: 2px solid #8b7d81;
    box-shadow: 6px 6px 0px #d6c5c8;
    background-color: #ffffff;
    border-collapse: separate;
}

h1 {
    margin: 0;
    color: #8b2f41;
    text-shadow: 1px 1px #ffffff;
}

h2 {
    color: #8b2f41;
    border-bottom: 2px dotted #b59da3;
    padding-bottom: 5px;
    margin-top: 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 6px 4px;
    transition: 0.2s;
    text-decoration: none;
    color: #8b2f41;
    font-weight: bold;
    font-size: 13px;
}

.nav-item:hover {
    background-color: #fcebed;
    border-radius: 4px;
}

.nav-bullet {
    width: 20px;
    height: 15px;
    margin-right: 10px;
    image-rendering: pixelated;
    border: 0;
}

.nav-item:hover .nav-bullet {
    margin-right: 13px;
    margin-left: -3px;
}

.sidebar-header {
    background: linear-gradient(#b59da3, #8b7d81);
    color: white;
    padding: 3px;
    font-size: 12px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #5a5052;
    margin: 10px 0;
}

#myStatus {
background-color: #332a2c;
color: #eec9cf;
padding: 2px 8px;
font-family: "Courier New", monospace;
border: 1px inset #8b7d81;
font-size: 12px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    padding: 10px;
}

.photo-item {
    border: 2px solid #b59da3;
    padding: 5px;
    background: white;
    box-shadow: 3px 3px 0px #d6c5c8;
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
}

.poem-box {
    background-color: #fffafb;
    border-left: 5px solid #8b2f41;
    padding: 15px;
    margin: 10px 0;
    font-style: italic;
    line-height: 1.6;
}

.blink {
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0.4; }
}

hr {
    border: 0;
    height: 1px;
    background: #b59da3;
    margin: 20px 0;
}

marquee {
    color: #4A0021;
    font-weight: bold;
    font-family: "Courier New";
}
center {
    padding: 0 10px; 
}

@media screen and (max-width: 800px) {
    body {
        margin-top: 10px;
        background-attachment: scroll;
    }

    /* 2. Force the tables to behave like flexible boxes */
    table[width="800"], 
    .main-table {
        width: 100% !important;
        max-width: 100% !important;
    }

    .main-table tr {
        display: flex;
        flex-direction: column;
    }

    .main-table td {
        width: 100% !important;
        display: block;
        box-sizing: border-box;
    }
    td[width="200"] {
        border-right: none !important;
        border-bottom: 2px solid #b59da3;
        padding-bottom: 20px !important;
    }

    img, center img {
        max-width: 100% !important;
        height: auto !important;
    }

    h1 {
        font-size: 1.5em;
    }
    
    .nav-item {
        padding: 10px 4px;
    }
}