.topbar {
    position: fixed;
    top: 0;
    width: auto;
    min-width: 300px;
    height: 40px;
    background: #292c2e;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 12px rgba(52, 54, 56, 0.5);
    z-index: 1000;
    border-radius: 0 0 20px 0;
    left: 0;
    margin-left: 0;
    box-sizing: border-box;
}
.text {
    color: #b9b9b9;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
}

.p2 {
    color: #b9b9b9;
    font-family: Montserrat, sans-serif;
    padding: 20px 20px;
    font-size: 16px;
}

@media (max-width: 600px) {
    .text {
        font-size: 16px;
    }
    
    .p2 {
        font-size: 14px;
        padding: 15px 15px;
    }
    
    .topbar {
        min-width: 280px;
        padding: 0 15px;
    }
    
    .tuffa {
        font-size: 12px;
        padding: 6px 8px;
    }
}

.tuffa {
    margin: 5px;
    padding: 5px 4px;
    font-size: 12px;
    font-family: Montserrat, sans-serif;
    color: #b9b9b9;
    border-radius: 5px;
    display: inline-block;
}

.tuffa:hover {
    color: #ffffff;
}

.logo {
    height: 25px;
    width: 50px;
    position: relative;
    margin-right: 10px;
}

.links-container {
    display: flex;
    margin: 0;
}

.mmenu {
    width: 380px;
}

.tuffp {
    margin-left: 50px;
    margin-right: 50px;
    font-size: 20px;
}

@media (max-width: 600px) {
    img {
        width: 50%;
    }
}

body {
    background-color: #141414;
    overflow: hidden;
    height: 100vh;
    margin: 0;
    position: relative;
}

html {
    overflow: hidden;
    height: 100%;
}

.my-button {
    display: inline-block;
    padding: 10px 10px;
    background-color: #0e0d0d;
    color: #b9b9b9;
    font-family: Montserrat, sans-serif;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 2px 0;
}

.my-button:hover {
    background-color: #162327;
}

a {
    text-decoration: none;
    color: #b9b9b9;
}

.centered-div {
    width: 90%;
    min-height: calc(100vh - 60px);
    margin: 0 auto;
    padding-top: 60px;
    background-color: #141414;
    box-sizing: border-box;
    overflow: visible;
}

h1, h2, h3, h4, h5, h6, p, img, button {
    text-align: center;
    margin: 20px 0;
}

.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px 40px; 
    box-sizing: border-box;
    overflow: visible;
}

.title-box {
    background: #2a2a2a;
    padding: 15px 40px;
    border-radius: 8px 8px 0 0;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #333;
    border-bottom: none;
}

.title-box h2 {
    color: #cccccc;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    margin: 0;
    font-weight: 500;
    text-align: center;
}

.content-box {
    background: #1e1e1e;
    border-radius: 0 0 8px 8px;
    width: 100%;
    height: 450px;
    overflow-y: auto;
    padding: 25px;
    border: 1px solid #333;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.content-box::-webkit-scrollbar {
    width: 8px;
}

.content-box::-webkit-scrollbar-track {
    background: #252525;
}

.content-box::-webkit-scrollbar-thumb {
    background: #444;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
    padding: 10px;
}

.file-button {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #cccccc;
    height: 180px;
    box-sizing: border-box;
}

.file-button:hover {
    background: #333;
}

.preview-container {
    width: 100%;
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-icon {
    font-size: 36px;
    opacity: 0.6;
}

.file-name {
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    text-align: center;
    word-break: break-word;
    width: 100%;
    padding: 0 5px;
    line-height: 1.4;
    color: #cccccc;
}

.loading {
    color: #999;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    text-align: center;
    padding: 60px 20px;
}

.empty-message {
    color: #777;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    text-align: center;
    padding: 60px 20px;
}

.error {
    color: #e74c3c;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    text-align: center;
    padding: 40px 20px;
    background: rgba(231, 76, 60, 0.1);
    margin: 20px;
}

.archive-header {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.archive-header h1 {
    color: #ccc;
    font-family: Montserrat, sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 400;
}

.archive-header p {
    color: #888;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .content-container {
        padding: 0 15px 35px;
        margin: 30px auto;
    }
    
    .content-box {
        padding: 20px;
        height: 400px;
    }
    
    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .file-button {
        height: 160px;
        padding: 12px;
    }
    
    .preview-container {
        height: 90px;
    }
    
    .title-box {
        padding: 12px 20px;
    }
    
    .centered-div {
        width: 95%;
        padding-top: 50px;
        min-height: calc(100vh - 50px);
    }
}

@media (max-width: 480px) {
    .content-container {
        padding: 0 12px 30px;
        margin: 20px auto;
    }
    
    .content-box {
        padding: 15px;
        height: 350px;
    }
    
    .files-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .file-button {
        height: 150px;
        padding: 10px;
    }
    
    .preview-container {
        height: 80px;
    }
    
    .file-name {
        font-size: 12px;
    }
    
    .archive-header h1 {
        font-size: 20px;
    }
    
    .archive-header p {
        font-size: 14px;
        padding: 0 10px;
    }
    
    .centered-div {
        width: 98%;
        padding-top: 45px;
        min-height: calc(100vh - 45px);
    }
}

@media (max-height: 700px) {
    .content-box {
        height: 350px;
    }
    
    .content-container {
        padding-bottom: 25px;
    }
}

@media (max-height: 600px) {
    .content-box {
        height: 300px;
    }
    
    .file-button {
        height: 140px;
    }
    
    .preview-container {
        height: 70px;
    }
    
    .content-container {
        padding-bottom: 20px;
    }
}