@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

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

html, body {
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(to bottom, rgba(5, 56, 107, 0.80), rgba(92, 219, 149, 0.80));
    background-size: cover;
    background-position: center;
    padding-top: 35px;
    overflow-x: hidden;
    height: auto !important;
    font-family: 'Poppins', sans-serif;
    
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
    margin-bottom: 0;
    background-color: #05386B;
    box-shadow: 0 0 30px rgba(0, 0, 0, .2);
}

#scrollToTop {
    position: fixed;
    top: 440px;
    right: 14px;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: #05386B;
    color: white;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 30px;
    cursor: pointer;
    z-index: 999;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background-image: url("up.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.alt-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
    margin-bottom: 0;
    background-color: #05386B;
    box-shadow: 0 0 30px rgba(0, 0, 0, .2);
}

.alt-nav a {
    position: relative;
    font-size: 1em;
    color: #5CDB95;
    text-decoration: none;
    font-weight: 300;
    display: inline-block;
}

.navigation a {
    position: relative;
    font-size: 1.1em;
    color: #5CDB95;
    text-decoration: none;
    font-weight: 500;
    margin-left: 40px;
}

.logo {
    font-size: 1.5em;
    color: #5CDB95;
    user-select: none;
}


.content-wrap {
    padding-bottom: 2.5rem;
}

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    height: 2.5rem;
    background-color: #05386B;
    text-align: center;
    color: #5CDB95;
}

.navigation a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: #5CDB95;
    border-radius: 5px;
    transform-origin: right;
    transform: scaleX(0);
}

.navigation a:hover::after {
    transform-origin: left;
    transform: scaleX(1);

}

.navigation .btnLogin-popup {
    width: 130px;
    height: 50px;
    background: transparent;
    border: 2px solid #5CDB95;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    color: #5CDB95;
    font-weight: 500;
    margin-left: 40px;
}

.alt-nav .btnLogin-popup {
    width: 130px;
    height: 50px;
    background: transparent;
    border: 2px solid #5CDB95;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    color: #5CDB95;
    font-weight: 500;
    margin-left: 40px;
}

.btnLogin-popup:active {
    transform: translate(0em, 0.2em);
}

.btnLogin-popup:hover {
    background-color: #5CDB95;
    color: #05386B;
}

.btnLogout {
    width: 130px;
    height: 50px;
    background: transparent;
    border: 2px solid #5CDB95;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    color: #5CDB95;
    font-weight: 500;
    margin-left: 40px;
    display: inline-block;
}

.btnLogout:active {
    transform: translate(0em, 0.2em);
}

.btnLogout:hover {
    background-color: #5CDB95;
    color: #05386B;
}

.wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 567px;
    background: transparent;
    border: 2px solid #05386B;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(0, 0, 0, .5);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
}

.wrapper.active {
    opacity: 1;
    pointer-events: auto;
    overflow: hidden;
}

.wrapper .form-box {
    width: 100%;
    padding: 40px;
    padding-left: 40px;
    padding-right: 40px;
}

.wrapper .form-box.register {
    position: absolute;
    transform: translateX(400px);
}

.wrapper.active .form-box.register {
    transform: translateX(0);
    z-index: 1000;
}

.wrapper .icon-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    background: #05386B;
    font-size: 2em;
    color: #5CDB95;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 20px;
    cursor: pointer;
    z-index: 100000;
    background-image: url("close.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-size: 50%;
}

.form-box h2 {
    font-size: 2em;
    color: #05386B;
    text-align: center;
}

.input-box {
    position: relative;
    width: 100%;
    height: 30px;
    margin: 30px 0;
}

.input-box label {
    position: absolute;
    top: -1x;
    left: 5px;
    transform: translateY(-100%);
    font-size: 1em;
    color: #05386B;
    font-weight: 300;
    pointer-events: none;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    color: #05386B;
    font-weight: 600;
    padding: 0 35px 0 5px;
    border-bottom: 2px solid #05386B;
}

.logocontainer {
    background-color: #5CDB95;
    height: 40vh;
    background-image: linear-gradient(to bottom, rgba(5, 56, 107, 0.80), rgba(92, 219, 149, 0.80));
    display: flex;
    align-items: center;
    border-bottom: 1px solid #05386B;
}

.logocontainer::after {
    content: "";
    background-image: url('headerlogo.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    width: 100%;
    height: 101%;
}

.wrapper.active .form-box.login {
    transform: translateX(-400px);
}

#password+span {
    color: #05386B;
}

.login-register {
    font-size: .9em;
    color: #05386B;
    text-align: center;
    font-weight: 500;
    margin: 25px 0 10px;
}

.login-register p {
    color: #05386B;
    text-decoration: none;
    font-weight: 600;
}

.login-register a {
    color: #05386B;
    text-decoration: underline;
    font-weight: 600;
}

.login-register p a:hover {
    color: #5CDB95;
}

.login-register-message {
    text-align: center;
    white-space: pre-line;
    color: #5CDB95;
    font-size: 100%
}

.formwrapper {
    display: inline-block;
}

.btn {
    padding: 0.8em 1.8em;
    border: 2px solid #05386B;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    display: block;
    background-color: transparent;
    text-align: center;
    text-transform: uppercase;
    font-size: 16px;
    transition: .3s;
    z-index: 1;
    font-family: inherit;
    color: #05386B;
}

.btn::before {
    content: '';
    width: 0;
    height: 300%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    background: #05386B;
    transition: .5s ease;
    display: block;
    z-index: -1;
}

.btn:hover::before {
    width: 105%;
}

.btn:hover {
    color: #5CDB95;
}

.btn:active {
    transform: translate(0em, 0.2em);
}

::-webkit-scrollbar {
    width: 10px;
    overflow: hidden;
}

::-webkit-scrollbar-track {
    background: #5CDB95;
    border-left: 1px solid rgba(5, 56, 107, 0.5);
}

::-webkit-scrollbar-thumb {
    background: #05386B;
}

::-webkit-scrollbar-thumb:hover {
    background: #5CDB95;
}

@media (max-width: 850px) {
    .navwrap {
        display: none;
    }
    #scrollToTop {
        display: none;
    }

    .hide {
        display: none;
    }

    .wrapper {
        background-color: #5CDB95;
        background-image: linear-gradient(to bottom, rgba(5, 56, 107, 0.80), rgba(92, 219, 149, 0.80));
    }

    body {
        padding-top: 10px;
    }

}

@media (min-width: 850px) {
    .navwrap-smaller-screen {
        display: none;
    }

}

@media (max-width: 200px) {
    .navwrap-smaller-screen {
        font-size: 0.7em;
    }
}

.message-form {
    width: 400px;
    margin-top: 38px;
    display: inline-block;
}

.message-container {
    background-color: transparent;
    box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.2);
    width: 900px;
    height: 527px;
    margin-top: 0px;
    overflow: auto;
    border: 2px solid;
    border-image: linear-gradient(to left, #05386B, #5CDB95) 1;
}

h1 {
    color: #05386B;
    font-size: 40px;
    text-align: center;
    margin-top: 50px;
}

#sent,
#deleted,
#errorsending,
#errordeleting {
    display: none;
    color: #05386B;
    font: inherit;
    text-align: center;
}

.welcome-message {
    flex-grow: 1;
    min-height: 450px;
}

.delete-message-btn {

    position: absolute;
    top: 0;
    left: 11px;

}

.delete-message-btn button {
    color: #5CDB95;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    border-bottom: 1px solid #5CDB95;

}

.delete-message-btn:active {
    color: #05386B;
    transform: translate(0em, 0.2em);

}

.delete-message-btn button:hover {
    color: #05386B;
    border-bottom: 1px solid #05386B;
}

#message {
    width: 390px;
    height: 100px;
    font-family: verdana;
    font-size: 16px;
    margin-bottom: 20px;
    background-color: transparent;
    display: inline-block;
}
.box {
    height: auto;
    background: transparent;
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding: 10px;
    backdrop-filter: blur(20px);
    border-top: 0.14rem solid;
    border-image: linear-gradient(to left, #05386B, #5CDB95) 1;
    bottom: 5px;
    right: 5px;
}
.box p {
    margin: 5px 0;
    text-align: left;
    word-wrap: break-word;
    color: #05386B;
}

.box p:first-child {
    color: #5CDB95;
    font-weight: bold;
    text-align: center;
    position: relative;
    font-size: 1rem;
    border-bottom: 2px solid;
    border-image: linear-gradient(to left, #5CDB95, #05386B) 1;
    bottom: 10px;
}

.box p:nth-child(3) {
    color: #5CDB95;
    position: absolute;
    top: 5px;
    right: 13px;
    font-size: 0.9em;
}

::-webkit-scrollbar {
    width: 10px;
    overflow: hidden;
}

::-webkit-scrollbar-track {
    background: #5CDB95;
    border-left: 1px solid rgba(5, 56, 107, 0.5);
}

::-webkit-scrollbar-thumb {
    background: #05386B;
}


.page-contrainer {
    flex-grow: 1;
    min-height: 600px;
    width: 100%;
    background-color: black;
}

.chat-footer {
    position: relative;
    bottom: 0;
    width: 300%;
    height: 60px;
    background-color: #05386B;
    text-align: center;
    color: #5CDB95;
    right: 554px;
}

.no-resize {
    resize: none;
}

.send-msg-btn {
    padding: 8px 16px;
    margin-right: 10px;
    background-color: #5CDB95;
    color: #05386B;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.send-msg-btn:hover {
    padding: 8px 16px;
    margin-right: 10px;
    background-color: #05386B;
    color: #5CDB95;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.send-message-container {
    padding-bottom: 25px;
}

@media (max-width: 850px) {
    .message-container {
        background-color: transparent;
        box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.2);
        width: 400px;
        height: 527px;
        margin-top: 0px;
        overflow: auto;
        border: 2px solid;
        border-image: linear-gradient(to left, #05386B, #5CDB95) 1;
    }

    #message {
        width: 390px;
        height: 100px;
        font-family: verdana;
        font-size: 16px;
        margin-bottom: 20px;
        background-color: transparent;
        display: inline-block;
    }

    h1 {

        color: #05386B;
        font-size: 1.7rem;
        text-align: center;
        margin-top: 50px;
    }

    .box p:first-child {
        color: #5CDB95;
        text-align: center;
        position: relative;
        font-size: 0.9rem;
        border-bottom: 2px solid;
        border-image: linear-gradient(to left, #5CDB95, #05386B) 1;
        bottom: 10px;
    }

    .box p:nth-child(3) {
        color: #5CDB95;
        position: absolute;
        top: -21px;
        left: 6px;
        font-size: 0.7em;
    }


    .delete-message-btn {
        position: absolute;
        left: 5px;
        top: 2px;
    }

    .delete-message-btn button {
        color: #5CDB95;
        background-color: transparent;
        border: none;
        outline: none;
        cursor: pointer;
    }
}
