@import url('https://fonts.googleapis.com/css2?family=Space\ Grotesk&display=swap');
@import url('./background.css');

:root {
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

    --primary-color-rgb: rgb(0, 204, 245);
    --secondary-color-rgb: rgb(0, 49, 245);
    --tertiary-color-rgb: rgb(0, 126, 245);
    --quaternary-color-rgb: rgb(0, 245, 206);
    --quintary-color-rgb: rgb(29, 0, 245);

    line-height: 1.5rem;
    color: white;
    box-sizing: border-box;
}

::selection {
    color: var(--quaternary-color-rgb);
    background-color: black;
}

* {
    box-sizing: border-box;
}

html {
    height: 400%;
    scroll-behavior: smooth;
}

li.left a {
    color: var(--secondary-color);
}


body {
    margin: 0;
    height: 100%;
    /* backdrop-filter: contrast(100%); */
    display: flex;
    flex-direction: column;
}

main {
    margin: 0;
    flex-grow: 1;
}

.header {
    position: relative;
    height: 4rem;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.2rem 0;
    box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.2);
    z-index: 9999;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.nav-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    gap: 2rem;
    padding: 0 20px;
}

.nav-bar a {
  color: white;
  opacity: 100%;
  text-decoration: none;
  display: block;
}

.nav-bar #home {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

li {
    padding: 0 10px
}

.contact {
    align-self: flex-end;
    margin-left: auto;
}

ul {
    list-style: none;
}

.page {
    height: 100vh;
}

/* Home page */

.first.page {
    height: calc(100vh - 3.5rem);
    display: flex;
    gap: 1rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1, h2 {
    margin: 0;
}

h1.title {
    padding: 0.2rem;
    font-size: 3rem;
}

h2.title {
    color: rgba(255, 255, 255, 0.8);
}

.page:not(.first) {
    padding-top: 6rem;
}


/* About page */

.second.page, .third.page {
    margin: 0 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 2rem;
}

.left-column h1 {
    margin-bottom: 2rem;
}

.second .left-column {
    text-align: end;
    flex: 2 1;
    font-size: clamp(10px, 2vw, 20px);
    line-height: 1.5em;
    overflow: clip;
}

.second .right-column {
    flex: 1 2;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
}

.second img {
    width: auto;
    height: clamp(50px, 60cqw, 500px);
    object-fit: contain;
    border-radius: 5px;
    min-height: 0;
}

/* Data page */

.third .right-column h1 {
    margin-bottom: 2rem;
}


.third .left-column {
    text-align: end;
    flex: 1 1;
    height: 100%;
}

.rc-data-container {
    display: flex;
    flex-direction: column;
}

.third .right-column {
    flex: 1 1;
    display: flex;
    line-height: 1.5em;
    font-size: clamp(10px, 2vw, 20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: 100%;
}

table.dataframe {
    width: clamp(20px, 100%, 100vw);
    height: clamp(20px, 100%, 500px);
}

th, td {
    font-size: clamp(6px, 1vw, 16px);
    text-align: center;
    padding: 1px;
    white-space: no-wrap;
}

.dataset-metrics {
    margin-top: 3rem;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.metric {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.dataset-metrics .metric h1, h3 {
    margin: 0;
    text-align: center;
}


/* Contact page */

.fourth.page {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-details h1 {
    margin-bottom: 1.5rem;
}

/* Repsonsive */

@media (max-width: 1280px) {
    .second.page {
        flex-direction: column;
    }

    .third.page {
        flex-direction: column-reverse;
    }

    .third.page .rc-data-container {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .second.page .left-column {
        text-align: start;
        height: 40cqh;
        flex: 0 0;
    }

    #about.second .right-column {
        height: 60cqh;
    }
}
