@value colors: 'src/common-ui/colors.css';
@value color1, color2, color4, color5, color6 from colors;

.flexLayout {
    display: flex;
    flex-direction: column;
    justify-content: center; /* We need the white box to sit in the middle of the screen */
    height: 100vh;
    overflow: hidden;
}

/* We cant target the body class easily to set a bg color since it shares the layout with the whole extension */
.black {
    width: 100%;
    height: 100vh;
    background: #f6fcfa;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -2;
}

.whiteSpace30 {
    margin-bottom: 30px;
}

.contentBox {
    margin-bottom: 40px;
    margin-top: 20px;
}

.startingPage {
    width: 90%;
    max-width: 900px;
    transition: height 0.5s;
    margin: auto auto;
    display: flex;
    padding: 2em 4em;
    border-radius: 10px;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: space-between;
}

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

.titleContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 30px;
    align-items: center;
    height: 50vh;
    width: 100vw;
}

.title {
    font-weight: 700;
    font-size: 30px;
    color: #3a2f45;
}

.settingsBox {
    margin-top: 20px;
}

.subTitle {
    font-weight: 300;
    font-size: 20px;
    color: #3a2f45;
    margin-top: 10px;
}

.subTitle2 {
    composes: subTitle;
    margin-top: 5px;
}

.settingsContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    margin-top: 30px;
}

.settingsAction {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

.bottomContainer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100vw;
    height: 50vh;
}

.backButtonArea {
    flex: 1;
}

.featureImageArea {
    flex: 3;
    display: flex;
    height: 100%;
    justify-content: center;
}

.featureImageAreaMobile {
    composes: featureImageArea;
    margin-bottom: 0px;
}

.nextButtonArea {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    flex-direction: column;
}

.logoImg {
    width: 50px;
    height: auto;
    margin-bottom: 20px;
}

.logo {
    width: 210px;
    height: 55px;
    display: flex;
    background-size: 100%;
    background-repeat: no-repeat;
    margin: 40px auto -40px auto;
}

.heading1 {
    color: color5;
    font-size: calc(1.3rem + 0.3vh);
    margin: 1rem auto 1rem;
}

.heading2 {
    color: color5;
    font-size: calc(1.1rem + 0.3vw);
    margin: 1rem auto 0.5rem;
}

.text {
    color: #544960;
    margin-bottom: 2rem;
    flex-direction: column;
    margin-top: 20px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

.textLarge {
    font-size: calc(0.8rem + 0.3vw);
    margin: 0 auto 1.5rem;
    color: color4;
}

.placeholder {
    background: color6;
    margin: auto;
    display: inline-flex;
}

.navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.skipContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.onboardingGif {
    height: 100%;
}

.annotationGif {
    composes: onboardingGif;
    margin-top: -50px;
}

.searchGif {
    composes: onboardingGif;
    margin-top: -50px;
}

.sidebarGif {
    composes: onboardingGif;
    margin-top: -50px;
}

.privacyImg {
    composes: onboardingGif;
    margin-top: -50px;
}

.keyboardGif {
    composes: onboardingGif;
    background-size: cover;
    margin-top: -50px;
}

.mobileImg {
    composes: onboardingGif;
}

.backupImg {
    width: 40%;
    margin-bottom: 100px;
}

.floatingImage {
    animation-name: float, scale-in-center;
    animation-duration: 6s, 1s;
    animation-timing-function: ease-in-out, ease;
    animation-iteration-count: infinite, 1;
    width: 210px;
    margin: 1rem auto 2rem;
}

.skipTitle {
    font-size: 1.1rem;
    text-decoration: underline;
    margin-bottom: 0.2rem;
    font-weight: 500;
    z-index: 1;
    display: inline-block;
    position: relative;
    cursor: pointer;

    /* A little underline animation */
    &::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        bottom: 0;
        left: 0;
        background: color2;
        visibility: hidden;
        transform: scaleX(0);
        transition: 0.25s linear;
    }

    &:hover::before,
    &:focus::before {
        visibility: visible;
        transform: scaleX(1);
    }
}

.skipDesc {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.footer {
    display: flex;
    flex-direction: column;
    margin: 20px auto;
    justify-content: space-evenly;
    align-items: center;
}

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

    & > div {
        margin: 0 5px;
    }
}

.skipBtn {
    font-weight: bold;
    color: #3a2f45;
    font-size: 14px;
    border: none;
    background: none;
    cursor: pointer;
}

.skipButton {
    font-weight: bold;
    color: #3a2f45;
    padding: 5px 10px;
    display: flex;
    border-radius: 3px;
    margin-top: 5px;
    font-size: 14px;
    cursor: pointer;

    &:hover {
        background-color: #e0e0e0;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.videoBox {
    margin-bottom: 30px;
    height: 50vh;
    width: 50vw;
    min-width: 600px;
}

/* @media (max-width: 1300px) {
    .videoBox {
        height: 400px;
    }
} */

.videoBox iframe {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.welcomeScreen {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.welcomeText {
    font-size: 24px;
    color: #3a2f45;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.titleText {
    font-size: 24px;
    color: #3a2f45;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.horizontalLine {
    width: 200px;
    border-bottom: 2px solid #00000020;
    margin: 20px 0 40px 0;
}

.betaTag {
    background-color: #ff9494;
    color: #545454;
    padding: 4px 6px;
    border-radius: 3px;
    text-align: center;
    vertical-align: center;
    font-weight: bold;
}

.descriptionText {
    font-size: 16px;
    text-align: center;
    width: 100%;
    font-weight: normal;
}

.shortcutContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin: 40px 0;
}

.shortcutBox {
    display: flex;
    border-radius: 5px;
    box-shadow: 0 2px 3px 2px #e0e0e0;
    margin: 20px;
    flex-direction: column;
    padding: 30px;
    justify-content: center;
    align-items: center;
    width: 350px;
    height: 250px;
}

.shortcutDescriptionBox {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.shortcutDescription {
    font-size: 20px;
    text-align: center;
    width: 100%;
    margin-bottom: 15px;
    font-weight: bold;
}

.shortcutNameBox {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    width: 240px;
}

.shortcutName {
    color: #5cd9a6;
    font-weight: 400;
    font-size: 20px;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.keyboardButton {
    padding: 5px 15px;
    color: #3a2f45;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
    margin: 10px;
    border-radius: 5px;
    background: linear-gradient(145deg, #e6e6e6, #fff);
    box-shadow: 3px 3px 7px #d9d9d9, -3px -3px 7px #fff;
}

.macOptionIcon {
    width: auto;
    height: 24px;
    padding: 4px;
    margin-left: 5px;
}

.tryOutButton {
    & div {
        width: 150px;
        height: 50px;
        font-size: 20px;
        display: flex;
        align-items: center;
    }

    & span {
        font-size: 20px;
    }
}
