@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&display=swap');

:root{
    --p-color: rgb(70, 70, 70);
    --a-color: rgb(49, 49, 49);
    --a-hover-color: rgb(136, 136, 136);
    --default-margin: 10px 0;
    --default-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.14);
}


body p{
    font-family: 'Times New Roman', sans-serif;
    color: var(--p-color);
}

body {
    background-image: url(/images/paper.jpg);
    background-size: auto;
    background-repeat: repeat;
    background-attachment: scroll;
    margin: 0; /* Remove default margins */
    min-height: 90vh; /* Ensure it covers at least full viewport */
}

a {
    color: var(--a-color);
    &:hover {
        color: var(--a-hover-color);
    }
}

h3 {
    margin-top: 0;
    margin-bottom: -10px;
    color: var(--p-color);
}

img {width: 100%; height: auto;}

ul {
    padding: 0;
    margin: 0 20px;
}

.rss img {
    width: 200px;
    height: 50px;
    box-sizing: border-box;
    box-shadow: var(--default-box-shadow);
    transition: box-shadow 0.3s ease;
    border: 4px double rgb(255, 255, 255);
}

.rss img:hover {
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.28);
}

li {
    list-style: none;
    margin: var(--default-margin);
    font-size: 16px;
}

.container {
    width: 80%;
    margin: 40px auto 20px;
}

.header {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 10px;
    user-select: none;
}

.logo {
    width: 10%;
    filter: grayscale(0.8);
}

.header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 72%;
    gap: 20px;
}

.header-right {
    width: 20%;
    text-align: center;
    border: 2px solid rgb(113, 113, 113);
    box-shadow: var(--default-box-shadow);
    color: var(--p-color);
    padding: 10px;
    text-wrap: wrap;
}

.title-container {
    user-select: none;
    display: flex;
    flex-direction: column;
    width: 80%;
}

.title {
    font-size: 60px;
    color: var(--p-color);
    font-family: 'Alfa Slab One';
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.14);
}

.slogan {
    font-size: 16px;
    color: var(--p-color);
    transform: translateY(-10px);
    font-style: italic;
}


.date {
    display: flex;
    margin: 10px 20px;
    flex-direction: row;
    justify-content: space-between;
    border-top: 3px double var(--p-color);
    border-bottom: 3px double var(--p-color);
}

.date p {
    margin: 8px;
}

.content{
    margin: 10px 20px;
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-gap: 20px;
}


.content-left-image{
    overflow: hidden;
    margin: 20px 0;
    height: 300px;
}

.content-left-image img {
    transform: translateY(-160px);
    filter: sepia(0.4) contrast(0.8);
}

.content-left-header {
    text-align: center;
}

.content-title {
    font-size: 58px;
    margin: 4px 0;
    font-weight: bold;
}

.content-left-text {
    column-count: 3;
    column-gap: 30px;
    column-rule-style: solid;
    column-rule-color: var(--p-color);
    column-rule-width: 1.4px;
    font-size: 19px;
    line-height: 26px;
}

.content-right {
    border-left: 1.8px solid var(--p-color);
    text-align: center;
}

.sidebar-component {
    border-top: 1px solid var(--p-color);
    margin: 10px 0 0 14px;
    padding: 10px 0;
}

.sidebar-component p{
    margin: var(--default-margin);
}

.updates {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 20px 0;
    gap: 12px;
}

.update-block {
    opacity: 0.9;
    margin: 0;
    border: 2px solid rgb(79, 79, 79);
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.737);
    transition: all 0.3s ease;
    &:hover {
        cursor: pointer;
        opacity: 1;
        border: 2px solid rgb(224, 146, 12);
        background-color: rgb(0, 0, 0);
        .subtitle h3,p {
            color: rgb(224, 146, 12);
        }
        .images img {
            border-bottom: 2px solid rgb(224, 146, 12);
            filter: grayscale(0);
            transform: scale(0.99);
        }
    }
}

.images {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.images img {
    overflow: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.8);
    transition: transform 0.3s ease;
    scale: 1;
    display: block;
}

.subtitle {
    margin: 10px 10px;
    font-size: 16px;
    color: var(--p-color);
    text-align: center;
    line-height: 1.4;
    height: 100px;
}

.subtitle p{
    margin: var(--default-margin);
}

h3 {
    font-size: 18px;
    text-decoration: underline;
}



@media only screen  and  (max-width:992px) {
    .updates {
        grid-template-columns: 1fr;
        width: 100%;
    }
    .container {
        width: 100%;
        margin: 0;
    }

    .logo {
        width: 20%;
    }

    .header {
        flex-direction: column;
        align-items: center;
    }
    
    .content {
        grid-template-columns: 1fr;
    }

    .content-left-text {
        column-count: 1;
        line-height: 28px;
    }

    .content-title {
        font-size: 40px;
    }

    .content-left-header {
        text-align: left;
    }   

    .content-right {
        border-left: none;
        margin-top: 20px;
    }

    .header-left {
        width: 100%;
        font-size: 40px;
    }

    .date {
        font-size: 9px;
        font-weight: bold;
    }

    .title {
        font-size: 24px;
    }

    .header-right {
        width: 100%;
    }

    .content-left-image{
        max-height: fit-content;
        margin: var(--default-margin);
    }

    .content-left-image img {
        transform: translateY(0);
    }

    .sidebar-component {
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .sidebar-component a {
        font-size: 14px;
    }

    .slogan {
        font-size: 10px;
        color: var(--p-color);
        transform: translateY(-4px);
        font-style: italic;
    }

    .content-right {
        display: flex;
        flex-direction: column;
        margin: 0;
        gap: 20px;
    }
} 