@font-face {
    font-family: 'gt-america';
    src: url('/src/font/GT-America-Standard-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'gt-america';
    src: url('/src/font/GT-America-Standard-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --purple: #640BBA;
    --yellow: #FEEEB8;
    --blue: #B6DEFF;
    --dark-grey: rgb(80,80,80);
}

html {
    height: 100%;
}

body {
    font-family: 'gt-america', sans-serif;
    color: var(--purple);
    margin: 0;
    padding: 2.7vw 2vw 2vw 2vw;
    top: 0;
    height: 100%;
    font-weight: 400;
}

* {
    box-sizing: border-box;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2.7vw;

    h1 {
        font-size: 4vw;
        line-height: 1;
        height: 4vw;
        margin: 0;
        font-weight: bold;
    }

    p {
        font-size: 2vw;
        margin: 0;
    }
}

#events {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5vw 2vw;
}

.event {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    flex-direction: column;
    background-color: var(--yellow);
    padding:  1.2vw 1.7vw 1.6vw 1.7vw;
    position: relative;
    gap: 1.1vw;
    height: calc((100vh - (2.7vw + 4vw + 2.7vw + 1.5vw + 2vw)) / 2);

    h2 {
        font-size: 2.8vw;
        width: calc(100% - 4vw);
        position: absolute;
        line-height: 1.1;
        top: 2.3vw;
        left: 1.7vw;
        margin: 0;
        font-weight: bold;
    }

    p {
        margin: 0;
        font-size: 1.5vw;
        text-transform: uppercase;
        line-height: 1;
        height: 1.5vw;
    }

    .event-date-time {
        display: flex;
        flex-direction: row;
        gap: 0.2vw 2vw;
    }

    .event-labels {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5vw 0.8vw;
        min-height: 1.4vw;
    }

    .label {
        display: flex;
        align-items: center;
        background-color: white;
        font-weight: bold;
        text-transform: uppercase;
        padding: 0.3vw 0.5vw;
        font-size: 0.8vw;
        height: 1.4vw;
    }

    img {
        position: absolute;
        right: 1.7vw;
        bottom: 1.3vw;
        width: 7vw;
    }
}

.event.event-blue {
    background-color: var(--blue);
}

.event.long-name {
    h2 {
        font-size: 2.5vw;
    }
}

body.dark-mode {
    background-color: black;
    color: white;

    .event {
        background-color: var(--dark-grey);

        .label {
            background-color: black;
        }
    }
}
