/*
Theme Name: Birell
Text Domain: Birell
Version: 2.7
Description: Theme for Birell project
Tags: Birell, guerilla, grey-dot
Author: Luci
Author URI: https://www.guerilla.app/
*/

/* --------------------------------------------- */
/* ----------------- Variables ----------------- */
:root {
    --clr-blue: #003da5;
    --clr-white: #ffffff;
    --clr-white-transparent: #ffffff24;
    --clr-background: #ffffff;

    --gradient-blue: linear-gradient(127.87deg, #2661d0 4.5%, #1041aa 34.87%, #05359b 76.94%);
    --gradient-menu: linear-gradient(0deg, rgba(0, 54, 145, 0.7) -32.55%, rgba(64, 135, 255, 0.7) 249.34%);

    --page-offset: 2.6rem;
}

/* ----------------------------------------- */
/* ----------------- General ----------------- */

html {
    position: relative;
    top: 0;
    left: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    min-height: 100%;
    background-color: var(--clr-background);
    text-align: left;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

body {
    display: flex;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    min-height: 100%;
    color: var(--clr-white);
    font-family: 'Foco', sans-serif;
    font-size: 2.2rem;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
}

* {
    box-sizing: border-box;
    position: relative;
    z-index: inherit;

    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;

    scroll-behavior: smooth;
}

input:focus {
    outline: none;
}

a {
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.noselect,
.noselect * {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
}

.snappingScroll {
    scroll-snap-align: center;
}

.hidden {
    display: none !important;
}

.center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.middle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}


/* ----------------------------------------- */
/* ----------------- Media ----------------- */

/* ----------------- Desktop HD 2592px ----------------- */
@media only screen and (min-width: 2592px) {
    :root {
        font-size: 15px;
    }
}


/* ----------------- Desktop 1728px ----------------- */

.portrait {
    display: none;
}

:root {
    /*font-size: 0.579vw;*/
    font-size: 0.47vw;  /* Compensate browser panels */
}

.tablet,
.mobile {
    display: none;
}

.tabletMobile {
    display: none;
}



/* ----------------- Tablet 720px ----------------- */
@media only screen and ((max-width: 1000px) or (orientation: portrait)) {
    .desktop,
    .mobile {
        display: none;
    }

    .tablet {
        display: block;
    }

    .desktopTablet {
        display: block;
    }

    .tabletMobile {
        display: block;
    }

    :root {
        font-size: 1.389vw;
    }
}


/* ----------------- Mobile 360px ----------------- */
@media only screen and (max-width: 500px) {
    .desktop,
    .tablet {
        display: none;
    }

    .desktopTablet {
        display: none;
    }

    .tabletMobile {
        display: block;
    }

    .mobile {
        display: block;
    }

    :root {
        font-size: 2.778vw;
        font-size: 2.545vw;
    }
}


/* --------------------------------------------- */
/* ----------------- Scrollbar ----------------- */

/* Mozilla */
@-moz-document url-prefix(){
    * {
        scrollbar-color: #1041aa var(--clr-white);
        scrollbar-width: thin;
    }
}

/* width */
html::-webkit-scrollbar,
::-webkit-scrollbar {
    width: 1.2rem;
    background-color: var(--clr-background);
}

/* Track */
html::-webkit-scrollbar-track,
::-webkit-scrollbar-track {
    /*-webkit-box-shadow: inset 0 0 0.6rem rgba(0,0,0,0.3);*/
    background-color: var(--clr-background);
    border-radius: 0.5vw;
}

/* Handle */
html::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb {
    border-radius: 0.5vw;
    background-image: -webkit-gradient(linear,
    left bottom,
    left top,
    color-stop(0.20, #05359b),
    color-stop(0.50, #1041aa),
    color-stop(0.80, #2661d0));
}


/* ----------------- Tablet 720px ----------------- */
@media only screen and ((max-width: 1000px) or (orientation: portrait)) {
    .snappingScroll {
        scroll-snap-align: start end;
        scroll-margin: var(--page-offset) 0 var(--page-offset) 0;
    }

    ::-webkit-scrollbar {
        width: 0.8rem;
        height: 0.8rem;
    }

    html {
        max-width: 100%;
        overflow-x: hidden;
    }
}


/* ----------------- Mobile 360px ----------------- */
@media only screen and (max-width: 500px) {
    :root {
        --page-offset: 1.3rem;
    }
}