﻿* {
    box-sizing: border-box;
}

html {
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    width: 100%;
    margin: 0px;
    padding: 0px;
    font-size: 1em;
    font-family: Verdana, Geneva, sans-serif;
    font-weight: 400;
    letter-spacing: 0px;
    font-style: normal;
    color: #000080;
    line-height: 1.5;
}

@media (display-mode: standalone) {
    body {
        overscroll-behavior-y: contain;
    }
}


h1 {
    font-family: Poppins, Arial, Helvetica, sans-serif;
    font-size: 2em;
    font-weight: 300;
    font-style: normal;
    color: #1a80b6;
    margin: 0px;
}

h2 {
    font-family: Poppins, Arial, Helvetica, sans-serif;
    font-size: 1.5em;
    font-weight: 300;
    margin-top: 2em;
    font-style: normal;
    color: #1a80b6;
}

h3 {
    font-family: Poppins, Arial, Helvetica, sans-serif;
    font-size: 1em;
    font-weight: 500;
    margin-top: 2em;
    font-style: normal;
    color: #1a80b6;
}

a {
    color: #007bff;
    text-decoration: none;
    background-color: transparent;
}


.form {
    display: flex;
    flex-direction: column;
}

    .form label {
        font-size: smaller;
        margin-bottom: 1px;
        margin-top: 1.5em;
    }

    .form input {
        font-size: 1em;
        padding: .5em;
        border: 1px solid lightgray;
        border-radius: 4px;
    }

    .form button {
        margin-top: 1.5em;
        align-self: flex-end;
        width: 120px;
        font-size: 1em;
        padding: .5em;
        border: 1px solid lightgray;
        border-radius: 4px;
    }




@media (max-width: 767.98px) {
    .MenuButton {
        width: 100%;
        display: block;
        background-color: rgba(26,128,182,0.27);
        cursor: pointer;
    }

    .menu {
        display: block;
        text-align: left;
        width: 100%;
        font-family: Poppins, Arial, Helvetica, sans-serif;
        font-size: 1em;
        color: #000080 !important;
        background-color: rgba(26,128,182,0.27);
    }

        .menu ul {
            list-style: none;
            margin-top: 0;
        }

            .menu ul li {
                padding: .5em;
            }

                .menu ul li a {
                    color: #000080;
                    padding-bottom: .4em;
                }

                    .menu ul li a.active {
                        color: #1a80b6;
                    }

                    .menu ul li a:hover {
                        color: rgba(26,128,182,0.27);
                    }
}

@media (min-width: 768px) {

    .menu {
        display: flex;
        font-family: Poppins, Arial, Helvetica, sans-serif;
        font-size: 1em;
        color: #000080 !important;
        /*height: 2.5em;*/
        align-items: center;
        align-self: center;
    }

        .menu ul {
            list-style: none;
            display: flex;
        }

            .menu ul li {
                padding-left: .5em;
                padding-right: .5em;
            }

                .menu ul li a {
                    color: #000080;
                    padding-bottom: .4em;
                }

                    .menu ul li a.active {
                        color: #1a80b6;
                        border-bottom: .25em solid #1a80b6;
                    }

                    .menu ul li a:hover {
                        color: rgba(26,128,182,0.27);
                    }
}







@media (max-width: 767.98px) {

    .index_caption {
        display: flex;
        flex-wrap: wrap;
        padding: 1em;
    }

        .index_caption h1 {
            width: 100%;
            margin: 0px;
            line-height: 1.5;
            text-align: center;
        }

        .index_caption p {
            width: 100%;
            margin: 0px;
            line-height: 1.5;
        }
}

@media (min-width: 768px) {

    .index_caption {
        margin-top: 2em;
        display: flex;
        margin-bottom: 2em;
    }

        .index_caption h1 {
            width: 40%;
            margin-left: 2em;
            margin-right: 1em;
            text-align: right;
            line-height: 1.2;
        }

        .index_caption p {
            width: 60%;
            margin-right: 4em;
            line-height: 1.5;
        }
}


.indexBlogSummary {
    padding-top: 2em;
    padding-bottom: 2em;
}

    .indexBlogSummary h2 {
        font-family: Poppins, Arial, Helvetica, sans-serif;
        font-size: 1.5em;
        margin-top: 0px;
        font-weight: 300;
        font-style: normal;
        color: #1a80b6;
    }

    .indexBlogSummary p {
        line-height: 1.5;
    }

    .indexBlogSummary .item {
        margin-right: 1em;
    }
/*----------------------------------------------------------------------

   Site Layout
----------------------------------------------------------------------*/
.grid-SiteLayout {
    display: grid;
    margin: 0px;
    grid-template-areas: 'linksleft links linksright' 'headerleft header headerright' 'main main main' 'footer footer footer';
    min-height: 100%;
    width: 100%;
    grid-template-columns: 1fr minmax(200px, 1150px) 1fr;
    grid-template-rows: 52px auto auto auto;
}

.linksleft {
    grid-area: linksleft;
    background-color: #1a80b6;
}

.links {
    grid-area: links;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a80b6;
    padding-left: 1em;
    padding-right: 1em;
}

    .links a {
        color: #055a7f;
        background-color: #e8e8e8;
        border-color: #e8e8e8;
        border-radius: .25em;
        margin-left: 1em;
        text-decoration: none;
        display: inline-block;
        width: 2.25em;
        height: 2.25em;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .links a i {
            font-size: 1.5em;
        }

.linksright {
    grid-area: linksright;
    background-color: #1a80b6;
}

.headerleft {
    grid-area: headerleft;
    padding-bottom: .5em;
    position: sticky;
    top: 0;
    z-index: 1030;
    background: white;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1px;
}

@media (max-width: 767.98px) {

    .header {
        text-align: center;
        grid-area: header;
        flex-wrap: wrap;
        justify-content: space-between;
        padding-bottom: .5em;
        position: sticky;
        top: 0;
        z-index: 1030;
        background: white;
        border-bottom: 1px solid #dee2e6;
        margin-bottom: 1px;
        min-height: 115px;
    }
}

@media (min-width: 768px) {

    .header {
        grid-area: header;
        display: flex;
        justify-content: space-between;
        padding-bottom: .5em;
        position: sticky;
        top: 0;
        z-index: 1030;
        background: white;
        border-bottom: 1px solid #dee2e6;
        margin-bottom: 1px;
        min-height: 115px;
    }
}



.headerright {
    grid-area: headerright;
    padding-bottom: .5em;
    position: sticky;
    top: 0;
    z-index: 1030;
    background: white;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1px;
}

.main {
    grid-area: main;
    padding-top: 1.5em;
}

.footer {
    grid-area: footer;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    min-height: 60px;
    white-space: nowrap;
    background-color: rgba(26,128,182,0.27);
}


/*----------------------------------------------------------------------
   Layout 
----------------------------------------------------------------------*/
@media (max-width: 767.98px) {
    .gridLayout {
        display: grid;
        margin: 0px;
        grid-template-areas: 'slider' 'content' 'blogsummary' 'advertising';
        min-height: 100%;
        width: 100%;
        grid-template-columns: 100%
    }
}


@media (min-width: 768px) {
    .gridLayout {
        display: grid;
        margin: 0px;
        grid-template-areas: '. slider .' '. content .' 'blogsummaryleft blogsummary blogsummaryright' '. advertising .';
        min-height: 100%;
        width: 100%;
        grid-template-columns: 1fr minmax(500px, 1150px) 1fr;
    }
}




.gridLayout .slider {
    grid-area: slider;
}

.gridLayout .content {
    grid-area: content;
}

.gridLayout .blogsummaryleft {
    grid-area: blogsummaryleft;
    background-color: rgba(26, 128, 182, 0.27);
}

.gridLayout .blogsummary {
    grid-area: blogsummary;
    background-color: rgba(26, 128, 182, 0.27);
    padding-left: 1em;
    padding-right: 1em;
}

.gridLayout .blogsummaryright {
    grid-area: blogsummaryright;
    background-color: rgba(26, 128, 182, 0.27);
}

.gridLayout .advertising {
    grid-area: advertising;
    border: 0px solid orange;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
}

    .gridLayout .advertising iframe {
        border: 0px solid green;
        height: 300px;
        margin-left: 1em;
        margin-right: 1em;
    }




/*----------------------------------------------------------------------
   Layout with Sidebar
----------------------------------------------------------------------*/
@media (max-width: 767.98px) {
    .gridLayoutSideBar {
        display: grid;
        margin: 0px;
        grid-template-areas: 'content' 'sidebar' 'advertising';
        min-height: 100%;
        width: 100%;
        grid-template-columns: 100%;
    }

    .flexwraponsmall {
        display: flex;
        flex-wrap: wrap;
    }
}


@media (min-width: 768px) {
    .gridLayoutSideBar {
        display: grid;
        margin: 0px;
        grid-template-areas: '. content sidebar .' '. advertising sidebar .';
        min-height: 100%;
        width: 100%;
        grid-template-columns: 1fr minmax(300px, 850px) 300px 1fr;
    }

    .flexwraponsmall {
        display: flex;
        flex-wrap: nowrap;
    }
}


.gridLayoutSideBar .content {
    grid-area: content;
    padding-right: 1em;
    padding-left: 1em;
}

.gridLayoutSideBar .sidebar {
    grid-area: sidebar;
    padding-right: 1em;
    padding-left: 1em;
}

    .gridLayoutSideBar .sidebar h1 {
        font-family: Poppins, Arial, Helvetica, sans-serif;
        font-size: 1.5em;
        font-weight: 300;
        margin-top: 1em;
        font-style: normal;
        color: #1a80b6;
    }

    .gridLayoutSideBar .sidebar ul {
        list-style-type: none;
        padding-left: 15pt;
        font-size: .90em;
    }

        .gridLayoutSideBar .sidebar ul li {
            list-style-type: none;
            margin-top: .75em;
            font-size: .90em;
        }

            .gridLayoutSideBar .sidebar ul li:before {
                font-family: 'Ionicons';
                content: '\f471';
                margin: 0 2px 0 -18px;
            }

            .gridLayoutSideBar .sidebar ul li a {
                color: #000080;
            }

.gridLayoutSideBar .advertising {
    grid-area: advertising;
    flex-wrap: wrap;
    border: 0px solid orange;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

    .gridLayoutSideBar .advertising iframe {
        border: 0px solid green;
        height: 300px;
        margin-left: 1em;
        margin-right: 1em;
    }

/*----------------------------------------------------------------------
   Blazor Stuff
----------------------------------------------------------------------*/
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }


.loader {
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #3498db;
    width: 50px;
    height: 50px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.frontPageLoader {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .frontPageLoader img {
        margin-bottom: 2em;
    }
