:root{
    /* Layout */
    --headerHeight: 110px;
    --footerHeight: 200px;

    /* Colors */
    --cream: #F9F9EE;
}

body {
    background-color: var(--cream);
}

header {
    position: fixed;
    width: 100%;
    height: var(--headerHeight);
    left: 0;
    top: 0;
    background-color: white;
    padding: calc(var(--generalSpace) / 2) 0;
    border-bottom: solid 1px var(--greyLight);
    z-index: 2;
}

header .uk-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: calc(var(--headerHeight) - var(--generalSpace));
}

#logo{
    display: inline-block;
    height: calc(var(--headerHeight) - var(--generalSpace));
}

.header-nav-link{
    display: inline-block;
    font-weight: bold;
    color: var(--blackText);
    padding: 0 var(--generalSpace);
}

.header-nav-link:hover{
    color: var(--blue);
    text-decoration: none;
}

#header-toogle-btn{
    display: none;
    cursor: pointer;
}

main {
    position: relative;
    min-height: calc(100vh - var(--headerHeight) - var(--footerHeight));
    padding-top: var(--headerHeight);
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: var(--footerHeight);
    color: white;
    text-align: center;
    font-size: small;
    background-color: var(--blue);
    padding: var(--generalSpace);
}

footer img{
    width: 100%;
    max-width: 250px;
}

#sidemenu-footer{
    font-size: var(--small);
    margin-top: auto;
}

#sidemenu-footer img{
    max-width: 150px;
}

#sidemenu-footer p{
    margin-top: calc(var(--generalSpace) / 4);
    margin-bottom: 0;
}

.section-title{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--red);
    font-weight: bold;
    font-size: var(--xlarge);
    text-align: center;
}

.section-title span{
    display: inline-block;
    width: 180px;
    height: 5px;
    background-color: var(--blue);
    margin-top: 5px;
    margin-bottom: calc(var(--generalSpace) * 1);
    border-radius: 10px;
}

.section-title.left{
    align-items: flex-start;
    text-align: left;
}

/* Overwrite tabs */
.uk-tab>*>a{
    font-size: var(--medium);
    padding-left: calc(var(--generalSpace) * 1);
    padding-right: calc(var(--generalSpace) * 1);
}

.uk-tab>.uk-active>a{
    color: var(--red);
    font-weight: bold;
}

.uk-tab>.uk-active>a{
    border-color: var(--blue) !important;
    border-width: thick;
    border-radius: 5px;
}

/* Donation */
#cardName{
    text-transform: uppercase;
}

/* Post cards */
.post-card{
    color: inherit;
    background-color: white;
    border-radius: calc(var(--borderRadius) * 2);
    overflow: hidden;
    transition: var(--transitionAll);
}

.post-card:hover{
    text-decoration: none;
    color: inherit;
    transform: translateY(-6px);
    box-shadow: var(--shadowFloor);
}

.post-card-image{
    width: 100%;
    aspect-ratio: 16/9;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.post-card-body{
    padding: calc(var(--generalSpace) * 1);
}

.post-card-meta{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--small);
    color: var(--gray);
    margin-bottom: calc(var(--generalSpace) / 2);
}

.post-card-name{
    font-size: var(--medium);
    font-weight: bold;
    color: black;
    margin-bottom: calc(var(--generalSpace) / 2);
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.post-card-content{
    color: black;
    font-size: var(--small);
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

@media screen and (max-width: 768px) {
    :root{
        /* Layout */
        --footerHeight: 300px;
    }
}

@media screen and (max-width: 1024px) {
    :root{
        /* Layout */
        --headerHeight: 80px;
    }

    #header-nav{
        display: none;
    }

    #header-toogle-btn{
        display: inline-block;
    }

    footer{
        font-size: var(--small);
    }

    footer img{
        max-width: 200px;
    }

    .section-title{
        font-size: var(--large);
    }

    .section-title span{
        width: 150px;
        height: 4px;
        margin-top: 4px;
        margin-bottom: calc(var(--generalSpace) * 0.5);
    }
}
