:root {
    --secondary-color: #6e6e6e;
    --accent-color: #b4b4b4;
    --background-color: #fff;
    --link-color: #2b93ef;
    --button-color: #dddddd;
}

:root {
    --background-color: white;
    --text-color: #121212;
    --background-color-opposite: #121212;
    --text-color-opposite: white;
    --print-button-text-color: #121212;

    --background-image: url("/assets/imgs/groovepaper.png");
}

/* Dark theme */
[data-theme="dark"] {
    --background-color: #121212;
    --text-color: white;
    --background-color-opposite: white;
    --text-color-opposite: #121212;
    --print-button-text-color: white;
    --background-image: none;
}

* {
    margin: 0; 
    padding: 0;
    box-sizing: border-box;

    font-family: 'Lato', sans-serif;

    color: var(--text-color);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    color-scheme: light dark;
     
    height: fit-content;
    width: 982px;
    margin: 0 auto;
    box-sizing: border-box;
    background-image: var(--background-image);
}

a {
    color: var(--link-color) !important;
    text-decoration: none !important;
}

.print-info {
    position: absolute;

    right: 24px;
    top: 40px;

    color: var(--print-button-text-color);
    font-size: 12px;

    animation: bounce 2s infinite;
    animation-delay: 2s;
}

.command-logo, .windows-logo, .key {
    background-color: var(--button-color);
    padding: 4px 8px;

    border-radius: 4px;
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.1);    
}

.print-info #print-keys {
    margin: 0 2px;
}

.print-info #print-keys span {
    color: #121212;

}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
    100% {
        transform: translateY(0);
    }
}

header {
    width: 100%;
    height: fit-content;

    display: flex;
    justify-content: center;
    align-items: center;

    flex-direction: column;
}

header h1, header h2 {
    text-transform: uppercase;
}

header h1 {
    font-size: 64px;
    margin-top: 84px;

    letter-spacing: 10px;
}

header h2 {
    width: 100%;
    letter-spacing: 6px;
    text-align: center;

    font-size: 24px;
    margin-top: 18px;
}

header > .mobile-contact-info {
    display: none;
}

main {
    margin: 80px 0;
}

main section:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
}

section {
    width: 100%;
    height: fit-content;

    border-top: 1px solid;

    padding: 40px 0;

    display: flex;
    flex-direction: row;
}

section > .mobile-content {
    display: none;
}

section > .content {
    display: flex;
    flex-direction: column;

    position: relative;
}

section > .content > .title, section > .mobile-content > .title {
    letter-spacing: 4px;
    text-transform: uppercase;

    margin-bottom: 36px;
}

.mobile-content .thumbnail {
    width: 350px !important;
}

section > .content > p {
    text-align: justify;
}

section > .content > ul {
    list-style: none;
    padding: 0;
}

section > .content > ul > li {
    margin: 4px 0;
}

section > .content > ul > li:first-child {
    margin-top: 0;
}

section > .content > ul > li > a i {
    width: 25px;
}

section > .content > .item {
    display: flex;
    flex-direction: row;

    margin-bottom: 18px;
}

section > .content > .item:last-child {
    margin-bottom: 0;
}

section > .content > .item * {
    font-size: 16px;
    margin-bottom: 4px;
}

.item > .date {
    min-width: 150px;
}

.item > .thumbnail {
    width: 128px;
    height: 72px;

    margin-right: 22px;
    margin-top: 4px
}

.item > .content {
    margin-right: auto;
}

.item > .extra-info > p {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 0;
}

.item > .extra-info {
    min-width: fit-content;
    text-align: end;
}

.w-35 {
    width: 35%;
}

.w-65 {
    width: 65%;
}

.w-100 {
    width: 100%;
}

.justify {
    text-align: justify;
}

.theme-switch {
    position: absolute;
    top: 40px;
    left: 24px;

    background-color: var(--background-color-opposite);
    width: fit-content;
    height: fit-content;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;

    width: 35px;
    height: 35px;
}

.theme-switch:hover {
    cursor: pointer;
}

.theme-switch i {
 color: var(--text-color-opposite);
}

.special {
    background-color: var(--link-color);
    color: white;
    border-radius: 8px;
    font-size: 10px !important;
    padding: 2px 6px;

    margin-left: 8px;
    margin-top: 2px;
    margin-bottom: 0 !important;
    align-self: center;
}

.flex {
    display: flex;
}

@media (max-width: 1068px) {
    body {
        width: 700px;
    }

    header h1 {
        font-size: 48px;
    }

    header h2 {
        font-size: 20px;
    }

    #contact-info p, #contact-info a {
        font-size: 12px;
    }

    #contact-info ul {
        margin-right: 16px;
    }

    section > .content > .item * {
        font-size: 13px;
    }

    section > .content > .item > .content > p {
        font-size: 11px;
    }

    .special {
        font-size: 8px !important;
    }
}

@media (max-width: 720px) {
    body {
        width: 575px;
    }

    .print-info {
        display: none;
    }

    main {
        margin-top: 20px;
    }

    header {
        position: relative;

        align-items: flex-start;
    }

    header h2 {
        text-align: start;
    }

    header > .mobile-contact-info {
        display: flex;

        margin-top: 20px;
    }

    .mobile-contact-info ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;

        list-style: none;

        column-gap: 12px;
    }

    .mobile-contact-info ul li a {
        color: var(--link-color);
        text-decoration: none;
    }

    #contact-info .content:first-child {
        display: none;
    }

    #contact-info .content:last-child {
        width: 100% !important;
    }

    section > .content > .title {
        margin-bottom: 28px;
    }

    .item .date {
        min-width: 120px;
    }

    section > .content > .item * {
        font-size: 11px;
    }

    .item .extra-info {
        min-width: 110px;
        text-align: end;
    }

    #contact-info p, #contact-info a {
        display: block;
        font-size: 12px;
    }

    .content > p {
        display: none;
    }
    .theme-switch {
        left: unset;
        right: 55px;
        top: calc(261px - 17px);
    }

    .special {
        font-size: 7px !important;
    }
}

@media (max-width: 610px) {
    body {
        width: 350px;
    }

    header h1 {
        font-size: 32px;
    }

    header h2 {
        font-size: 18px;
    }

    section:not(#contact-info) > .content {
        display: none;
    }

    section > .mobile-content {
        display: flex;
        flex-direction: column;
    }

    section > .mobile-content > .item {
        display: flex;
        flex-direction: column;
        row-gap:8px;
        margin-bottom: 20px;
    }

    section > .mobile-content > .item:last-child {
        margin-bottom: 0;
    }

    section > .mobile-content > .item > .group {
        display: flex;
        flex-direction: row;

        column-gap: 10px;
        font-size: 12px;
    }

    section > .mobile-content > .item > .group > .date {
        min-width: fit-content;
    }

    section > .mobile-content > .item > .group > .extra-info {
        font-weight: bold;
        text-align: start;
    }

    section > .mobile-content > .item > .content {
        font-size: 13px;
    }

    section > .mobile-content .extra-info p {
        text-align: start;
    }

    section > .mobile-content .extra-info, section > .mobile-content .date {
        min-width: fit-content;
    }

    #publications .item {
        display: flex;
        flex-direction: column;
        row-gap: 4px;
    }

    #publications .date {
        font-weight: bold;
    }

    .theme-switch {
        left: unset;
        right: 120px;
        top: calc(221px - 17px);
    }
}

@media (max-width: 390px) {
  
    .theme-switch{
        left: unset;
        right: 20px;
        top: calc(221px - 17px);
    }

    .special {
        margin-top: 0 !important;
        margin-bottom: 2px !important;
    }
    
}

@media print {
    * {
        color: #121212 !important;
    }
    body {
        width: 210mm;
        height: 297mm;
        margin: 0;
        background: none;
    }

    .print-info {
        display: none;
    }

    main {
        margin: 40px 0;
    }

    header h1 {
        margin-top: 0;
    }

    section {
        break-inside: avoid;
    }

    section .title {
        margin-bottom: 20px !important;
    }

    #contact-info {
        column-gap: 20px;
    }

    #contact-info .content:first-child {
       margin-left: none;
    }

    .theme-switch {
        display: none;
    }

    .special {
        display: none;
    }

    @page {
        size: A4;
        margin: 20mm;
    }
}