html {
    scroll-behavior: smooth;
}


#orientation-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #a5d8ff;
    z-index: 99995;
    color: #000;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    padding: 1.25rem;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.orientation-content {
    margin-top: 64.1875rem;
    max-width: 25rem;
}

.orientation-content h2 {
    color: #000;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05rem;
}

.orientation-content p {
    color: #000;
    font-size: 0.9rem;
    line-height: 1.4;
}

.phone-icon {
    width: 3.75rem;
    height: 3.75rem;
    margin: 0 auto 1.5rem auto;
    animation: rotate-phone 2s ease-in-out infinite;
    display: block;
}

.phone-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

.screen-wrapper {
    margin-inline: auto;
    margin-block: 2rem;
    border: 2rem solid #222;
    border-radius: 1rem;
    box-shadow: 0 0 3rem rgba(0, 0, 0, 0.7), inset 0 0 2rem rgba(255, 255, 255, 0.05);
    background: linear-gradient(to top left, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    overflow-y: auto;
}

.main-container {
    width: 83.375rem;
    height: 46.875rem;
    background-color: #ffffff;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-inline: auto;
    margin-bottom: 4rem;
    padding: 1.25rem;
    box-sizing: border-box;
}

.grid-column {
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
    height: 100%;
}

.intro-box {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    box-sizing: border-box;
}

.nav-notch {
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20.625rem;
    height: 4rem;
    background: #a5d8ff;
    clip-path: polygon(0 0, 100% 0, 100% 0%, 80% 100%, 20% 100%, 0 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    filter: drop-shadow(0 0 0.0625rem rgba(165, 216, 255, 0.8));
}

.nav-notch::before {
    content: "";
    position: relative;
    top: 0.0625rem;
    left: 0.1875rem;
    right: 0.1875rem;
    bottom: 0.0625rem;
    clip-path: polygon(0 0, 100% 0, 100% 0%, 80% 100%, 20% 100%, 0 0);
    z-index: -1;
    background: #a5d8ff;
}

#forimagine-logo {
    width: 8rem;
    transition: transform 0.2s ease-in-out;
    height: auto;
    display: block;
}

.logo {
    fill: #000000;
    transition: fill 0.3s ease;
}

#forimagine-logo:hover .logo {
    fill: #ffffff;
}

#forimagine-logo:hover {
    transform: scale(1.05);
}

.ticker-wrap {
    white-space: nowrap;
    animation: scroll-ticker 17s linear infinite;
    font-family: 'Arial Narrow', sans-serif;
    font-size: 0.8rem;
    margin-top: 1rem;
    padding-inline: 1rem;
    background-color: #a5d8ff;
    align-items: center;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.125rem;
}

.nav-bar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background-color: #a5d8ff;
    padding: 0.5rem 1rem;
    max-width: 25rem;
    margin: 1rem auto;
    width: 100%;
}

.nav-item {
    color: #000;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s;
    font-size: 0.8rem;
}

.nav-item:hover {
    background-color: #fff;
    border-radius: 0.25rem;
}

.box {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: end;
    font-size: 1rem;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.box video,
.box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.box-overlays {
    background-color: #a5d8ff;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding-inline: 1rem;
    color: #000;
    font-weight: bolder;
    font-size: 0.8rem;
    box-sizing: border-box;
}

.go-to-article {
    color: #000000;
}

.article-title {
    font-size: 1rem;
    color: #000;
}

.box-1 {
    flex: 1;
    overflow: hidden;
}

.box-8-9 {
    flex: 2.1;
    background: radial-gradient(circle at 50% 0%, #222 0%, #000 70%);
    border-radius: 1.875rem;
    border: 0.0625rem solid #333;
    box-shadow: inset 0 0.0625rem 0.0625rem rgba(255, 255, 255, 0.15), 0 1.25rem 3.125rem rgba(0, 0, 0, 0.9);
}

.ticker-card {
    max-width: 25rem;
    margin: 1rem auto 0 auto;
    backdrop-filter: blur(1.25rem);
    -webkit-backdrop-filter: blur(1.25rem);
    padding: 3rem;
    border-radius: 0.5rem;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.loonie-img {
    position: absolute;
    top: 0.5rem;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 0;
    pointer-events: none;
}

.circle-container {
    height: 12.5rem;
    width: 12.5rem;
    background: none;
    border-radius: 50%;
    position: relative;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

#progress-bar {
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, #adff2f, #6bb3ff);
    position: relative;
    transition: height 0.4s ease;
    animation: bar-sway 3s ease-in-out infinite alternate;
}

#progress-bar::before {
    content: "";
    position: absolute;
    top: -0.75rem;
    left: 0;
    width: 100%;
    height: 1.25rem;
    background-repeat: repeat-x;
    background-size: 12.5rem 1.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 20'%3E%3Cpath fill='%23adff2f' d='M0,10 C 100,0 300,20 400,10 L 400,20 L 0,20 Z'/%3E%3C/svg%3E");
    animation: wave-motion 2s linear infinite;
}

.loonie-img2 {
    position: absolute;
    top: 0.5rem;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}

.ticker-card-p2 {
    max-width: 25rem;
    margin: -0.75rem auto 2rem auto;
    backdrop-filter: blur(1.25rem);
    -webkit-backdrop-filter: blur(1.25rem);
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.5);
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ticker-card-p2 h3 {
    color: #fff;
    margin-top: 1.5rem;
    letter-spacing: 0.05rem;
    text-align: center;
}

.cur-highlight {
    text-decoration: underline #adff2f;
    text-underline-offset: 0.25rem;
}

#rate-val {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin: 0;
    text-align: center;
}

.ticker-subtitle {
    font-size: 0.7rem;
    color: #777;
    margin-top: 0.5rem;
    text-transform: uppercase;
    text-align: center;
}

.ticker-timestamp {
    font-size: 0.75rem;
    color: #adff2f;
    margin-top: 0.5rem;
    text-align: center;
}

.box-4 {
    flex: 1;
    border: #a5d8ff 0.0625rem solid;
}

.box-5 {
    flex: 1;
}

.box-6 {
    flex: 1;
}

.box-7 {
    flex: 1;
}

.box-2 {
    flex: 1;
}

.box-3 {
    flex: 1;
}

.box-3 img {
    position: relative;
    width: 100%;
}

.go-arrow {
    font-size: 2rem;
    margin-left: 17rem;
}

.list-link {
    cursor: pointer;
    text-decoration: underline;
}

.list-link:hover {
    color: #cc9967;
}

.no-border {
    border: none;
}

.wings {
    border-top: #a5d8ff 0.0625rem solid;
}

@keyframes scroll-ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes wave-motion {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: -12.5rem;
    }
}

@keyframes bar-sway {
    0% {
        transform: translateX(-0.125rem);
    }

    100% {
        transform: translateX(0.125rem);
    }
}

@keyframes rotate-phone {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-90deg);
    }

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

@media screen and (max-width: 96rem) and (orientation: portrait) {
    #orientation-overlay {
        display: flex;
        opacity: 0.8;
        width: 100%;
        height: 100%;
    }

    body {
        overflow: hidden;
    }
}