
body, html {
    overflow: visible !important; /* Override the base.css rule */
    overflow-x: hidden; /* Still prevent horizontal scroll */
    overflow-y: auto; /* Allow vertical scroll */
    min-height: 100vh; /* Ensure full viewport height */
}

.archive-title {
    position: relative;
    top: -20px; /* Keep consistent with about title */
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    font-size: 50px;
    font-weight: 700;
    color: #333333;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-align: center;
    font-family: 'Intel One Mono', monospace;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin: 0;
}

.archive-container {
    padding: 90px 40px 100px 40px; /* Match about-container padding */
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 50;
    min-height: calc(100vh - 150px); /* Ensure container takes most of viewport height */
}

.archive-table {
    background:#dadada;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 
        0 0 0 3px #333333,
        0 0 0 6px #ffffff,
        0 0 0 9px #666666,
        0 20px 60px rgba(0, 0, 0, 0.3);
    margin-top: 40px; /* Reduced spacing to match about page */
    margin-bottom: 60px; /* Add margin at bottom to prevent overlap with navigation */
}

.view-full-btn {
    background: rgb(30,30,30);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    margin-top: 5px;
}

.view-full-btn:hover {
    background: #555;
}

.table-reference {
    font-style: italic;
    font-size: 0.9em;
    color: #505050;
    display: block;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archive-data {
    width: 100%;
    border-collapse: collapse;
}

.archive-data th, .archive-data td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #bbb;
}

.archive-data th {
    background-color: rgb(30,30,30);
    color: white;
}

.archive-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.archive-card {
    background: #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card-id {
    font-size: 0.8em;
    color: #666;
}

.card-title {
    margin: 10px 0;
    font-size: 1.2em;
}

.card-content {
    margin-bottom: 15px;
    font-size: 0.9em;
}

.card-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.view-content-btn {
    background: rgb(30,30,30);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

/* Lenovo Tab M10 Plus 3rd Gen optimization */
@media (min-width: 601px) and (max-width: 768px) {
    .archive-title {
        top: -25px;
        font-size: 45px;
        letter-spacing: 4px;
    }
    
    .archive-container {
        padding: 100px 30px 80px 30px;
    }
    
    .archive-table {
        padding: 25px;
        margin-top: 35px;
    }
    
    .archive-cards {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 15px;
    }
    
    .archive-data th, .archive-data td {
        padding: 8px;
    }
    
    .view-full-btn {
        font-size: 11px;
        padding: 4px 6px;
    }
}

/* Mobile phone sizes */
@media (max-width: 600px) {
    .background-svg {
        background-image: url('../img/mobile.png');
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }
    
    .archive-title {
        top: -30px; /* Moved another 50px higher from previous 20px */
        font-size: 40px;
        letter-spacing: 3px;
    }
    
    .archive-container {
        padding: 110px 20px 100px 20px; /* Keep mobile padding consistent */
        min-height: calc(100vh - 100px); /* Ensure container takes most of viewport height on mobile */
    }
    
    .archive-table {
        margin-top: 30px;
        padding: 20px;
        overflow-x: auto;
    }
    
    .archive-data {
        font-size: 12px;
        min-width: 600px;
    }
}
