﻿
html{
     scrollbar-width: thin;
     scrollbar-color: var(--color-background-strong) var(--color-background-soft);  
     
    font-family: var(--font-body);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html::-webkit-scrollbar{
    width: .5vw;
}

html::-webkit-scrollbar-button{
    background-color: #ddd2;
}

html::-webkit-scrollbar-thumb{
    background-color: var(--main);
}
html::-webkit-scrollbar-thumb:hover{
    background-color: var(--main);
}

html::-webkit-scrollbar-track{
    background-color: #ddd2;
}

html::-webkit-scrollbar-track:hover{
    background-color: #ddd;
}
h1,h2{
    font-family: var(--font-heading);
    font-weight: var(--font-weight-medium);
    margin: 0px;
}
b{
    font-family: MyriadProBold, Arial;
}
body {
    display: flex; 
    flex-direction: column;
    align-items: center;
    font-weight: lighter;
    min-height:100vh;
    margin: 0px;
    padding: 0px;
    background: var(--color-background-soft);
}
    body.responsive {
        font-size:150%;
    }
    body > div {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
a {
    color:inherit;
    text-decoration:none;
}
a.visible{
    color:var(--main);
    padding: .5rem;
}
p {
text-align:justify;
}
    p.responsive {
        padding: 0px 20px;
    }
ul {
    margin:0px;
    padding:0px 0px 20px;
}
li {
    margin:0px 0px 10px 0px;
    padding:0px;
    list-style:none;
}

li.normal{
    list-style: disc;
    margin-left: 20px;
}

em{
    font-style: normal;
    font-weight: bold;
    color: var(--main);
}
pre{
    max-width: 800px;
    margin: auto;
    padding: 1rem;
    text-align: justify;
    white-space: pre-line;       /* Since CSS 2.1 */
}
.icon {
    border-radius: 50%;
    overflow: hidden;
    background-color: white;
    text-align:center;
}
    .icon.sub {
        max-width: 300px;
        margin: 0px auto 20px;
        border: 5px solid var(--main);
    }
    .icon img {
        width:100%;
    }
input[type="text"], input[type="password"], textarea {
    padding: 1rem;
    margin: .5rem auto;
    background: rgba(105,105,105,0.24);
    border: none;
    color: rgb(128, 128, 128);
    width: -moz-calc(100% - 2rem);
    width: -webkit-calc(100% - 2rem);
    width: -o-calc(100% - 2rem);
    width: calc(100% - 2rem);
}
    input[type="text"].responsive, input[type="password"].responsive, textarea.responsive, #captcha.responsive, input[type="submit"].responsive, select.responsive {
        display: block;
        margin: 1rem auto;
        font-size: 1.5rem;
    }
input[type="file"]{
    padding: 0 1rem .5rem 1rem;
}
input[type="datetime-local"],input[type="date"]{
    padding: .5rem;
    color: var(--main);
    border-color: var(--main);
}

label[for]{  
    margin-top: .5rem;
    display: inline-block;
}
label[for] img{
    max-width: 3rem;
}
label[for] svg{
    max-width: 3rem;
    fill: var(--main);
    display: inline-block;
}
select{
    padding: 1rem;
    margin: .5rem auto;
    background: rgba(105,105,105,0.24);
    border: none;
    border-radius: 0%;
    color: rgb(128, 128, 128);
    width: 100%
}
input[type="submit"] {
        margin: 1rem auto;
        display: block;
        background: var(--main);
        padding: 1rem 1.5rem;
        color: white;
        border: none;
        cursor: pointer;
    }
    input[type="submit"]:disabled{
        background: rgba(105,105,105,0.24);
        color: rgb(128, 128, 128);
    }
/* pretty checkbox */
input[type="checkbox"] {
    position: absolute;
    /* left: -9000px;
    top: -9000px; */
    visibility: hidden;
  }
  
  input[type="checkbox"] + label {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
  }
  
  input[type="checkbox"] + label::before {
    content: "";
    width: 3.3em;
    height: 1.7em;
    background-color: #efefef;
    border: 2px solid var(--main);
    border-radius: 1em;
    margin-right: .25em;
    transition: background-color 200ms ease-in-out;
  }
  
 input[type="checkbox"] + label::after {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    content: "\2715";
    font-size: .6em;
    left: .429em;
    width: 2.5em;
    height: 2.5em;
    background-color: #777;
    color: white;
    border-radius: 50%;
    transition: background-color 200ms ease-in-out, transform 200ms ease-in-out;
  }
  
  input[type="checkbox"]:focus + label::before {
    outline: 1px solid var(--main);
  }
  
  input[type="checkbox"]:checked + label::before {
    background-color: #efefef;
  }
  
  input[type="checkbox"]:checked + label::after {
    content: "\2713";
    transform: translateX(100%);
    background-color: var(--main)
  }
  
  input[type="checkbox"]:disabled + label {
    color: #777;
  }
  
  input[type="checkbox"]:disabled + label::before {
    background-color: #CCC;
  }
  
  input[type="checkbox"]:disabled + label::after {
    background-color: #777;
  }
/* checkbox-end */

  input[type="text"].search{
    border-radius: 2rem;
    position: relative;
    width: 10rem;
}

.error {
    border: 1px solid red !important;
    background-color: #fcd7d7;    
}
span.error{
    background: none;
    border:none !important;
    color: red;
    font-size: .8rem;
}

.holder{
    width:100%;
    max-width: var(--max-width);
    display: flex;
    position: relative;
    z-index: 2;
    &.responsive{
        overflow: hidden;
    }
}

.button{
    background: var(--color-button-primary-bg);
    color: var(--color-button-primary-text);
    padding: 1rem 2rem;
    border-radius: 1rem;
    &:hover{
        background: var(--color-button-primary-bg-hover);
        color: var(--color-button-primary-text);
    }
}

.menu{
    display: flex;
    svg#logo{
        height: 100vh;
        max-height: 100px;
    }
    .items{
        display: flex;
        align-items: end;
        justify-content: flex-end;
        gap: 1rem;
        width:100%;
        span{
            padding: 1rem;
            border-bottom: 2px solid rgba(0,0,0,0);
            &.selected{
                border-bottom: 2px solid var(--color-accent);
            }
        }        
        &.responsive{
            flex-direction: column;
            gap: .5rem;
            padding: 1rem 0 0 0;
            span{
                width: 100%;
                padding: 0;
                text-align: center;
                a{
                    width: 100%;
                    display: inline-block;
                    text-align: center;
                    &.button{
                        &.responsive{
                            width: fit-content;
                        }
                    }
                }
                &.selected{
                    border-bottom: 0;
                    a{
                        border-left: 5px solid var(--color-accent);
                    }
                }
            }
        }
    }
    &.responsive{
        flex-direction: column;
        padding: 1rem 0;
    }
}

.hero{
    background-color: var(--color-hero-background-alt);
    color: var(--color-hero-text);
    .holder{
        min-height: 50vh;
    }
    .text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-left: 1rem;    
        max-width: 25vw;    
        z-index: 1;     
        &.responsive{
            max-width: 100%;
        }   
    }
    h1{
        color: var(--color-hero-heading);
        font-size: var(--font-size-2xl);
    }
    img{
        position:absolute;
        height: 100%;
        max-height: 30rem;
        right: 0px;
        bottom: 0px;
        z-index: 0;
        &.responsive{
            opacity: .5;
            right: -30%;
        }
    }
}

.strip{
    max-width: var(--max-width);
    background-color: var(--color-surface);
    border-radius: 1rem;
    padding: 1rem;
}
