@import url('/fonts.css');

:root {
    --title-c: white;
    --h1-c: white;
}

body {
    background-image: url('https://unsplash.com/photos/pn8BbsKpkkA/download?force=true&w=1920');
    background-size: cover;
    background-position: center;
    margin: 0;
    overflow: hidden; 
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 0, 28, 0.549);
    z-index: -1;
    pointer-events: none;
}

.index .title {
    animation: dropAndStay 1s ease-in-out forwards;
    /* background: rgb(0, 0, 0); */
    width: 100%;
    height: 100%;
    
    text-align: center;
    position: fixed;
    z-index: 0;
    font-family: fontBody;
    font-size: 5em;
    color: var(--title-c);
    padding-right: 20px; 
    box-sizing: border-box;
}



.postbox {
    position: absolute;
    /* top: -10vh; */
    left: 0;
    width: 100%;
    height: 100vh;

    
    
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-start;
    align-items: center;
    
    overflow-y: auto; 
    overflow-x: hidden;
    pointer-events: auto;
    
    
    box-sizing: border-box;
}

.postbox .post a {
    text-decoration: none;
    color: var(--h1-c);
}

.postbox::-webkit-scrollbar {
    width: 4px;
}
.postbox::-webkit-scrollbar-track {
    background: black; 
}
.postbox::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2); 
    border-radius: 4px;
}
.postbox::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4); 
}

.index .postbox .post {
    backdrop-filter: blur(5px);
    font-family: panton;
}

.index .post {
    font-size: 8vh;
    color: var(--h1-c);
    
    padding: 20px;
    width: 100%; 
    text-align: center;
    
    
    opacity: 0;
    
    animation: dropAndStack 3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    z-index: 1;
    flex-shrink: 0; 
}

.index .post:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.1); /* Glass effect */
}
.index .post:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.08); /* Glass effect */
}

@media only screen and (max-width: 600px) {
    body::after {
        background-color: rgba(0, 3, 28, 0.549);
    }
    .title {
        font-size: 3em;
    }
    .index .post {
        font-size: 2em;
    }
}

.postbox .post:last-child {
    margin-top: auto;
}