@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap");
@import url(https://fonts.googleapis.com/icon?family=Material+Icons);

:root {
    --theme-color: #1c1c1c;
    --primary-color: #0f0;
    --primary-color-brighter: #1dc8ee;
    --primary-color-low-opacity: #151313;
    --compliment-color: #333;
    --accent-color: #d6d4dd;
    --forms-color: #222;
}

/* :root {
	--theme-color: #3b2e2e;
	--primary-color: rgb(240, 234, 233);
	--primary-color-brighter: #1dc8ee;
	--primary-color-low-opacity: #564949;
	--compliment-color: #ebe6e6;
	--accent-color: #1c1c1f;
	--forms-color: #222;
} */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Quicksand", sans-serif;
}

::-webkit-scrollbar
{
    width: 5px;
}
::-webkit-scrollbar-thumb
{
    background: var(--primary-color);
	border-radius: 10px;
}

/* ========================= Snackbar message ========================= */

#error-message {
    visibility: hidden;
    position: fixed;
    top: 100px;
    z-index: 100;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--compliment-color);
    text-align: center;
    font-size: 18px;
}

#error-message.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from { top: 0; opacity: 0; }
    to { top: 100px; opacity: 1; }
}

@keyframes fadeout {
    from { top: 100px; opacity: 1; }
    to { top: 0; opacity: 0; }
}

/* =============================== Body Styles =============================== */

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--theme-color);
    overflow: hidden;
}

/* Section Styles */
section {
    position: absolute;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    overflow: hidden;
}

section::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        var(--theme-color),
        var(--primary-color),
        var(--theme-color)
    );
    animation: animate 5s linear infinite;
}

@keyframes animate {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

section span {
    position: relative;
    display: block;
    width: calc(6.25vw - 2px);
    height: calc(12.25vh - 2px);
    background: var(--primary-color-low-opacity);
    z-index: 2;
    transition: 1.5s;
}

section span:hover {
    background: var(--primary-color);
    transition: 0s;
}

/* =============================== Navbar Styles =============================== */

.header {
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    height: 7%;
    display: flex;
    line-height: 1;
    padding: 0 15px;
    position: fixed;
    align-items: center;
    background-color: var(--theme-color);
    justify-content: space-between;
    border-bottom: solid 1px rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease-in;
    animation: header .75s ease-in-out .1s;
}

@keyframes header {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}

.header .logo-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
}

.header .profile-image {
    width: 36px;
    height: 36px;
    line-height: 0;
    border: solid 1px var(--compliment-color);
    transition: all 0.2s ease-in;
}

.header .profile-image img {
    width: 100%;
    height: 100%;
}

.header .profile-image:hover {
    cursor: pointer;
    border-color: var(--primary-color-brighter);
    box-shadow: 0 0 6px 0 var(--primary-color-brighter);
}

.mmoshii-logo path {
    fill: var(--primary-color);
    transition: fill 0.2s ease-in;
}

.mmoshii-logo:hover {
    cursor: pointer;
}

.mmoshii-logo:hover path {
    fill: var(--primary-color-brighter);
}

.dropdown {
    position: relative;
}
.dropdown .dropdown-content {
    opacity: 0;
    font-size: 12px;
    pointer-events: none;
    position: absolute;
    top: calc(100% - 10px);
    right: 0;
    min-width: 200px;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 80vh;
    color: var(--accent-color);
    background-color: var(--theme-color);
    border: solid 1px var(--primary-color-brighter);
    box-shadow: 0 0 6px 0 var(--primary-color-brighter);
    transition: all 0.2s ease-in;
}
.dropdown .dropdown-content .dropdown-header {
    padding: 15px;
}
.dropdown .dropdown-content .dropdown-toggle {
    transition: all 0.2s ease-in;
}
.dropdown .dropdown-content .dropdown-group {
    border-top: solid 1px var(--compliment-color);
    transition: all 0.2s ease-in;
}
.dropdown .dropdown-content .dropdown-link {
    display: flex;
    text-align: right;
    padding: 10px 15px;
    align-items: center;
    transition: all 0.2s ease-in;
}
.dropdown .dropdown-content .dropdown-link i {
    margin-right: 15px;
    font-size: 18px;
    transition: all 0.2s ease-in;
}
.dropdown .dropdown-content .dropdown-link span {
    transition: all 0.2s ease-in;
}
.dropdown .dropdown-content .dropdown-link:hover {
    cursor: pointer;
    background-color: var(--compliment-color);
}
.dropdown .dropdown-content .dropdown-link:hover span {
    color: var(--primary-color);
}
.dropdown .dropdown-content .dropdown-link.active i {
    color: var(--primary-color);
}
.dropdown.open .dropdown-toggle {
    border: solid 1px var(--primary-color-brighter);
    box-shadow: 0 0 6px 0 var(--primary-color-brighter);
}
.dropdown.open .dropdown-content {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(10px);
}

.nav {
    display: flex;
    align-items: center;
}

.nav .profile-image-wrapper {
    margin-left: 10px;
}

.nav i.dropdown-toggle {
    padding: 5px;
    color: var(--accent-color);
    border: solid 1px transparent;
    transition: all 0.2s ease-in;
}

.nav i.dropdown-toggle:hover {
    cursor: pointer;
    border-color: var(--primary-color-brighter);
    box-shadow: 0 0 6px 0 var(--primary-color-brighter);
}
/* =============================== Form Styles =============================== */
.forms {
    position: absolute;
    background: var(--forms-color);
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 9);
}
.chats {
    left: 68%;
    width: 30%;
    top: 10%;
    height: 88%;
    padding: 0;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    overflow: hidden;
    transition: height 0.3s ease, width 0.3s ease, left 0.3s ease;
}

.dropdown-content.chat-dropdown {
    top: calc(100% + 10px); 
    width: 30vw; 
    border: none; 
    box-shadow: none; 
    right: -20px;
}

.wrapper {
    width: 100%;
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}

.chat-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.chat-area-header {
    display: flex;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 2;
	min-height: 70px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--compliment-color);
}
.chat-area-header i {
    color: var(--accent-color);
    cursor: pointer;
}
.chat-area-profile {
    width: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.chat-area-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-color);
}
.chat-area-main {
    flex-grow: 1;
    overflow-x: hidden;
    padding-top: 10px;
}

.chat-msg-img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-msg-profile {
    flex-shrink: 0;
    margin-top: auto;
    margin-bottom: -20px;
    position: relative;
}

.chat-msg-date {
    position: absolute;
    left: calc(100% + 12px);
    bottom: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-color);
    white-space: nowrap;
}

.chat-msg {
    display: flex;
    padding: 0 20px 45px;
}
.chat-msg-content {
    margin-left: 12px;
    max-width: 70%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.chat-msg-text {
    background-color: #f1f2f6;
    padding: 15px;
    border-radius: 20px 20px 20px 0;
    line-height: 1.5;
    font-size: 14px;
    font-weight: 500;
}
.chat-msg-text + .chat-msg-text {
    margin-top: 10px;
}

.chat-msg-text {
    color: black;
}

.owner {
    flex-direction: row-reverse;
}
.owner .chat-msg-content {
    margin-left: 0;
    margin-right: 12px;
    align-items: flex-end;
}
.owner .chat-msg-text {
    background-color: #0086ff;
    color: #fff;
    border-radius: 20px 20px 0 20px;
}
.owner .chat-msg-date {
    left: auto;
    right: calc(100% + 12px);
}

.chat-msg-text img {
    max-width: 300px;
    width: 100%;
}

.chat-area-footer {
    display: flex;
    width: 100%;
    padding: 10px 20px;
    align-items: center;
    border-top: 2px solid var(--compliment-color);
    background-color: var(--compliment-color);
    position: sticky;
    bottom: 0;
    left: 0;
}

.chat-area-footer i {
	color: var(--accent-color);
    width: 20px;
    flex-shrink: 0;
    cursor: pointer;
	margin-left: 12px;
}

.chat-area-footer input {
    border: none;
    color: var(--accent-color);
    background-color: var(--forms-color);
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
    margin: 0 12px;
    width: 100%;
}
.chat-area-footer input::placeholder {
    color: var(--accent-color);
}

.tools {
    left: 2%;
    width: 65%;
    height: 15%;
    bottom: 2%;
    display: flex;
    flex-direction: column;
    transition: height 0.3s ease, width 0.3s ease;
}

.tools .button-list {
    display: flex;
}

.tools ul {
    list-style: none;
}

.tools li {
    margin: 3px 2px;
    position: relative;
}

.tools button {
    background: none;
    color: #fff;
    padding: 10px 30px;
    font-size: 15px;
    text-transform: uppercase;
    text-decoration: none;
    transition: .5s;
    border: 2px solid #444;
    cursor: pointer;
}

.tools button:hover {
    border-color: var(--clr);
    box-shadow: 0 0 35px var(--clr);
}

.tools button span {
    position: relative;
    z-index: 1;
}

.visual-obj {
    left: 2%;
    width: 65%;
    height: 71%;
    top: 10%;
    padding: 14px;
    transition: height 0.3s ease, width 0.3s ease;
}

.visual-obj iframe {
    position: center;
    width: 100%;
    height: 100%;
    border: 0;
}

@media screen and (max-width: 768px) {
    section span {
        width: calc(12.25vw - 2px);
        height: calc(6.25vh - 2px);
    }
}