:root {
    --principal-green: #038A03;
    --principal-light-gray: lightgray;
    --intro-color: #555555;
    --hard-color: #E30808;
    --medium-color: #003b94;
    --easy-color: #078307;
    --solved-color: #10ab01;
    --solved-background: #e5ffe7;
    --pending-color: #707070;
    --pending-background: #f9f9f9;
    --attempted-color: #00aaff;
    --attempted-background: #f2f9ff;
    --tag-icon-background: #757575;
    --pro-main-color: #7c4dff;
    --pro-text-background-color: #7c4dff26;
    --principal-green-background-color: #038a032b;
}

html {
    scroll-behavior: smooth;
}

body {
    background: white;
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-family: Arial;
    line-height: 1.5;
}

h1, h2, h3 {
    font-weight: normal;
    font-size: unset;
}

button,
button:hover,
button:active,
button:focus,
a,
a:hover,
a:active,
a:focus {
    cursor: pointer;
    border: 0;
    background: transparent;
    font-size: inherit;
    text-decoration: none;
    color: inherit;
}

input {
    outline: 0;
    border: 0;
    font-size: 1rem;
}

#headerLogo {
    width: 50px;
}

#header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    border-bottom: solid 1px var(--principal-light-gray);
    padding: 10px 20px;
    line-height: 1;
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
    column-gap: 20px;
    row-gap: 8px;
}

#headerLinksWrapperLoggedIn,
#headerLinksWrapperLoggedOut {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    column-gap: 20px;
    padding: 0;
    margin: 0;
    font-family: inherit;
    min-width: 0;
}

.headerLink,
.headerLinkPro {
    border: none;
    padding: 10px 5px;
    background: none;
    border-bottom: solid 2px transparent;
    white-space: nowrap;
}

.activeHeaderLink,
.activeHeaderLink:active,
.activeHeaderLink:focus,
.activeHeaderLink:hover,
.headerLink:hover,
.headerLink:focus,
.headerLink:active {
    color: var(--principal-green);
    border-bottom: solid 2px var(--principal-green);
}

.activeHeaderLinkPro,
.activeHeaderLinkPro:active,
.activeHeaderLinkPro:focus,
.activeHeaderLinkPro:hover,
.headerLinkPro:hover,
.headerLinkPro:focus,
.headerLinkPro:active {
    color: var(--pro-main-color);
    border-bottom: solid 2px var(--pro-main-color);
}

#signupHeaderLink {
    padding: 10px 20px;
    border-radius: 100px;
    background: var(--principal-green);
    color: white;
    font-weight: bold;
    border: none;
}

#footerCushion {
    height: 200px;
}

#footer {
    width: 100vw;
    display: grid;
    justify-content: center;
    justify-items: center;
    padding: 20px 0;
    row-gap: 20px;
    background: white;
    border-top: solid 1px var(--principal-light-gray);
    text-align: center;
}

.stickyFooter {
    position: fixed;
    bottom: 0;
}

#footer p {
    padding: 0;
    margin: 0 20px;
}

#privacyTerms {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 20px;
}

#privacyTerms a:hover {
    color: #3333FF;
}

body.proExitOfferPopupShowing {
    overflow: hidden;
}

#proExitOfferPopupBackground {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(20, 12, 45, 0.72);
    backdrop-filter: blur(4px);
}

#proExitOfferPopup {
    position: relative;
    width: min(520px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 42px 42px 32px;
    border: solid 1px rgba(124, 77, 255, 0.35);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(124, 77, 255, 0.22), transparent 42%),
        white;
    box-shadow: 0 24px 80px rgba(17, 8, 43, 0.35);
    color: #21153f;
    text-align: center;
}

#proExitOfferPopupCloseButton {
    position: absolute;
    top: 12px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #625876;
    font-size: 1.8rem;
    line-height: 1;
}

#proExitOfferPopupCloseButton:hover,
#proExitOfferPopupCloseButton:focus {
    background: #f0ebff;
    color: var(--pro-main-color);
}

#proExitOfferPopupEyebrow {
    margin: 0 0 10px;
    color: var(--pro-main-color);
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#proExitOfferPopupDiscount {
    width: fit-content;
    margin: 0 auto 16px;
    padding: 8px 16px;
    border-radius: 100px;
    background: var(--pro-main-color);
    box-shadow: 0 8px 24px rgba(124, 77, 255, 0.28);
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

#proExitOfferPopupTitle {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.2;
}

#proExitOfferPopupMessage {
    margin: 16px 0 20px;
    color: #625876;
    font-size: 1rem;
}

#proExitOfferPopupCountdownWrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border: solid 1px #ded4ff;
    border-radius: 12px;
    background: #f7f4ff;
    color: #625876;
}

#proExitOfferPopupCountdown {
    color: #21153f;
    font-size: 1.2rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

#proExitOfferPopupClaimButton {
    display: block;
    padding: 14px 20px;
    border: solid 2px var(--pro-main-color);
    border-radius: 12px;
    background: var(--pro-main-color);
    box-shadow: 0 10px 26px rgba(124, 77, 255, 0.25);
    color: white;
    font-weight: bold;
}

#proExitOfferPopupClaimButton:hover,
#proExitOfferPopupClaimButton:focus {
    border-color: #5f35d7;
    background: #5f35d7;
    color: white;
}

#proExitOfferPopupLaterButton {
    margin-top: 10px;
    padding: 8px 14px;
    color: #625876;
    text-decoration: underline;
}

#proExitOfferPopupLaterButton:hover,
#proExitOfferPopupLaterButton:focus {
    color: var(--pro-main-color);
}

#proExitOfferPopupFinePrint {
    margin: 8px 0 0;
    color: #867c99;
    font-size: 0.8rem;
}


.inlineLink {
    margin: 0;
    padding: 0;
    color: #3333FF;
}

.globalMessage {
    width: 100vw;
    background: blue;
    color: white;
    display: grid;
    justify-content: center;
    justify-items: center;
    text-align: center;
}

.globalMessage p {
    margin: 10px 20px;
    width: 600px;
    max-width: calc(100vw - 40px);
    font-weight: bold;
}

.globalErrorMessage {
    background: red;
}

.globalInfoMessage {
    background: blue;
}

.globalSuccessMessage {
    background: var(--principal-green);
}

#logoOuterWrapper {
    display: grid;
    grid-template-columns: auto auto;
    align-content: center;
    align-items: center;
    column-gap: 5px;
}

#headerName {
    font-style: italic;
    font-size: 1.2rem;
    font-family: "Times New Roman";
}

@media screen and (max-width: 650px) {
    #logoOuterWrapper {
        grid-template-columns: auto;
    }
    #headerName {
        display: none;
    }
}


@media screen and (max-width: 560px) {
    #headerLinksWrapperLoggedIn,
    #headerLinksWrapperLoggedOut {
        column-gap: 10px;
    }

    #header {
        column-gap: 10px;
        padding: 8px 8px;
    }

    #proExitOfferPopup {
        padding: 38px 22px 24px;
        border-radius: 18px;
    }

    #proExitOfferPopupTitle {
        font-size: 1.5rem;
    }

    #proExitOfferPopupDiscount {
        font-size: 1.5rem;
    }

    #proExitOfferPopupCountdownWrapper {
        align-items: stretch;
        flex-direction: column;
        gap: 2px;
    }

    #headerLinksWrapperLoggedOut #profileHeaderLink {
        display: none;
    }
}

@media screen and (max-width: 400px) {
    #headerLinksWrapperLoggedOut .headerLink {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 360px) {
    #headerLinksWrapperLoggedOut #loginHeaderLink {
        display: none;
    }
}

@media screen and (max-width: 315px) {
    #headerLinksWrapperLoggedOut .headerLink {
        font-size: 0.8rem;
    }
}
