@import url("../root.css");

html {
    height: 100vh;
}

body {
    background-color: var(--primary-color);
    height: 100%;
    top: 0;
    pointer-events: auto;
}

canvas#canvas {
    height: 100vh;
}

.main {
    padding-top: 3rem;
}

.post-container {
    background-color: var(--primary-color);
    margin: 2rem clamp(2rem, 20vw, 30rem);
    height: calc(100vh - 10rem);
    border-radius: 10px;
    padding: 1rem;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .post-container {
        box-shadow: 
            1rem 1rem 1rem rgba(0, 0, 0, 0.1),
            -1rem 1rem 1rem rgba(0, 0, 0, 0.1);
    }
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .post-container {
        box-shadow: 
            1rem 1rem 1rem rgba(255, 255, 255, 0.1),
            -1rem 1rem 1rem rgba(255, 255, 255, 0.1);
    }
}

:root[data-theme="light"] .post-container {
    box-shadow: 
        1rem 1rem 1rem rgba(0, 0, 0, 0.1),
        -1rem 1rem 1rem rgba(0, 0, 0, 0.1);
}

:root[data-theme="dark"] .post-container {
    box-shadow: 
        1rem 1rem 1rem rgba(255, 255, 255, 0.1),
        -1rem 1rem 1rem rgba(255, 255, 255, 0.1);
}

.scroll-container {
    height: calc(100% - 2rem);
    padding: 1rem;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

h1.title {
    font-size: clamp(12px, 4vw, 20px);
}

span.abstract {
    font-size: clamp(12px, 1.5vw, 16px);
}

.scroll-container a:hover {
    transform: scale(1.02);
}


h1, span {
    margin: 1rem 0;
}

.scroll-container a {
    display: inline-block;
    border: 1px solid var(--text-color);
    border-radius: 5px;
    padding: 0 1rem 1rem;
    width: calc(100% - 4rem);
    margin: 0;
    color: inherit;
    text-decoration: inherit;
}

.header-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

}

.title-and-icon {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
}


/* TAGS */

.date-and-tags {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.tag {
    box-sizing: border-box;
    padding: 3px;
    color: white;
    font-weight: 600;
    border-radius: 4px;
    font-size: 0.7rem;
}

.arxiv {
    background-color: rgb(170, 23, 34);
}

.medium {
    background-color: black;
}

.cpr {
    background-color: rgb(52, 96, 179);
}

.date {
    font-weight: 600;
}

@media (max-width: 1280px) {
    .post-container {
        margin: 2rem clamp(2rem, 5vw, 30rem);
    }
}

@media (max-width: 720px) {
    .header-row {
        flex-direction: column;
    }
    .date-and-tags {
        justify-content: space-around;
    }
}