﻿
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;
    font-size: var(--font-size-sm);
}
    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;
    flex-direction: column;
    position: relative;
    z-index: 2;
    &.responsive{
        overflow: hidden;
    }
    &:not(.menu){
        padding: 1rem 0;
    }
}

.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;
    flex-direction: row;
    svg#logo{
        height: 100vh;
        max-height: 100px;
        margin: 1rem;
    }
    .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);
            white-space: nowrap;
            &.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);
    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.sample{
        position:absolute;
        height: 100%;
        max-height: 30rem;
        right: 0px;
        bottom: 0px;
        z-index: 0;
        &.responsive{
            opacity: .2;
            right: -30%;
        }
    }
}

.strip{
    max-width: var(--max-width);
    background-color: var(--color-surface);
    border-radius: 1rem;
    padding: 1rem;
    div {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .5rem;
        padding: 1rem;
        text-align: center;
        &:not(:last-child)::after{
            content: "";
            position: absolute;
            top: 50%;
            right: 0;
            width: 1px;
            height: 50%;
            background: var(--color-border);
            transform: translateY(-50%);
        }
        h2{
            text-align: center;
        }
        svg{
            color: var(--color-text-secondary);
        }
    }
    &.responsive{
        width: 100%;
        flex-wrap: wrap;
        padding: 0;
        border-radius: 0;
    }
}

.col{
    flex-direction: row;
    div{
        width:100%;
        height: 100%;
        text-align: center;
        overflow: hidden;
        &.img-container{
            max-width:30%; 
            max-height:40vh; 
            border-radius:1rem;
            img{
                width: 100%;
                height: 100%;
                display: block;
                object-fit: cover;
                object-position: center;
            }
            &.responsive{
                width: 100%;
                border-radius: 0;
                max-width: unset;
                max-height: 20rem;
            }
        }
        h2, p{
            padding: 0 1rem;
        }
    }
    &.responsive{
        flex-direction: column;
    }
}

.section{
    *{
        text-align: center;
    }
    h3{
        color: var(--color-heading-primary);
        font-weight: var(--font-weight-light);
        font-size: clamp(var(--font-size-md));
        font-variant-caps: small-caps ;
        letter-spacing: var(--letter-spacing-wide);
        text-transform: uppercase;
        padding: 0;
        margin: 0;
        &::after {
            content: "";
            display: block;
            height: 1rem;
            margin: 0.2rem auto 1rem;
            background-color: currentColor;
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 24'%3E%3Cpath d='M0 12H62M98 12H160' fill='none' stroke='black'/%3E%3Cpath d='M80 0C81.5 8 84 10.5 92 12C84 13.5 81.5 16 80 24C78.5 16 76 13.5 68 12C76 10.5 78.5 8 80 0Z' fill='black'/%3E%3C/svg%3E");
            mask-repeat: no-repeat;
            mask-position: center;
            mask-size: contain;
            -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 24'%3E%3Cpath d='M0 12H62M98 12H160' fill='none' stroke='black'/%3E%3Cpath d='M80 0C81.5 8 84 10.5 92 12C84 13.5 81.5 16 80 24C78.5 16 76 13.5 68 12C76 10.5 78.5 8 80 0Z' fill='black'/%3E%3C/svg%3E");
            -webkit-mask-repeat: no-repeat;
            -webkit-mask-position: center;
            -webkit-mask-size: contain;
        }
    }
    h2{
        color: var(--color-heading-primary);
        font-size: var(--font-size-2xl);
    }
    .card{
        display: grid;
        align-items: center;
        grid-template-columns: 40% 60%;
        max-width: 20vw;
        overflow: hidden;
        aspect-ratio: 2.5/1;
        margin: .5rem 0;
        border: 1px solid var(--color-card-border);
        background-color: var(--color-card-background);
        border-radius: 1rem;
        cursor: pointer;
        box-shadow: var(--shadow-md);
        &:hover{
            background-color: var(--color-card-background-hover);
            box-shadow: var(--shadow-lg);
            img{
                filter: grayscale(0%);
                transition: filter 300ms ease;
            }
        }
        &.responsive{
            max-width: none;
            padding: 0 1rem;
            margin: 0;
        }
        img{
            object-fit: cover;
            object-position: 65% center;
            width: 100%;
            height: 100%;
            filter:
            grayscale(100%)
            contrast(0.92)
            brightness(1.05);
        }
        .txt{
            padding: 1rem;
            height: 100%;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: center;
            h2{
                font-size: clamp(var(--font-size-2xl));
            }
            h3{
                font-size: var(--font-size-xs);
            }
            p{
                visibility: collapse;
                display: none;
            }
        }
    }
    .list{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        align-content: center;
        align-items: center;
        justify-content: space-evenly;
        &.responsive{
            flex-direction: column;
        }
    }
}

.theme-switcher {
    display: inline-flex;
    align-items: center;
    padding: .5rem 1rem;
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    gap: 2px;
    width: auto;
    width: min-content;
    flex-direction: column;
    position: fixed;
    top: 25vh;
    right: 0;
    z-index: 99;
}
.theme-option {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    padding: 0;

    background: transparent;
    color: var(--color-text-muted);

    border: 0;
    border-radius: 50%;

    cursor: pointer;

    transition:
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;

    > svg {
        width: 17px;
        height: 17px;

        fill: none;
        stroke: currentColor;
        stroke-width: 1.6;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    &:hover {
        color: var(--color-text-primary);
        background: var(--color-surface-hover);
    }

    &.active {
        background: var(--color-primary);
        color: var(--color-primary-contrast);
    }
}