﻿@font-face {
    font-family: MyriadProLight;
    src: url("fonts/MyriadProLight.otf") format("opentype");
}
@font-face {
    font-family: MyriadProBold;
    src: url("fonts/MyriadProBold.ttf") format("opentype");
}
@font-face {
    font-family: MyriadPro;
    src: url("fonts/MyriadProRegular.ttf") format("opentype");
}
@font-face {
    font-family: MyriadProBolder;
    src: url("fonts/MyriadProBlack.ttf") format("opentype");
}

:root{
    --main: #03516d;
    --secondary: #e2f3fa;
    --bckgr:#f9f9f9;
    --gray:#efefef;
    --tableLight:#c0d000;
    --error: red;
    --errorBckgr: #fcd7d7;
    --lightGray: #d3d3d3;
}

html{
     scrollbar-width: thin;
     scrollbar-color: var(--main) var(--bckgr);  
}

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: MyriadPro, Arial;
    margin-top: 0;
}
h3{
    margin-bottom: .25rem;
}
b{
    font-family: MyriadProBold, Arial;
}
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;
}
ol li{
    list-style: decimal;
}
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;
}
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;
  }

.loading{
    display: inline-block;
    width: 2rem;
    aspect-ratio: 1;
    transform: rotate(360deg);
    animation: spin 1s linear infinite alternate;
    fill: var(--main);
    margin: auto;   
    display: none;
}

@keyframes spin {
    0%{ rotate: 0deg; }
    100%{ rotate: 360deg; }
}

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;
}
.centered {
    text-align:center;
}

#map {
    width: 100%;
    height: 300px;
    margin: 50px auto;
    display: block;
    border: 5px solid var(--main);
    max-width: 600px;
}
    #map.responsive {
        max-width: 90% !important;
    }

form.register{
    background-color: white;
    border-radius: 3rem 0 3rem 0;
    padding: 2rem;
}
form.login{
    background-color: white;
    border-radius: 3rem 0 3rem 0;
    padding: 2rem;
}
form.new{
    background-color: white;
    border-radius: 3rem 0 3rem 0;
    padding: 2rem;
}
.pages{
    width: 100%;
    text-align: center;
}
.pages a{
    margin: .5rem; 
    padding: .5rem;   
    display: inline-block;
}
.pages a.current{
    border-bottom: 5px solid var(--main);
}

.confirm.wrapper{
    background-color: #0006;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

div.confirm:not(.wrapper){
    background-color: white;
    padding: 1rem;
    border-radius: 2rem;
    box-shadow: 0 0 0 1rem #0008;
    display: flex;
    flex-direction: column;
    min-width: 20rem;
}
div.confirm:not(.wrapper).responsive{
    min-width: none;
    width: 100%;
    margin: 1rem;
}
.confirm:not(.wrapper) .box{
    display: flex;
    flex-direction: row;
    align-items: center;
}
.confirm:not(.wrapper) .box .icon{
    max-width: 4rem;
}
.confirm:not(.wrapper) .box .icon img{
    width: 100%;
}
.confirm:not(.wrapper) .box .message{
    padding-left: 1rem;
}
.confirm:not(.wrapper) .actions{
    text-align: right;
    margin-top: 1rem;
}
.confirm:not(.wrapper) .actions a{
    display: inline-block;
    padding: .25rem .5rem;
    border-radius: 1rem;
    color: var(--main);
    border: 1px solid var(--main);
}
.confirm:not(.wrapper) .actions a.cancel:not([href]){
    background-color: white;
    background-color: var(--main);
    color: white;
    cursor: pointer;
}
.searchResult{
    display: block;
    box-shadow: 0 0 10px 10px black;
    position: absolute;
    background: white;
    box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.34);
    padding: 1rem;
    border-radius: 0 1rem 1rem;
}
.searchResult a{
    display: flex;
    flex-direction: column;
}
.searchResult a span:first-child{
    color: var(--main);
    font-weight: bold;
}
.searchResult a span:last-child{
    text-transform: capitalize;
}
.filter{
    display: flex;
    align-items: center;
    align-content: center;
    padding-bottom: 1.5rem;
}
.filter.responsive{
    flex-direction: column-reverse;
    align-items: flex-start;
    padding-left: 1rem;
}
.filter.responsive span{
    padding: .5rem;
}
.filter span{
    padding: 1rem;
    text-transform: capitalize;
    cursor: pointer;
}
.filter span.active{
    border-bottom: 3px solid var(--main);
}

/* viewport */
body {
    background: var(--bckgr);
    font-family: MyriadProLight, Arial;
    font-weight: lighter;
    display: flex;
    flex-direction: column;
    gap:1rem;
    margin: 0px;
    padding: 0px;
}
    body.responsive {
        font-size:150%;
    }
.holder{
    max-width: 1280px;
}
header{
    display: flex;
}
header .logo{
    max-height: 4rem;
    padding: 1rem 0;
}
header .logo.responsive{
    max-height: 8rem;
    padding: 2rem 0;
}
header.responsive{
    align-items: center;
    justify-content: center;
}
nav {
    background-color: var(--main);
    color: var(--bckgr);
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    align-items: center;
}
nav a{
    display: block;
    padding: 1rem;
}
nav a:hover{
    background-color: var(--bckgr);
    color: var(--main);
}
section{
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
section.main{
    padding: 2rem 2rem 8rem 2rem;
    background-color: var(--lightGray);
    position: relative;
    overflow: hidden;
}
section.main article{
    padding: 1rem;
    background-color: rgba(226,243,250,.6);
}
section.main article.responsive{
    background-color: rgba(226,243,250,.8);
}
section article{
    width: 100%;
    max-width: 1280px;
    z-index: 1;
}
section.upMargin{
    margin-top: -6rem;
    min-height: 10rem;
}
section.news{
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;  
    max-width: 1280px;
    margin: auto;
}
section.news.responsive{
    padding: 0 2rem;
}
section.news article{
    background-color: var(--secondary);
    padding: 1rem;
}
span.element{
    max-height: fit-content;
    width: 15rem;
    background-color: var(--secondary);
    padding: 1rem;
    align-self: stretch;
}
span.element p{
    margin:0;
}
.two-cols{
    display: grid;
    grid-template-columns: auto minmax(40%,50%);
}
.two-cols.responsive{
    grid-template-columns: auto;
}
.background-video{
    position: absolute;
    height: auto;
    min-width: 100%;
    min-height: 100%;
}
.background-blur::after{
    content: "";
    display: block;
    position: absolute;
    top:0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,.4);
}
.two-cols .gallery{
    width: 100%;
    flex-wrap: wrap;
    gap: 1rem;
}
.two-cols .gallery.responsive{
    justify-content: space-around;
}

.two-cols .gallery .element img{  
    max-height: 8rem;
    max-width: 16rem;
}