/* Variables */
:root {
    --cmbuilder-blue: #2D5F6E;
    --cmk-shade3: #A50C1B;
}

/* Constant styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scale: 0.85;
}

body {
    font-family: Calibri;
    background: #f5f7fb;
    color: #222;

    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

h1 {
    font-weight: 700;
    font-size: 32px;
}

h3 {
    font-weight: 300;
    font-size: 24px;
    line-height: 32px;
}

h4 {
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
}

/* Page container */
.landing-page {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0;

    aspect-ratio: 45/32;
    width: 100%;
    height: 100vh;
    max-width: 1440px;
    min-width: 350px;
    margin-left: auto;
    margin-right: auto;

    padding: 2% 4% 2% 4%;
}

.top-container {
    display: flex;
    align-items: flex-start;

    width: 100%;
    padding-top: 2%;
    padding-bottom: 2%;
}

.top-container img {
    display: flex;
    width: 12%;
}

.bottom-container {
    display: flex;
    flex: 10;
    width: 100%;
}

.left-container {
    flex: 65;
}

.right-container {
    flex: 35;
}

/* Toast at page top */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--cmbuilder-blue);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Left container */
.left-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5%;

    margin-right: 2%;
}

#title_colour {
    color: var(--cmbuilder-blue);
}

/* Left Container > Button Group*/
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

button,
.redirect-btn {
    text-decoration: none;
    font-size: 1rem;
    border-radius: 24px;
    padding: 8px 16px 8px 16px;

    cursor: pointer;
    transition: 0.2s ease;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.copy-btn {
    font-family: Calibri;
    background: #FFF;
    color: var(--cmbuilder-blue);
    border-color: var(--cmbuilder-blue);
}

.copy-btn:hover {
    background: var(--cmbuilder-blue);
    color: #fff;
}

.redirect-btn {
    background: var(--cmbuilder-blue);
    color: #fff;
}

.redirect-btn:hover {
    background: #222;
}

/* Left Container > Card Group */
.card-group {
    display: flex;
    justify-content: flex-start;
    gap: 3%;
    padding-right: 5%;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;

    border-radius: 2px;
    padding: 16px 8px 16px 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.25);
}

.card-title {
    display: flex;
    justify-content: flex-start;
}

.card-title p {
    margin-left: 2px;

    font-size: 18px;
    font-weight: 700;
}

.card .icon {
    width: 16px;
}

#i-checklist {
    background-color: var(--cmbuilder-blue);
    mask: url(https://resources.cmcore.io/images/GeneralLayout/GENERAL_L_Checklist.svg) no-repeat center / contain;
}

#i-time {
    background-color: var(--cmk-shade3);
    mask: url(https://resources.cmcore.io/images/GeneralLayout/GENERAL_L_Time.svg) no-repeat center / contain;
}

#right-card .card-title {
    color: var(--cmbuilder-blue);
}

#left-card .card-title {
    color: var(--cmk-shade3);
}

.list-item {
    display: flex;
    justify-content: flex-start;
}

.list-item img {
    width: 5%;
}

.list-item p {
    margin-left: 10px;
}


/* Right container */

.right-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40vw;
}

.img-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    background-color: #66AEB966;
    overflow: hidden;
}

.img-container img {
    width: 115%;
    height: 100%;
}

@media (max-width: 920px) {
    .landing-page {
        margin-top: 2%;
    }

    .top-container img {
        width: 25%;
    }

    .top-container {
        margin-bottom: 4vh;
    }

    .bottom-container {
        flex-direction: column;
        justify-content: flex-start;
        gap: 30px;
        flex: 0;
    }

    .left-container,
    .right-container {
        max-width: 100%;
        flex: 0;
    }

    .left-container {
        gap: 30px;
        justify-content: flex-start;
    }

    .right-container {
        width: 100%;
    }

    .img-container img {
        width: 80%;
    }

    .card-group {
        padding-right: 0;
    }

    .card {
        padding: 24px 16px 24px 16px;
    }
}

@media (max-width: 520px) {
    .top-container img {
        width: 40%;
    }

    .button-group {
        flex-direction: column;
    }

    .card-group {
        flex-direction: column;
    }

    .card {
        padding: 24px 16px 24px 16px;
    }

    #left-card {
        height: 20vh;
    }

    .right-container {
        display: none;
    }
}