/*
 * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
 * See LICENSE in the project root for license information.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', Arial, sans-serif;
}

body {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
}


ul {
    margin: 0;
    padding: 0;
}

.ms-welcome__header {
    padding: 20px 20px 40px;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ms-welcome__header p {
    margin: 0;
}

.ms-welcome__header img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.ms-welcome__main {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-align-items: center;
    align-items: center;
    -webkit-flex: 1 0 0;
    flex: 1 0 0;
    padding: 10px 20px;
}

.ms-welcome__main > h2 {
    width: 100%;
    text-align: center;
}

b, strong {
    font-weight: bold;
}

a {
    color: #0C1042;
}

a:hover, a:focus {
    color: #1B27A2
}

.ms-Button {
    background-color: #808080;
    padding: 8px 16px;
    white-space: nowrap;
    display: inline;
    max-width: 100%;
    border-radius: 4px;
    text-align: center;
    color: #fff;
    border: 0;
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.25rem;
    font-size: .875rem;
    letter-spacing: .0142857143em;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
}

.ms-Button:hover {
    background-color: #404040;
    color: #fff;
}

.ms-Button--primary {
    background-color: #eb534b;
}

.ms-Button--primary:hover {
    background-color: #af170f
}

.ms-Button--secondary {
    background-color: #0C1042;
}

.ms-Button--secondary:hover {
    background-color: #1B27A2
}

#app-body, #not-loaded, #first-run, #alerts, #preview, #preview-multiple, #start, #setup, #none-selected,
#login, #continueSetup, #nextButton, #replyButton, #updateReplyButton, #saveReplyButton, #restoreReplyButton {
    display: none;
}

#first-run.active,
#not-loaded.active,
#none-selected.active,
#app-body.active,
#alerts.active,
#preview.active,
#preview-multiple.active,
#setup.active,
#continueSetup.active,
#login.active,
#start.active {
    display: block;
}

#nextButton.active,
#replyButton.active,
#updateReplyButton.active,
#saveReplyButton.active,
#restoreReplyButton.active {
    display: inline-block;
}

#replyButton {
    margin: 3rem 0 0 0;
}

#preview h3 {
    margin: 1rem 0 0 0;
}

#preview p {
    margin: 0;
}

#preview-multiple ul {
    margin: 0 0 0 1.25rem
}

footer {
    margin-top: auto;
    padding: 20px 20px 75px 20px;
    border-top: 2px solid #ddd;
}

#alerts {
    border: 1px solid;
    padding: 12px 15px;
    border-radius: 4px;
    color: #333;
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.25rem;
    font-size: .875rem;
    letter-spacing: .0142857143em;
    font-weight: 400;
    margin-top: 20px;
    position: relative;
}

#alerts.success {
    background-color: rgb(220 252 231);
    border-color: rgb(21 128 61);
}

#alerts.warning {
    background-color: rgb(254 249 195);
    border-color: rgb(161 98 7)
}

#alerts.error {
    background-color: rgb(254 226 226);
    border-color: rgb(185 28 28);
}

#alerts .close {
    position: absolute;
    top: 3px;
    right: 3px;
    border: 0;
    padding: 2px;
    background: none;
    z-index: 2;
    cursor: pointer;
}

#alerts .close span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

#alerts svg {
    fill: #333;
    height: 20px;
    width: 20px;
}

#setup #login div {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: start;
}

#setup div .ms-Button {
    display: flex;
    align-content: center;
    gap: .5rem;
}

#setup div .ms-Button svg {
    fill: #fff;
    height: 20px;
    width: 20px;
}

#start div {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    justify-content: flex-start;
}

.loader {
    display: block;
    flex: none;
    fill: transparent;
    width: 2rem;
    height: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
