main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100px;
    height: 70px;
    margin-top: 15vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background: transparent;
    align-items: end;
}

.bar {
    width: 18px;
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(
        to right,
        #0057DA 0%,
        #091C4E 50%,
        rgba(255, 255, 255, 0.38) 100%
    );
    bottom: 0;
    transition: height 0.25s ease-out;
}
.bar.size_one {height: 25%;}
.bar.size_two {height: 50%;}
.bar.size_three {height: 75%;}
.bar.size_four {height: 100%;}

.username {
    margin-top: 0.5rem;
    color: white;
    font-size: 0.9rem;
}

.chat_box {
    width: calc(100% - 1rem);
    height: 30vh;
    background-color: rgba(255, 255, 255, 0.05);
    margin-top: 1rem;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    resize: none;
    outline: none;
}

.chat_box::placeholder {
    color: white;
    text-align: center;
    font-style: italic;
    opacity: 0.8;
}

.action_buttons {
    display: flex;
    gap: 10vw;
    margin-top: 1rem;
}

.action_btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: radial-gradient(circle, #091C4E 0%, #08132F 100%);
    cursor: pointer;
}
.action_btn.active {
    background: radial-gradient(circle,#08132F 0%, #0F2B71 100%);
}

.action_btn span {
    font-size: 2.2em;
}

.action_btn_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.action_label {
    color: white;
    font-size: 0.8rem;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 1rem;
}

.footer_btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(8, 19, 47, 0.95);
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.overlay.open {
    transform: translateX(0);
}

.overlay_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    flex-shrink: 0;
}

.overlay_header h2 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.close_btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

.close_btn span {
    font-size: 1.5rem;
}

.overlay_content {
    flex: 1;
    overflow-y: auto;
    padding: 0 1rem 1rem;
}

.message {
    margin-bottom: 1rem;
}

.message_author {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.message_text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.4;
}

.message_user .message_author,
.message_user .message_text {
    color: #F1C177;
}

/* Left overlay */
.overlay_left {
    transform: translateX(-100%);
}

.overlay_left.open {
    transform: translateX(0);
}

/* Profile card */
.profile_card {
    text-align: center;
    margin-bottom: 1rem;
}

.profile_image {
    width: 120px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.profile_name {
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.profile_traits {
    color: white;
    font-weight: 700;
    font-size: 0.6rem;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.profile_info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.65rem;
}

/* Links section */
.links_section {
    text-align: left;
}

.links_title {
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.quick_link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.65rem;
    padding: 0.4rem 0;
}
.quick_link p {
    text-decoration: underline;
}

.link_icon {
    width: 22px;
    height: 22px;
    background-color: #0057DA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.link_icon span {
    font-size: 0.85rem;
    color: white;
}

.link_icon:not(:has(span)) {
    font-weight: 700;
    font-size: 0.65rem;
    color: white;
}

/* Legal links */
.legal_links {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.legal_link {
    color: white;
    text-align: center;
    margin-top: 0.5vh;
    text-decoration: underline;
    font-size: 0.6rem;
}

/* Image overlay */
.overlay_image {
    transform: scale(0);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.overlay_image.open {
    transform: scale(1);
    opacity: 1;
}

.overlay_actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action_icon_btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

.action_icon_btn span {
    font-size: 1.5rem;
}

.image_content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 1rem;
    overflow: hidden;
}

#overlay_img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease-out;
    user-select: none;
    -webkit-user-drag: none;
}

#overlay_img.rotated {
    max-width: calc(100vh - 8rem);
    max-height: calc(100vw - 2rem);
}

/* Image link in text */
.image_link {
    color: white;
    text-decoration: underline;
    cursor: pointer;
}


#gohome {
    font-size: 0.8rem;
}

#gohome span {
    font-size: 1rem;
    line-height: 1.7;
}
/* Responsive - Desktop */
@media (min-width: 1200px) {
    
/* Header z-index */
header {
    position: relative;
    z-index: 200;
}
    body {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        overflow: hidden;
        padding: 0;
    }

    header {
        position: fixed;
        top: 1rem;
        left: 1rem;
    }

    footer {
        display: none;
    }

    main {
        flex: 1;
        order: 2;
        max-width: 50%;
        min-width: 0;
        padding: 1rem;
    }
    .action_buttons {margin-top: 10vh;gap: 3vw;}
    .chat_box {
        width: 80%;
        max-width: 100%;
    }

    /* Side panels */
    .overlay_left,
    #history_overlay {
        position: relative;
        transform: none !important;
        width: 20vw;
        flex-shrink: 0;
        opacity: 0.2;
        transition: opacity 0.3s ease-out;
        background-color: transparent;
        height: 100vh;
        overflow: hidden;
    }

    .overlay_left:hover,
    #history_overlay:hover {
        opacity: 1;
    }

    .overlay_left {
        order: 1;
    }

    #history_overlay {
        order: 3;
    }

    #history_overlay .overlay_content {
        overflow-y: auto;
        height: calc(100vh - 4rem);
    }

    .overlay_left .overlay_content {
        overflow-y: auto;
        height: calc(100vh - 4rem);
    }

    .overlay_left .close_btn,
    #history_overlay .close_btn {
        display: none;
    }

    /* Desktop sizes */
    .profile_image {
        width: 180px;
        margin-bottom: 1rem;
    }

    .profile_card {
        margin-bottom: 2rem;
    }

    .profile_name {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .profile_traits {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .profile_info {
        font-size: 0.85rem;
    }

    .links_title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .quick_link {
        font-size: 0.9rem;
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    .link_icon {
        width: 30px;
        height: 30px;
    }

    .link_icon span {
        font-size: 1.2rem;
    }

    .link_icon:not(:has(span)) {
        font-size: 0.9rem;
    }

    .legal_links {
        margin-top: 2rem;
    }

    .legal_link {
        font-size: 0.8rem;
    }

    .action_btn {
        width: 85px;
        height: 85px;
    }

    .action_btn span {
        font-size: 2.5rem;
    }

    .action_label {
        font-size: 1rem;
    }

    .chat_box {
        font-size: 1rem;
        height: 35vh;
    }

    .username {
        font-size: 1.1rem;
    }

    .message_author {
        font-size: 1rem;
    }

    .message_text {
        font-size: 0.95rem;
    }
}
