﻿/* 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: 'Museo-Slab-Regular';
    src: url('../fonts/Museo_Slab_300.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Museo-Slab-Bold';
    src: url('../fonts/Museo_Slab_700.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Lato-Regular';
    src: url('../fonts/Lato-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Lato-Bold';
    src: url('../fonts/Lato-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

.row {
    margin: 0;
}

.help-link {
    text-decoration: none;
    display: flex;
}

.align-center {
    text-align: center !important;
}

.top-m-1rem {
    margin-top: 1rem !important;
}

.bottom-m-6px {
    margin-bottom: 6px !important;
}

.padding-14px {
    padding: 14px !important;
}

.no-marg {
    margin: 0px !important;
}

.font-weight-700 {
    font-weight: 700 !important;
}

.font-size-15 {
    font-size: 14px !important;
}

.color-black {
    color: black !important;
}

.width-85 {
    display: inline-block;
    width: 85% !important;
}

.help-carret {
    text-align: right !important;
    display: inline-block !important;
    width: 15% !important;
    padding: 16px !important;
}


a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0F44FF;
}

/* Styles for the loading spinner container */
.loading-spinner {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent background overlay */
    z-index: 9999; /* Ensure it's above other content */
    justify-content: center;
    align-items: center;
}

/* Styles for the spinning animation */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

/* Keyframes for the spinning animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.password-toggle-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.password-toggle-icon {
    width: 24px;
    cursor: pointer;
}

.logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    margin: 62px auto 0 auto;
}

.centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

.select-regular {
    -webkit-appearance: none;
    padding-left: 25px;
    padding-right: 25px;
    height: 60px;
}

.input-tile {
    margin: auto;
    width: 375px;
    flex-shrink: 0;
    background: #FFF;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.10);
    padding: 24px;
}

.btn-primary {
    color: #00186B;
    border: 2px solid transparent;
    border-radius: 0;
    background: #79BDE9;
    transition: unset;
    display: flex;
    width: 372px;
    align-items: center;
    justify-content: center;
    margin: auto;

    &:focus {
        box-shadow: none;
        border: 2px solid #002857 !important;
    }

    &:hover:not(:disabled) {
        background: linear-gradient(rgb(147, 215, 255) 0%, rgb(121, 189, 233) 100%) border-box;
        color: #002857;
        border: 2px solid transparent;
    }

    &:active:not(:disabled) {
        box-shadow: none !important;
        color: #00186B !important;
        background: #79BDE9 !important;
    }

    &:disabled {
        color: #ACACAC !important;
        background-color: #C9E5F6 !important;
        border-color: #C9E5F6 !important;
        cursor: not-allowed;
    }
}

.btn-primary-white {
    color: #fff;
    border-radius: 8px;
    border: 2px solid #FFFFFF;
    background: #FFFFFF;
    display: flex;
    max-width: 372px;
    flex-direction: column;
    align-items: flex-start;
    margin: auto;
}

.btn-secondary {
    border-radius: 0;
    border: 2px solid transparent;
    display: flex;
    width: 372px;
    background-color: transparent;
    margin-top: 8px;
    margin-bottom: 24px;
    padding: 0;
    justify-self: center;
    transition: unset;

    &:focus {
        box-shadow: none;
        border: 2px solid #002857 !important;
    }

    &:hover:not(:disabled) {
        cursor: pointer;
        border: 2px solid transparent;
        background: #fff linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, rgba(0, 0, 0, 0.40)) border-box;
    }

    &:active:not(:disabled) {
        box-shadow: none !important;
        background-color: rgba(215, 215, 215) !important;
    }
}

.btn-secondary-dark {
    border-radius: 8px;
    border: none;
    display: flex;
    max-width: 372px;
    flex-direction: column;
    align-items: flex-start;
    margin: auto;
    background-color: unset;
    padding-top: 24px;
}

/*.btn-secondary:hover {
    background-color: transparent;
    color: #063DFF;
}*/

.btn-secondary-dark:hover {
    background-color: transparent;
    color: #FFFFFF;
}

.btn-primary-content {
    display: flex;
    padding: 8px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex: 1 0 0;
    margin: auto;
}

.btn-secondary-content {
    color: #1C1C1C;
    display: flex;
    padding: 14px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex: 1 0 0;
    margin: auto;
}

.btn-group {
    display: flex;
    width: 372px;
    padding: 24px 0px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Header styles
-------------------------------------------------- */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 30px;
}

.back-button {
    position: absolute;
    left: 200px;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 16px;
}

.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;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    padding: 16px;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

main {
    width: 100%;
}

footer {
    display: flex;
    text-align: center;
    font-size: 14px;
}

/* Application specific styles
-------------------------------------------------- */
.x-force-wrap {
    overflow-wrap: break-word;
}

a[data-copy-element] img {
    height: 20px !important;
    width: 20px !important;
    opacity: .5 !important;
    cursor: pointer !important;
}

/* Modal related styles
-------------------------------------------------- */

.modal-tile {
    display: flex !important;
    width: 570px;
    height: 460px;
    padding: 48px 48px 192px 48px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    background: #FFF;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.10);
    margin: 300px auto;
    position: relative !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

.modal-description-tile {
    display: flex;
    width: 474px;
    padding-bottom: 0px;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}

.modal-title-tile {
    margin: auto;
    padding-top: 48px;
    flex-shrink: 0;
    border-radius: 8px;
}

.modal-close-container {
    position: relative;
}

.modal-close-image {
    position: absolute;
    z-index: 1050;
    left: 620px;
    top: -40px;
}

.btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 72px;
}

div.university-select {
    height: 60px;
    margin-bottom: 10px;
    background-color: #fff;
}

div.selected {
    width: 100%;
    height: inherit;
    cursor: pointer;
    display: inline-block;
}

div.selected > .text {
    position: inherit;
    padding: 20px;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: Museo-Slab-Regular;
    color: #1C1C1C;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
}

div.selected > .text:focus {
    outline-width: 0;
}

div.select-box {
    display: none;
    width: 100%;
    position: relative;
    z-index: 10029;
    border: 1px solid #E4E4E4;
    border-radius: 8px;
    box-shadow: 0 8px 10px rgba(.1, .1, .1, .1);
    background-color: #fff;
    overflow-y: scroll;
    max-height: 220px;
    margin-top: 2px;
}

::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
    height: 3px;
}

::-webkit-scrollbar-track {
    height: 5px !important;
}

::-webkit-scrollbar-thumb {
    border-radius: 4px !important;
    height: 3px;
    background: #E4E4E4 !important;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5) !important;
}

div.select-box.active {
    display: block;
}

div.select-box.drop-up {
    top: auto;
    bottom: 100%;
}

ul.select-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ul.select-list li {
    width: inherit;
    height: 44px;
    border-bottom: 1px solid #E4E4E4;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 13px;
    font-family: Museo-Slab-Regular;
    color: #1C1C1C;
}

/* Mobile screens related styles
--------------------------------------------------- */
@media only screen and (max-width: 500px) {
    .button-container {
        position: relative;
        margin-bottom: 24px;
    }

    .button-mobile-position {
        bottom: 24px;
        left: 0;
        width: 100%;
    }

    .button-mobile-position-second {
        bottom: 100px;
        left: 0;
        width: 100%;
    }

    .btn-primary {
        width: 100%;
    }

    .btn-secondary {
        width: 100%;
    }

    .back-button {
        left: 24px;
    }

    .centered {
        display: flex;
        justify-content: left;
    }

    .input-tile {
        width: 100%;
    }

    .container-dark {
        background: #000000B2;
    }
}

.container-dark {
    margin: auto;
    padding: 30px;
    background: #1C1C1C;
    max-width: 570px;
    max-height: 544px;
    border-radius: 8px;
}

/* Tablet screens related styles
--------------------------------------------------- */
@media only screen and (min-width: 500px) and (max-width: 800px) {
    .back-button {
        left: 50px;
    }
}

/* Digit box related styles
--------------------------------------------------- */
.digit-box-container {
    width: 100%;
    height: 48px;
    text-align: center;
    margin-bottom: 4px;
}

.digit-box {
    width: 95%;
    height: 48px;
    flex-shrink: 0;
    border-radius: 0;
    border: 1px solid #D7D7D7;
    background: #FFF;
    -moz-appearance: textfield;
}

.digit-box-error {
    border: 2px solid var(--error, #EB0008) !important;
}

/* Chrome, Safari, Edge, Opera */
.digit-box::-webkit-outer-spin-button,
.digit-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.digit-code-input {
    padding-left: 16px;
    width: 100%;
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-self: center;
    cursor: pointer;
    position: relative;
    padding-left: 32px;
    margin-bottom: 0;
    font-size: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    & input[type=checkbox] {
        position: absolute;
        cursor: pointer;
        height: 0;
        width: 0;
        opacity: 0;

        &:checked ~ .checkmark {
            outline: 2px solid transparent;

            &:after {
                content: "";
                display: block;
                border-radius: 2px;
                outline-color: transparent;
                background-color: #79BDE9;
                background-image: url("../images/check-mark.svg");
                background-repeat: no-repeat;
                background-position: center;
                background-size: 50%;
                height: 24px;
                width: 24px;
                opacity: 1;
                transition: opacity 0.2s ease-in-out;
            }
        }

        &:active ~ .checkmark {
            background-color: #E4E4E4;
            outline: 2px #002857 solid;
            transition: background-color 0.5s ease-in-out;
        }

        &:focus ~ .checkmark {
            outline: 2px #002857 solid;
        }
    }
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: #FFFFFF;
    outline: 1px solid #949494;
    border-radius: 2px;

    &:after {
        content: "";
        opacity: 0;
    }
}

.form-control {
    border: 1px solid #949494;
    border-radius: 2px;

    &:focus {
        border: 1px solid #002857;
        outline: 1px solid #002857;
        box-shadow: none;
    }
}

