@import "../_snowpack/pkg/bootstrap/dist/css/bootstrap.min.css";

:root {
    --colors-background: #ffffff;
    --colors-background-semitransparent: #f0f0ffd3;
    --colors-accent: lightgray;
    --colors-outline-light: rgba(0, 0, 0, 0.21);
    --colors-img-placeholder: #D9D9D9;
    --colors-text: #000000;
    --colors-text-light: white;

    --pwr-primary: #1F6dd3;
    --pwr-primary-dark: #16519e;

    --pwr-secondary: #e1e1e1;
    --pwr-secondary-dark: #292a2d;

    --pwr-danger: #ff6600fd;
    
    --pwr-accent: rgb(248, 248, 248);

    --element-specific-header-color: #ffff;
    --element-specific-header-border: #e0e0e0;
    --element-specific-header-shadow-one: rgb(60 64 67 / 30%);
    --element-specific-header-shadow-two: rgb(60 64 67 / 15%);

    --font-size-paragraph: 1rem;
    --font-size-xs: 12px;
    --font-size-s: 14px;
    --font-size-m: 18px;
    --font-size-m-l: 20px;
    --font-size-l: 24px;
    --font-size-xl: 36px;
    --font-size-xxl: 48px;
    --font-size-header: 64px;

    --border-radius-xs: 3px;
    --border-radius-s: 4px;
    --border-radius-m: 5px;
    --border-radius-x: 6px;
    --border-radius-xl: 10px;
    --border-radius-xxl: 15px;
    --border-radius-max: 20px;

    --fw-bold: bold;

    --page-padding: 7%;
}

@media (max-width: 450px) {
    :root { --page-padding: 2%; }
}

*{
    font-family: 'Raleway', sans-serif;
    transition:all 0.1s ease;
}

html, body{
    overflow:hidden;
}

h1 {
    font-size: 2.1rem;
}

a {
    text-decoration: none;
    z-index: 3;
    color: var(--pwr-primary);
}

a:hover {
    text-decoration: underline;
}

/* #region Button */
.pwr-button {
    text-decoration: none;
    color: var(--colors-text);

    padding: 5px 10px 5px 10px;
    border-radius:var(--border-radius-m);
}

.pwr-button:hover {
    background-color: var(--colors-accent);
    color: var(--color-text);

    text-decoration: none;
}

.pwr-button .emphasize {
    background-color:var(--pwr-primary) !important;
    color:var(--colors-background) !important;
}

.pwr-button .emphasize:hover {
    background-color:var(--pwr-primary-dark) !important;
}
/* #endregion */

/* #region Text */
.subtext {
    font-size: var(--font-size-s);
}

.text-bold {
    font-weight: var(--fw-bold);
}

.color-danger {
    color: var(--pwr-danger) !important;
}

.color-text-light {
    color: var(--colors-text-light) !important;
}

.color-text {
    color: var(--colors-text) !important;
}

.bg-text-light {
    background-color: var(--colors-text-light) !important;
    border: 1px solid var(--pwr-primary);
}

.font-l {
    font-size:var(--font-size-l);
}

/* #endregion */

/* #region Misc Input */
.pwr-text-input {
    background-color: var(--pwr-secondary);

    border: none;
    outline: none;

    border-radius: var(--border-radius-xs);

    padding: 5px;
}

.fullInput{
    width:calc(100% - 2em);
    margin-left:1em;
    margin-right:1em;
    border-radius:var(--border-radius-x);
    border:2px solid transparent;
    padding:10px;
}

.fullInput:hover, .fullInput:focus{
    border:2px solid var(--colors-accent);
    outline:none;
}

/* #endregion */

/* #region Utility */
.emphasize{
    background-color:var(--pwr-primary) !important;
    color: var(--colors-background) !important;
}

.emphasize:hover{
    background-color:var(--pwr-primary-dark) !important;
}

.thinBorder {
    border: 0.0625rem solid var(--element-specific-header-border);
}

.lineBreak {
    width: 100%;
    height: 1px;
}

@media only screen and (max-width: 895px) {
    .hide-screen-s {
        display: none;
    }
}

@media only screen and (max-width: 400px) {
    .hide-screen-xxs {
        display: none;
    }
}

@media only screen and (max-width: 600px) {
    .hide-screen-xs {
        display: none;
    }
}

@media only screen and (min-width: 895px) {
    .hide-larger-screen-s {
        display: none;
    }
}

@media only screen and (min-width: 400px) {
    .hide-larger-screen-xxs {
        display: none;
    }
}

@media only screen and (min-width: 600px) {
    .hide-larger-screen-xs {
        display: none;
    }
}

/* #endregion */

/* #region Misc Components */
.profilePicture {
    border: 2px solid var(--colors-accent);

    border-radius: 50%;
    height: 35px;
}

.loader{
    position:absolute;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background-color:var(--colors-background);
    border-radius:var(--border-radius-m);

    width:5rem;
    opacity:0;
    z-index:1;
}
/* #endregion */

/* #region SCROLLBAR */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    height:100%;
    border-radius:var(--border-radius-m);
}
   
::-webkit-scrollbar-thumb {
    background: var(--pwr-primary); 
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pwr-primary-dark); 
}

/* #endregion */

/* #region Tooltips */
abbr {
    font-style: normal;
    position: relative;
  }

  abbr::after {
    content: attr(info);
    display: inline;
    position: absolute;
    top: 0px; left: 90%;
    opacity: 0;
    width: 230px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5em;
    padding: 0.5em 0.8em;
    background: rgba(0,0,0,0.8);
    color: #fff;
    pointer-events: none; /* This prevents the box from apearing when hovered. */
    transition: opacity 250ms, left 250ms;
    border-radius:var(--border-radius-s);
  }
  abbr::before {
    content: '';
    display: block;
    position: absolute;
    top: 0px; left: 90%;
    opacity: 0;
    width: 0; height: 0;
    border: solid transparent 5px;
    border-bottom-color: rgba(0,0,0,0.8);
    transition: opacity 250ms, left 250ms;
    transform:rotate(-90deg)
  }
  abbr:hover {z-index: 99999;} /* Keeps the info boxes on top of other elements */
  abbr:hover::after,
  abbr:hover::before {opacity: 1;}
  abbr:hover::after {left:105%;}
  abbr:hover::before {left:102%; top:50%;}

/* #endregion */

/* #region Content Boxes */

.pageContent{
    height: 100vh;
}

.content{
    position:relative;
    overflow:auto;
    height: 97vh;
}

.section{
    min-height:5vh;
    width:80%;
    margin-left:10%;
    margin-right:10%;
    border-top:2px solid #f0f0ff34;
}

.sectionContent{
    background-color:var(--colors-background);
    border-radius:var(--border-radius-m);
    padding:0.5em 1em 1em 2em;
    margin-top:2em;
    margin-bottom:2em;
}

.box-narrow{
    position:relative;
    min-width:50%;
    max-width:800px;
    padding:2em;
    margin:2em auto;
    border-radius:var(--border-radius-m);
    background-color:var(--pwr-accent);
}

.box-wide{
    position:relative;
    padding:2em;
    margin:2em auto;
    min-height:75vh;
    border-radius:var(--border-radius-m);
    background-color:var(--pwr-accent);
}

@media screen and (min-width: 1100px) {
    .box-wide{
        width:calc(100% - 5rem);
    }
}

@media screen and (max-width: 1100px) {
    .box-wide{
        width:calc(100% - 5rem);
    }
}

@media screen and (max-width: 700px) {
    .box-wide{
        width: 100%;
        padding:0;
    }
}

/* #endregion */

/* #region Misc */
.btn-primary:hover {
    text-decoration: none;
}

/* #endregion */
