@font-face {
    font-family: 'OpenSans';
    src: url("../fonts/OpenSans-VariableFont_wdth,wght.ttf");
}

body {
    text-align: center;
    font-family: 'OpenSans';
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, #1e1b4b, #1e3a8a);
    color: #e0e0e0;
    background-attachment: fixed;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

h1 {
    font-size: 2vw;
    margin-bottom: 0.625rem;
}

h2 {
    font-size: 1.25vw;
}

p, em {
    font-size: 1.05vw;
}

/* --------------------------- Blog styles -------------------------- */
article {
    width: 100%;
}

.blogs {
    display: grid;
    grid-auto-rows: auto;
    gap: 1.5rem;
}

.blogtitle {
    display: flex;
    flex-wrap: wrap; /* allow text to wrap properly */
    gap: 0.625rem;
    justify-content: space-between;
}

.row {
    display: flex;
    background-color: rgba(0,0,0,0.4);
    flex-direction: column;
    border-radius: 0.25rem;
    padding: 1.5rem;
    gap: 1.25rem;
    text-align: left;
    width: 95%;
}

.row p {
    word-break: break-word;
}

/* .hide {
    display: none;
} */

/* .prev-btn {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    gap: 10rem;
    input {
        font-size: 2vw;
        background-color:#A7A2FF;
        width: 16vw

    }
} */

/* .sort {
    display: flex;
    justify-content: space-evenly;
} */

/* --------------------------- END Blog styles -------------------------- */

/* ------------------------------ Header styles ---------------------- */
header {
    display: flex;
    margin-top: 0.625rem;
    margin-bottom: 2.5rem;
    width: 33vw;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
        li:nth-child(4) {
        background-color: rgba(255, 255, 255, 0.1);;
        box-shadow: 0 0 0 0.425rem rgba(255, 255, 255, 0.1);        
        border-radius: 0.2rem;
    }
}

.reader ul{
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: 4vw;
    padding: 0;
}

.reader p, b, u {
    font-size: 1.25vw;
    color: #e0e0e0;
}
/* ------------------------------ END Header styles ---------------------- */

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70%;
    margin-bottom: 1.2vw;
}

/* -------------------------- MOBILE view --------------------- */
@media (max-width: 768px) {
    body {
        flex-direction: column;  
        text-align: center;
        margin: 0 auto;
        padding-top: 1.25rem;
    }

    h1 {
        font-size: 5vw; 
    }

    h2 {
        font-size: 4.5vw;
    }

    p, em, u, b {
        font-size: 4vw;
    }

    header {
        width: 100%;  
    }

    .reader p {
        font-size: 3.5vw;
    }

    .reader ul {
        gap: 12vw;
    }

    .row {
        width: 88%;
    }

    article {
        justify-content: center;
        margin: 0 auto;
        margin-bottom: 1.25rem;
    }

    .wrapper {
        width: 95%;
    }

    /* .prev-btn {
        gap: 0.5rem;
        input {
            font-size: 5vw;
            background-color:#A7A2FF;
            width: 20vw;
        }
    } */

}