﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
   for details on configuring this project to bundle and minify static web assets. */

@font-face {
    font-family: 'Nunito Sans';
    src: url('../fonts/nunito/Nunito-Regular.ttf') format('truetype');
    font-display: swap;
    font-weight: 400;
}

@font-face {
    font-family: 'Nunito Sans';
    src: url('../fonts/nunito/Nunito-Bold.ttf') format('truetype');
    font-display: swap;
    font-weight: bold;
}

@font-face {
    font-family: 'Nunito Sans';
    src: url('../fonts/nunito/Nunito-SemiBold.ttf') format('truetype');
    font-display: swap;
    font-weight: 600;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: normal;
    overflow-wrap: break-word;
    align-items: center;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

    .btn-primary:hover {
        opacity: 0.9;
    }

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles */
html {
    font-family: "Nunito Sans", sans-serif;
    font-size: 1rem;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        /* Empty */
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

/* Overruling conflicts between tailwind and bootstrap */
.mx-5 {
    margin-left: 1.25rem !important;
    margin-right: 1.25rem !important;
}

.text-white {
    color: rgba(255,255,255,var(--tw-text-opacity)) !important;
}

label {
    margin-bottom: 0;
}

body {
    margin: 0 0 10vh 0;
    font-family: 'Nunito Sans', sans-serif;
    min-height: 90vh;
    background: #f3f4f6;
}

h1,
h1.display-4 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.75rem;
}

h5 {
    font-weight: 700;
}

.form-control:focus,
.form-control:disabled {
    box-shadow: none;
}

.form-control:disabled {
    color: #a1a1aa;
}

.border-light {
    border-color: #d5dee7 !important;
}

.btn {
    padding: 0.6rem 3rem;
}

.footer.border-top {
    overflow: hidden;
}

.btnlogin {
    font-size: 14px;
    margin-right: 7px;
    padding: 10px 20px;
}

.logologin {
    max-width: 20px;
    width: 100%;
    margin-right: 5px;
}

.navbar-brand {
    display: flex;
}

.nav-link.text-dark,
.nav-link.text-dark:hover {
    color: #fff !important;
}

.navbar-nav {
    cursor: pointer;
}

.dropdown-menu {
    border: none;
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px
}


.list-group-item {
    padding: 0;
}

.nav-content {
    min-height: 55vh;
}

/* style the items (options), including the selected item: */
.select-items div, .select-selected {
    color: #ffffff;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
    cursor: pointer;
}

/* Style items (options): */
.select-items {
    position: absolute;
    background-color: DodgerBlue;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
}

/* Hide the items when the select box is closed: */
.select-hide {
    display: none;
}

.select-items div:hover, .same-as-selected {
    background-color: rgba(0, 0, 0, 0.1);
}

@media (min-height: 800px) {
    .nav-content {
        min-height: 65vh;
    }
}

/* --------- Styling _Guest.cshtml to use screen height ----------------- */
.guest {
    margin: 0;
    height: 100vh;
}

    .guest > .container-fluid,
    .guest main,
    .guest main > .row {
        height: 100%;
    }

    .guest h1 {
        font-size: 1.25rem;
        font-weight: 700;
    }

    .guest h4 {
        font-size: 1rem;
    }

    /* Positioning the Tuuring logo at the top-left corner */
    .guest > .container-fluid > main > .row > .col:first-child a svg {
        height: 2.8rem;
    }

    .guest > .container-fluid > main > .row > .col {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

        .guest > .container-fluid > main > .row > .col:first-child > div {
            max-width: 380px;
            width: 100%;
        }

            /* Default of generated pages have 2 sides and layouts them horizontally.
               Sets the sections vertically instead and maximizing its width. */
            .guest > .container-fluid > main > .row > .col:first-child > div > .row {
                flex-direction: column;
            }

                .guest > .container-fluid > main > .row > .col:first-child > div > .row > .col-md-4,
                .guest > .container-fluid > main > .row > .col:first-child > div > .row > .col-md-6 {
                    max-width: 100%;
                    margin-bottom: 1.75rem;
                }

    .guest .field-validation-error {
        font-size: 0.75rem;
    }

    /* Guest Footer should only be shown in the left side */
    .guest .footer.border-top {
        width: 50%;
        text-align: center;
        border: none !important;
    }

.config-logo-preview {
    height: 5rem;
    width: auto;
    border-style: dotted;
    border-width: 2px;
    border-color: red;
}

.config-icon-preview {
    height: 2rem;
    width: auto;
    border-style: dotted;
    border-width: 2px;
    border-color: red;
}

table {
    border-radius: 0.25rem; /* 4px */
    border-width: 2px;
    border-style: solid;
}

    table thead tr {
        border-radius: 0.25rem; /* 4px */
        border-width: 1px;
        border-style: solid;
    }

    table tbody tr {
        border-radius: 0.25rem; /* 4px */
        border-width: 1px;
        border-style: solid;
    }
