@font-face {
    font-family: 'Apercu-Bold';
    src: url('/webfonts/Apercu-Bold.otf');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Apercu-Regular';
    src: url('/webfonts/Apercu-Regular.otf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Apercu-Light';
    src: url('/webfonts/Apercu-Light.otf');
    font-weight: normal;
    font-style: normal;
}


:root {
    --manifold_dark: #000;
    --manifold_grey: #434343;
    --manifold_light_grey: #e2e2e2;
    --manifold_gold: #d8af00;
    --manifold_yellow: #fdd006;
    --manifold_white: #fff;
}

html {
    height: 100%;
}
body {
    height: max-content;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    font-family: 'Apercu-Regular', sans-serif;
    color: var(--manifold_grey);
}

footer {
    width: 100%;
    margin: 2rem 0 0.5rem 0;
    font-size: smaller;
    text-align: center;

    a {
        text-decoration: none;
        color: var(--manifold_grey);
    }
    a:hover {
        text-decoration: underline;
    }
}

.bold {
    font-family: 'Apercu-Bold', sans-serif;
}
.hidden {
    display: none!important;
}
.blurred {
    filter: blur(0.4rem);
    user-select: none;
    cursor: pointer;
    font-weight: bolder;
    font-family: 'Apercu-Bold', sans-serif;
}
.blurred:hover {
    filter: blur(0.5rem);
}
.yellow_button {
    cursor: pointer;
    text-decoration: none;

    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--manifold_grey);
    color: var(--manifold_dark);
    background-color: var(--manifold_yellow);
}
.yellow_button:hover {
    text-decoration: underline;
}
h1.title {
    font-family: 'Apercu-Bold', sans-serif;
    line-height: 3.75rem;
    font-size: 40px;
    color: var(--manifold_dark);
    text-align: center;
    margin: 2rem 0;
}
h2.subtitle {
    font-family: 'Apercu-Bold', sans-serif;
    line-height: 2rem;
    font-size: 24px;
    color: var(--manifold_dark);
    text-align: center;
}

/*#region Home Page (Index)*/

#home {
    margin-top:10%;
    margin-bottom: 32px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    #logo {
        width: 400px;
        background-color: var(--manifold_grey);
        padding: 32px 48px;
        border-radius: 8px;
    }

    h1 {
        margin: 22px 0  0 0;
    }

    label.error {
        margin-bottom: 0.5rem;
        min-width: 280px;
        max-width: 40vw;
        text-wrap: balance;
    }
    #searchbar {
        width: 20rem;
    }
    #pc_lookup_button {
        font-size: medium;
    }

    #more_info {
        margin-top: 1rem;
        text-align: center;
        min-width: 280px;
        max-width: 40vw;
    }
}

/*#endregion*/

/*#region Banner elements (decorative)*/

.banner {
    --dot_size: 32px;
    --offset: 32px;

    z-index: -1;
    position: absolute;
    display: grid;
    grid-gap: var(--offset);
    grid-template-columns: repeat(4, 1fr);

    div {
        height: var(--dot_size);
        width: var(--dot_size);
        border-radius: var(--dot_size);
    }
    .dot_Y {
        background-color: var(--manifold_yellow);
    }
    .dot_G {
        background-color: var(--manifold_grey);
    }
    .dot_L {
        background-color: var(--manifold_light_grey);
    }
    .dot_W {
        background-color: var(--manifold_white);
    }
}
.banner.left {
    top: var(--offset);
    left: var(--offset);
}
.banner.right {
    bottom: var(--offset);
    right: var(--offset);
}

/*#endregion*/

/*#region Searchbar*/

label.error {
    color: #b12626;
    text-align: center;
}

#searchbar {
    display: flex;
    gap: 0.5rem;
    height: 2.5rem;
}

#pc_lookup_text {
    flex: 1 1 75%;
    outline: none;
    font-size: medium;
    padding: 0.3rem;
    border-radius: 5px;
    border: 1px solid var(--manifold_grey);
}

#pc_lookup_button {
    flex: 1 1 25%;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
    color: var(--manifold_dark);
    background-color: var(--manifold_yellow);
    text-align: center;
    cursor: pointer;
}
#pc_lookup_button:hover {
    text-decoration: underline;
}

/*#endregion*/

/*#region Login / Signup Page*/

#login_button, #logout_button {
    position: absolute;
    top: 1rem;
    right: 1rem;

    i {
        display: none;
    }
}

/*#endregion*/

/*#region Responsive CSS*/

@media screen and (max-width: 1200px) {
    /* Hide banners when page is too narrow */
    .banner {
        display: none;
    }
}

@media screen and (max-width: 800px) {
    /* Make logo fill the entire top of the screen on small devices*/
    #home {
        margin-top: 0;

        a#logo_container {
            width: 100%;
        }
        #logo {
            width: 100%;
            box-sizing: border-box;
            border-radius: 0;
            padding: 3rem 4rem;
        }
    }
    /* Switch login/logout button from text to icons */
    #login_button, #logout_button {
        i {
            display: inline;
        }
        span {
            display: none;
        }
    }
}

/*#endregion*/