html {
    scroll-behavior: smooth;
}
      
body {
    font-family: "Work Sans", sans-serif;
    color: #000;
    overscroll-behavior: contain;
    font-size: 19px;
}

smaller {
    font-size: 70%;
}

hlight {
    color: #ff6c1e;
    padding: 2px 3px;
    background:rgba(255,182,164,0.5);
}

a.no_light {
    color: black;
    padding: 0;
    background: none;
}

orange {
    color: #ff6c1e;
}

table {
    display: table;
    padding: 1rem;
}

td, th {
    border-color: #000;
}
/* 
td:nth-child(even) {
    background: white;
} */

th {
    font-weight: 500;
    color: #ff6c1e;
}

.app-container {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    width: 350px;
    height: calc(90vh - 80px);
    background-size: contain;
    background-position: 0 calc(80vh - 75px);
    background-repeat: no-repeat;
    animation: pulse 2s infinite;
    overflow-y: scroll;
    overflow-x: hidden;

    .message {
        small {
            font-size: 18px;
        }

        smaller {
            font-size: 13.6px;
        }
        .btn {
            height: 40px;
            padding: 8px 7px 0;
            width: 40px;
            animation: none;

            img {
                width: 16px;
            }
        }
    }
    
}

.app-container::-webkit-scrollbar {
    display: none;
  }
  
  /* Hide scrollbar for IE, Edge and Firefox */
  .app-container {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }

.site-container {
    display: flex;
    flex-direction: column;
}
.header {
    padding: 2rem;
    background: #f9ea61;
    width: 100%;
    min-height: 70px;
    top: 0;
    a {
        color: black;
        font-weight: 400;
    }
}
.banner {
    margin: 0;
    background-color: black;
    color: white;

    h1, h3 {
        margin: 0;
    }

    h3 {
        font-size: 21px;
    }

    p {
        margin: auto 0;
        text-align: left;
    }
}

.banner--white.area--dots {
    background-image: url('https://ctgl.ink/alfie-dots.svg');
    background-position: bottom right;
    background-repeat: no-repeat;
    background-size: 40%;
    background-color:rgba(255, 255, 255,0.85);
    background-blend-mode: screen;
    
}

.banner--wave {
    /* background-image: url('https://ctgl.ink/orange-alfie-wave.svg'); */
    background-position-y: bottom;
    background-repeat: repeat-x;
    background-size: 12%;
    
}


.banner--white {
    color: black;
    background-color: white
}

.banner--whitesmoke {
    color: black;
    background-color: whitesmoke
}

.banner--gradient {
    color: black;
    background-image: linear-gradient(90deg, #ff6c1e 0%, #ff6c1e 33%, #f9ea61 100%);
    a {
        background-color: rgba(255,255,255,0.95);
    }
}

.banner.banner--gutter {
    padding-bottom: 4.5rem;
}

pillar {
    display: block;
    height: 8rem;
    width: 0.5rem;
    background-image: linear-gradient(135deg, #ff6c1e 0%, #ff6c1e 33%, #fff 100%);
}

.ig_gradient {
    display: inline-block;
    background-image: linear-gradient(55.01deg, #ff7a00 12.35%, #ff0169 56.52%, #d300c5 100%);
    background-clip: text;
    color: transparent;
    width: max-content;
    text-decoration: none;
    vertical-align: top;
    font-weight: 400;
}

.tiktok_gradient {
    position: relative;
    display: inline-block;
    color: white;
    width: max-content;
    text-decoration: none;
    vertical-align: top;
    z-index: 0;
    -webkit-text-stroke: 0.25px #05edd9;
}

.banner--yellow {
    color: black;
    background-color: #f9ea61;
}

.banner--whitesmoke,
.banner--gradient,
.banner--yellow
 {
    h1 {
        font-size: 4.6rem;
        letter-spacing: -0.25rem;
    }
}

.banner, .section {
    padding: 1rem 2rem;
}

.section {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
}
.gradient {
    background-image: linear-gradient(90deg, #ff6c1e 0%, #ff6c1e 33%, #f9ea61 100%);
    -webkit-text-stroke: 0.5px #ff572294;
    font-size: 4.6rem !important;
    background-clip: text;
    color: transparent;
    width: max-content;
    sup {
        color: black;
        font-size: 33%;
        top: 1rem;
        vertical-align: top;
    }   
}

.gradient--mini {
    font-size: 21px !important;
}

.move_right {
    margin-left:auto;
}

.space_between {
    justify-content: space-between;
}

.space_evenly {
    justify-content: space-evenly;
}

.typed-out{
    overflow: hidden;
    border-right: 2px solid orange;
    white-space: nowrap;
    animation: 
      typing 11s steps(31, end) forwards,
      blinking 1.2s 10;
    font-size: 1.6rem;
    width: 0;
    max-width: max-content;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}
@keyframes blinking {
  from { border-color: transparent }
  to { border-color: #ff6c1e; }
}

p {
    sup {
        vertical-align: top;
        top: 0.5rem;
        font-size: 20%;
    }
}

.accordion_header {
    background: linear-gradient(85deg, #f5f5f5, #dcdcdc);
    padding: 0.75rem;
    border-radius: 12px;
    margin: 0 0 2rem 1rem;
}
.accordion_body {
    margin: 2rem 0 2rem 2rem;
}

.card {
    margin-bottom: auto;
    background: white;
    padding: 2rem;
    border-radius: 2rem;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0,0,0,.35);
}

.flex_columns {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.flex_gap--2 {
    gap: 2rem;
}

.flex_gap--3 {
    gap: 3rem;
}

.flex_gap--4 {
    gap: 4rem;
}

.flex_gap--5 {
    gap: 5rem;
}

.flex_middle {
    justify-content: center;
}

.dotted-underline,a {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: #ff6c1e;
    text-decoration-thickness: 3px;
}


.margin-left-2 {
    margin-left: 2rem;
}

dev {
    position: fixed;
    left: 550px;
    width: 400px;
    height: calc(90vh - 80px);   
}

pre {
    position: absolute;
    left: 350px;
    width: 400px;
    height: calc(100% - 24px);
    font-size: 12px;
    overflow-y: auto;
}

.tab_title {
    position: absolute;
    top: 1.25rem;
    left: 2rem;
    min-width: 66px;
    color: black;
    z-index: 1000;
    h4 {
        font-weight: 500;
        margin-bottom: 0;
        line-height: 2;
    }
}

.app-menu_content {
    left: 0;
    height: 100%;
    z-index: 999;
}

.chat-history {
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    gap: 4px;
    flex-grow: 1;
    /* scroll to bottom */
    flex-direction: column;
    scroll-behavior: smooth;
}

.chat-history::-webkit-scrollbar{
    display: none;
}

h4 {
    position: relative;
    margin-bottom: 1.5rem;
}

ul {
    li {
        margin: 1.5rem 0;
        padding-left: 1rem;
    }
}

h4::before {
    content: "";
    position: absolute;
    left: 35px;
    bottom: 5%;
    width: 70px;
    height: 6px;
    transform: skew(-12deg) translateX(-50%);
    background: rgba(238, 111, 87, 0.33);
}

.tab_title h4::before {
    content: "";
    position: absolute;
    left: 30px;
    bottom: 5%;
    width: 60px;
    height: 6px;
    transform: skew(-12deg) translateX(-50%);
    background: rgba(238, 111, 87, 0.33);
} 

.number_blocks {
    display: flex;
    margin: 1rem 0;
    gap: 3rem;
    justify-content: space-evenly;
}

.number_block {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    flex-grow: 1;
    /* flex-basis: 0; */
    color: white;
    border-radius: 1rem;
    padding: 1rem;
    font-size: 42px;
    font-weight: 500;
    img {
        display: block;
    }
    p {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 0;
    }
    cursor: pointer;
}

.number_block--white {
    background: #fff;
    color: black;
    border: 1.5px solid black;
}

.number_block--blue {
    background: #97cde1;
    color: black;
    border: 1.5px solid transparent;
    border: 1.5px solid black;
}

.calendar {
    display: flex;
    flex-direction: column;
    width: 48px;
    height: 48px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    left: 0;
    align-self: start;
    color: #ff6c1e;
    border: 1px solid #ddd;

    .calendar__month {
        background-color: #ff6c1e;
        width:100%;
        font-size: 14px;
        text-transform:uppercase;
        text-align:center;
        padding:0;
        text-align: center;
        color: #ffffff;
    }

    .calendar__day {
        text-align:center;
        
        p {
            line-height:1.1;
            padding: 0;
            margin: 0;
            font-size: 24px;
            font-weight: bold;
        }
    }
}

.unread_msgs {
    position: fixed;
    margin-top: 2rem;
    z-index: 1003;
    background-color: #ff6c1e;
    color: white;
    padding: 0.5rem 2rem;
    height: 24px;
    border-radius: 12px;
    width: 190px;
    text-align: center;
    line-height: 1;
    transform: translateX(-95px);
    left: 50%;
}

/* .row .column .row .column .message {
    max-width: 72%;
} */

.message {
    position: relative;
    display: inline-block;
    margin: 10px 0 30px;
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 92%;
    animation: plop 0.3s;
    font-size: 17px;
    h4 {
        position: absolute;
        top: -3.5rem;
        font-weight: 500;
    }
    sup {
        position: absolute;
        left: 0.4rem;
        top: -1rem;
        font-size: 12px;
        color: black;
        width: max-content;
    }

    sub {
        position: absolute;
        right: 0.4rem;
        bottom: -1.5rem;
        font-size: 12px;
        color: black;
        width: max-content;
    }

    subsub {
        position: absolute;
        right: 0.4rem;
        bottom: -6rem;
        width: max-content;
        .btn {
            height: auto;
            padding: 8px 7px;
        }
    }

    .undo__msg {
        position: absolute;
        left: -36px;
    }

    p, h2 {
        margin: 0;
        line-height: 1
    }

    p {
        text-align: right;
    }

    h5:last-child {
        margin: 0;
    }
}

.from-app:after {
    content: '';
    background-image: url('https://ctgl.ink/chat-tail.png');
    background-size: 20px 20px;
    position: absolute;
    z-index: 2;
    bottom: -2px;
    left: -7px;
    height: 20px;
    width: 20px;
    transform: translate(0, -2px) translateZ(-1px);
}

.from-user:after {
    content: "";
    background-image: url('https://ctgl.ink/chat-tail-from-user.png');
    background-size: 20px 20px;
    position: absolute;
    z-index: 2;
    bottom: -2px;
    right: -7px;
    height: 20px;
    width: 20px;
    transform: translate(0, -2px) translateZ(-1px);
}

.from-app:last-child {
    margin-top: auto;
}

.from-app {
    background: #f9ea61;
    color: black;
    align-self: start;
    /* transform-style: preserve-3d; */

    hlight {
        background:#fff;
    }
}

.from-user {
    background: black;
    color: #fff;
}

.column-right {
    text-align: right;
}

.hang_left {
    border-radius: 50%;
    margin-right: -60px;
}

.hang_right {
    border-radius: 50%;
    margin-left: -60px;
}

.side_write {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.row {
    flex-direction: row !important;
}

/* We assume a fixed max character count */
@keyframes plop {
    from { opacity: 0.5; transform: translate(-1rem, 1rem); }
    to { opacity: 1; transform: translate(0); }
}
    
.controls {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: right;
}
.controls input[type="text"] {
    flex: 1;
    padding: 10px;
    border: none;
    border-bottom: 2px solid #ff6c1e;
    outline: none;
    border-radius: 0;
    margin-bottom: 0;
}
.controls input::placeholder {
    color: #a6a6a6;
}
.controls button, .buttons button {
    margin-left: 10px;
    padding: 10px 15px;
    background: white;
    color: black;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: right;
    font-weight: normal;
    text-transform: none;
}

.btn {
    position: relative;
    cursor: pointer;
    color: white;
    background: rgb(255, 108, 30);
    text-align: center;
    border-radius: 7px;
    width: max-content;
    min-width: 40px;
    padding: 7px 22px;
    text-decoration: none;
    box-shadow: 0 0 0 0 rgba(255, 108, 30, 0.75);
    animation: btn_pulse 2s infinite;

    label {
        cursor: pointer;
        margin: auto 0;
        height: max-content;
    }
}

.btn, input {
    min-height: 44px;
    margin: 1.5rem 0
}

.btn--min {
    width: max-content;
}

.btn--white {
    background: #fff;
    color: #ff6c1e;
}

.btn--green {
    background: #127a55;
}

.btn--gradient {
    display: inline-flex;
    justify-content: center;
    vertical-align: middle;
    color: transparent;
    background: none;
    background: linear-gradient(black, black) padding-box,
              linear-gradient(to right, #ff6c1e 0%, #ff6c1e 33%, rgb(249, 234, 97) 100%) border-box;
    border-radius: 50em;
    border: 2.5px solid transparent;
    label {
        background-image: linear-gradient(90deg, #ff6c1e 0%, #ff6c1e 33%, rgb(249, 234, 97) 100%);
        background-clip: text;
        font-weight: 500;
        font-size: 21px;
    }
}

.back-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    background-image: url('back-arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.btn--big {
    padding: 6px;
    height: auto;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 #ff6c1e;
    }
    70% {
        box-shadow: 0 0 0 12px rgba(18,122,85, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(18,122,85, 0);
    }
}

@keyframes btn_pulse {
    0% {
        box-shadow: 0 0 0 0 #ff6c1e;
    }
    70% {
        box-shadow: 0 0 0 6px rgba(18,122,85, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(18,122,85, 0);
    }
}

@keyframes mini_pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(50, 222, 132, 0.6);
    }
    70% {
        box-shadow: 0 0 0 3px rgba(50, 222, 132, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(50, 222, 132, 0);
    }
}


.btn--other {
    background: transparent;
    border: none;
    color: #737373;
}

.btn--right {
    text-align: right;
}

error {
    display: block;
    background: #fbe8e9;
    color: black;
    font-weight: 500;
    border-left: 3px solid red;
    height: 32px;
    padding: 6px;
    margin-bottom: 3px;
}

.loader {
    width: 33px;
    aspect-ratio: 2/1;
    --_g: no-repeat radial-gradient(circle closest-side,#000 90%,#0000);
    background: 
        var(--_g) 0%   50%,
        var(--_g) 50%  50%,
        var(--_g) 100% 50%;
    background-size: calc(100%/3) 50%;
    animation: bounce 1s infinite linear;
    /* transform: scale(50%); */
}

@keyframes bounce {
    20%{background-position:0%   0%, 50%  50%,100%  50%}
    40%{background-position:0% 100%, 50%   0%,100%  50%}
    60%{background-position:0%  50%, 50% 100%,100%   0%}
    80%{background-position:0%  50%, 50%  50%,100% 100%}
}

/* HTML: <div class="spinner"></div> */
.spinner {
    position: absolute;
    right: 13px;
    top: 8px;
    width: 14px;
    padding: 2px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #fff;
    --_m: 
        conic-gradient(#0000 10%,#ff6c1e),
        linear-gradient(#ff6c1e 0 0) content-box;
    -webkit-mask: var(--_m);
            mask: var(--_m);
    -webkit-mask-composite: source-out;
            mask-composite: subtract;
    animation: l3 1s infinite linear;

}

.location__hours {
    display: inline-block;
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 17px;
    height: 33px;
    font-size: 14px;
    font-weight: 600;
    margin: 2rem 0 0;
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    .status {
        display: inline-block;
        height: 12px;
        width: 12px;
        background: red;
        border-radius: 50%;
    }

    .status--green {
        background: #32de84;
        box-shadow: 0 0 0 rgba(50, 222, 132, 0.6);
        animation: mini_pulse 2s infinite;
    }
    
}
@keyframes l3 {to{transform: rotate(1turn)}}

.dot ::marker {
    display: block;
    background: white;
    height: 33px;
    width: 33px;
    font-size: 36px;
}

a {
    color: #ff6c1e
}

a:visited {
    color: #127a55;
}

a:focus, a:hover {
    color: #ff6c1e;
}

medium {
    font-size: 90%;
}
        
  
.app-menu {
    float: right;
    z-index: 999;
    cursor: pointer;
}

.app-keys {
    position: absolute;
    top: 1.75rem;
    left: 2rem;
    z-index: 999;
    cursor: pointer;
    span {
        position: absolute;
        left: 2.25rem;
        top: 50%;
        background: rgba(18,122,85, 0.3);
        height: 17px;
        min-width: 17px;
        width: max-content;
        padding: 2px 5px;
        font-size: 12px;
        font-weight: 600;
        border-radius: 10px;
        text-align: center;
        line-height: 1.1;
        transform: translateY(-7.5px);
    }
}

.from-app--other  {
    background:transparent;
    padding-top:0;
    margin:0;
}

.from-app--other::before {
    content: '';
    background-image: none;
}

@media (max-width: 504px) and (max-width: 504px){
    h1,
    h1.gradient {
        font-size: 3.25rem !important;
    }
    .app-container {
        height: calc(80vh - 80px);
        width: 100%;

        .message {
            small {
                font-size: 15px;
            }

            smaller {
                font-size: 13.5px;
            }
            .btn {
                height: 40px;
                padding: 8px 7px 0;
                width: 40px;
                animation: none;

                img {
                    width: 16px;
                }
            }
        }
    }

    .banner {
        .btn {
            width: 91vw;
            height: 54px;
        }
        p {
            margin-bottom: 2rem;
            font-size: 20px;
            text-align: center;
        }
    }

    .btn--gradient {
        label { font-size: 18px; }
    }


    .card {
        width: 90%;
        max-width: 90%;

        li {
            font-size: 20px;
        }
    }
    
    .flex_columns,
    .number_blocks {
        flex-direction: column;
    }

    .flex_keep {
        flex-direction: row;
    }

    .columns_reverse {
        flex-direction: column-reverse;
    }

    .key_icon {
        width: 40px;
    }

    .move_right {
        margin-left: 0;
    };

    ol.gradient_list li {
        font-size: 3rem;
    }

    .section {
        padding: 0;
    }

    .hang_left, .hang_right {
        margin: -60px 0 0 0;
    }

    .side_write {
        writing-mode: horizontal-tb;
        transform: rotate(0deg);
    }
}

@media (min-width: 1024px) and (min-width: 1024px) {
    .header, .banner {
        padding: 2rem 10rem;
    }
}