﻿/*body
{
    background-image: url('images/bg.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding: 0;
    margin: 0;
    overflow: hidden;
}*/

body
{
    background-color: #F0F4F8;
    margin: 0px;
    padding: 0px;
    font-family: 'Roboto', sans-serif;
    margin-top: 140px;
    overflow: hidden;
}

.ios-peek
{
    background: linear-gradient(180deg, rgba(77,204,193,1) 0%, rgba(36,168,231,1));
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-color: #F0F4F8;
    position: fixed;
    z-index: -1;
    bottom: 0;
    left: 0;
    top: 0;
    right: 0;
}

#main.hidden *
{
    transform: translateY(-30px);
    opacity: 0;
}

#main.hidden #loginQR *, #main.hidden #loginQR
{
    transform: translateY(30px);
}

#main *
{
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
    transform: translateY(0px);
    opacity: 1;
}

*
{
    outline: none;
}

#main.initDone *
{
    transition: transform 200ms ease-in-out, opacity 200ms ease-in-out;
}

hr
{
    width: 80vw;
    margin-top: 20px;
    margin-bottom: 20px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(0,0,0,0.2);
}

#main
{
    /*display: flex;
    flex-direction: column;*/
    /*height: 100vh;*/
    width: 100vw;
    /*justify-items: stretch;
    align-content: stretch;*/
    /*background-color: rgba(255, 255, 255, 0.1);*/
    overflow: hidden;
    overflow-y: scroll;
    position: absolute;
    margin-top: 140px;
    top: 0px;
    bottom: 90px;
}

.__page:not(#login)
{
    /*min-height: calc(100vh);*/ /* - topbar, menubar */ /*- 72px - 60px*/
    /*margin-top: 60px;*/
    /*padding-bottom: 80px;
    padding-top: 70px;*/
}

.__page
{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100vw;
    justify-items: stretch;
    align-content: stretch;
    overflow-y: hidden;
    height: auto;
}

.__hiddenPage
{
    position: absolute !important;
    opacity: 0 !important;
    display: none;
    pointer-events: none !important;
}

.content
{
    display: flex;
    flex-direction: column;
    padding: 10px;
    overflow-x: scroll;
    display: grid;
}

#popupLayer
{
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000000;
}

#popupLayer:not(:empty)
{
    backdrop-filter: blur(3px);
    pointer-events: all;
}

.popupContent
{
    padding-bottom: 20px;
    width: 100%;
    font-weight: normal;
    font-size: 24px;
    text-align: center;
}

.popup
{
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 1);
    border: 1px solid rgba(225, 245, 255, 0.9);
    align-items: center;
    font-size: 30px;
    font-weight: bold;
    padding: 20px;
    border-radius: 6px;
    min-width: 70%;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 0px 20px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0 !important;
    pointer-events: none;
    transition: 200ms ease-in-out !important;
}

.popup.visible
{
    transform: translate(-50%, -50%) scale(1);
    opacity: 1 !important;
    pointer-events: all;
}

:root
{
    --shadow-soft: 0px 0px 10px rgba(0, 0, 0, 0.5);
    --shadow-softer: 0px 0px 15px rgba(0, 0, 0, 0.3);
    --hph-light-blue: #8CCDEB;
    --hph-blue: #0092D6;
    --hph-dark-blue: #246988;
    --hph-green: #98BE5D;
    --hph-dark-green: #73AC37;
    --hph-light-grey: #D0D0D0;
    --hph-grey: #9B9B9B;
    --hph-dark-grey: #4A4A4A;
    --hph-magenta: #FF0267;
    --hph-orange: #F79E28;
    --hph-db-light-blue: #BFD5EB;
    --hph-db-blue: rgba(97, 187, 230, 0.60);
    --hph-db-dark-blue: rgba(0, 146, 214, 0.62);
    --hph-db-light-purple: rgba(160, 117, 154, 0.62);
    --hph-db-purple: #A6A6C4;
    --hph-db-orange: #EEBF98;
    --hph-db-grey: #D0C9D4;
    --hph-db-yellow: #EED380;
    --hph-db-green: rgba(115, 194, 70, 0.62);
}

/*body
{
    font-family: 'Open Sans', sans-serif;
    background-image: url(images/bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 100vh;
}*/

/*#menubar
{
    height: 72px;
    width: 100%;
    position: fixed;
    bottom: 0px;
    left: 0px;
    background-color: rgba(0, 146, 214, 0.62);
    box-shadow: var(--shadow-soft);
    display: flex;
    z-index: 1;
    backdrop-filter: blur(10px);
}

#menubar .selected
{
    background-color: rgba(115, 194, 70, 0.62);
}

#menubar > div
{
    display: flex;
    width: 25%;
    padding: 10px;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    color: white;
}

#menubar > div > img
{
    height: 32px;
    margin-bottom: 6px;
    filter: invert(1);
}*/

#menubar
{
    height: 90px;
    position: fixed;
    bottom: 0px;
    background-color: white;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 10%;
    box-sizing: border-box;
    filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.1));
}

/*#topbar
{
    padding: 10px;
    box-shadow: var(--shadow-soft);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

#topbar > div
{
    font-weight: bold;
}

#topbar > img
{
    height: 36px;
    margin: 2px;
}

#topbar .bell
{
    display: inline-block;
    font-size: 0px;
    position: relative;
}

#topbar .bell .counter
{
    position: absolute;
    top: -6px;
    right: -6px;
}

#topbar .bell .counter, #noti .counter
{
    background-color: var(--hph-magenta);
    padding: 3px;
    font-size: 12px;
    border-radius: 50%;
    font-weight: bold;
    width: 16px;
    height: 16px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}*/

#topbar
{
    background-color: #7EC564;
    background: linear-gradient(50deg, rgba(80,202,192,1) 0%, rgba(36,168,231,1));
    height: 189px;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: fixed;
    z-index: -1;
    top: 0px;
    
}

#logo
{
    width: 60px;
    height: 60px;
    background-image: url('images/new/logo.png');
    background-size: contain;
    position: absolute;
    left: 20px;
}

#user
{
    width: 30px;
    height: 30px;
    background-image: url('images/new/user.png');
    background-size: contain;
    position: absolute;
    right: 20px;
}

#message
{
    width: 30px;
    height: 30px;
    background-image: url('images/new/message.png');
    background-size: contain;
    position: absolute;
    right: 65px;
}

.contentScroller
{
    /*-webkit-mask-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0px, rgba(0, 0, 0, 1) 20px);*/
    overflow: hidden;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
}

#noti .noti
{
    display: flex;
    flex-direction: row-reverse;
}

#noti .noti:not(:last-child)
{
    border-bottom: 1px solid white;
}

#noti .noti .name
{
    font-size: 20px;
    font-weight: 200 !important;
}

#noti .noti .counter
{
    font-size: 14px;
    width: 22px;
    height: 22px;
    box-sizing: border-box;
    background-color: orange;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#noti .counter
{
    margin-left: 10px;
}

#topbar .bell > img
{
    height: 32px;
}

.bell .counter
{
    background-color: orange;
    border: 1px solid rgb(255, 55, 0);
    border-radius: 0px 50% 50% 50%;
    aspect-ratio: 1;
    font-weight: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -10px;
}

.newsButton
{
    padding: 20px 10px;
    margin: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    /*background: rgba(0, 0, 0, 0.02) url(images/arrow.svg);*/
    background-repeat: no-repeat;
    background-position: 98% 50%;
    background-size: 28px 28px;
}

.contentItemButton
{
    padding: 20px 10px;
    margin: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    /*background: rgba(255, 255, 255, 0.3) url(images/arrow.svg);*/
    background-repeat: no-repeat;
    background-position: 98% 50%;
    background-size: 28px 28px;
    backdrop-filter: blur(10px);
}

.contentWrap
{
    padding: 20px;
}

.contentWrap iframe
{
    max-width: 100%;
}

.contentWrap .youtube-video iframe
{
    aspect-ratio: 16 / 9;
}

.contentWrap > *
{
    max-width: 100%;
}

.contentWrap a
{
    color: inherit;
    text-decoration: inherit;
}

.contentWrap ul
{
    list-style-position: outside;
}

.contentWrap ul > li
{
    list-style: none;
}

.contentWrap ul > li::before
{
    content: "\25B6";
    color: rgb(0, 155, 220);
    width: 1.5em;
    margin-left: -1em;
    display: inline-block;
}

.contentWrap > .body
{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.contentWrap > .body > div
{
    margin-bottom: 20px;
}

/*.contentWrap .tile
{
    min-height: 100px;
    border: 10px solid white;
    padding: 10px;
    aspect-ratio: 1 / 1;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 0px 20px;
    color: white;
    mix-blend-mode: darken;
    margin: 10px;
    background-size: cover;
    background-position: center;
}

.contentWrap .tile .title
{
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: solid 1px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.5));
}

.contentWrap .full-width
{
    width: 100%;
}

.contentWrap .tile .body
{
    padding-top: 10px;
    filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.5));
}

.contentItemButton > .title
{
    font-weight: bold;
    font-size: 120%;
}*/

#dev button
{
    width: 100%;
    padding: 18px;
    box-sizing: border-box;
    margin-bottom: 6px;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    background-color: #24abe2;
    color: white;
    font-weight: bold;
    border: none;
    font-size: 18px;
}

.contentItemButton > .date
{
    filter: opacity(0.6);
}

.contentItemButton > .short
{
    margin-top: 10px;
}

.contentWrap .title
{
    font-size: 30px;
    font-weight: bold;
}

.contentWrap .date
{
    filter: opacity(0.5);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
}

.contentWrap .body *
{
    word-wrap: break-word;
}

.picture > img
{
    width: 100%;
}

#news
{
}

#finances
{
    
}

#login
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

#login input
{
    background-color: transparent;
    border: 0px;
    border-bottom: 1px solid var(--hph-grey);
    font-size: 20px;
    font-family: 'Open Sans', sans-serif;
    margin: 10px;
}

#login > button
{
    /*font-weight: bold;*/
    border: none;
    background: linear-gradient(135deg, rgba(0,146,214,1) 0%, rgba(115,172,55,1) 100%);;
    box-shadow: var(--shadow-soft);
    padding: 10px 30px;
    color: white;
    border-radius: 30px;
    font-size: 20px;
    font-family: 'Open Sans', sans-serif;
    margin-top: 30px;
}

.financesBlock
{
    margin: 10px;
    border: 1px solid rgb(200, 200, 200);
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 10px;
    background-color: rgba(245, 245, 245, 0.6);
}

.financesBlock > div
{
    padding: 0px 10px;
}

.financesBlock .bold
{
    font-weight: bold;
    margin-top: 6px;
}

.financesBlock .head
{
    font-weight: bold;
    border-bottom: 1px solid rgb(200, 200, 200);
    color: var(--hph-dark-grey);
    background-color: rgba(0, 0, 0, 0.1);
    background: linear-gradient(30deg, rgba(140, 205, 235, 0.2) 0%, rgba(140, 205, 235, 0.0) 100%);
    padding: 10px;
}

.loginLogo
{
    height: 80px;
    
}

.loginWelcome
{
    margin: 30px;
    font-size: 18px;
    text-align: center;
}

.inputLine
{
    display: flex;
    align-items: center;
}

.inputLine > img
{
    width: 28px;
    height: 28px;
    opacity: 0.7;
}

.loginHelp
{
    position: absolute;
    bottom: 10px;
    color: var(--hph-dark-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loginHelp > img
{
    height: 48px;
    margin-bottom: 10px;
}


.btnBlue, .btnRed
{
    display: block;
    border-radius: 10px;
    width: 400px;
    box-sizing: border-box;
    padding: 12px 30px;
    font-size: 20px;
    border: rgba(0, 130, 200, 0.7);
    color: white;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 0px 20px;
    filter: invert(0);
    transition: all 500ms ease-in-out !important;
}

.btnBlue
{
    background: linear-gradient(45deg, rgba(0, 146, 214, 1) 0%, rgba(0, 180, 240, 1) 100%);
}

.btnRed
{
    color: black;
    filter: invert(1);
}

