:root {
    --login-form-gap: 17px;
    --main-background: #e2d3c7;
    --new-post-background: #e7ba97;
    --button-border: #ff8762;
    --button-background: #f1a86b;
    --login-border: #e3a693;
    --login-background: #ecc29e;
    --post-border: #dfb59a;
    --post-background: #f0ceb1;
    --navbar-black: #222;
    --navbar-border: #ff8762;
    --edit-background: #ecd0b9;
}

body {
    width: 100%;
    margin: 0;
    font-family: Outfit;
    background-color: var(--main-background);
}

#post-text-container {
    background-color: var(--new-post-background);
    position: fixed;
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 75vw;
    box-sizing: border-box;
    height: fit-content;
    padding: 10px 8px;
    bottom: 0;
    border-top: 2px solid var(--navbar-border);
    min-height: 70px;
}

#new-post-text {
    font-size: 22px;
    flex-grow: 100;
    display: block;
    background-color: var(--login-background);
    border: 2px solid var(--button-border);
    border-radius: 5px;
    padding: 4px 5px;
    max-height: 35dvh;
    overflow: scroll;
    margin: auto;
}

#new-post-text, textarea.post-text {
    font-family: Outfit, sans-serif;
    background-color: var(--login-background);
    border: 2px solid var(--button-border);
    border-radius: 5px;
    resize: none;
    overflow: scroll;
    min-height: fit-content;
}

textarea.post-text {
    max-height: 25dvh;
}

#post-text-container button {
    font-size: 26px;
    max-width: 200px;
    width: 15%;
    background-color: var(--button-background);
    border: 2px solid var(--button-border);
    border-radius: 10px;
    padding: 4px 0;
    cursor: pointer;
    height: 45px;
    margin: auto auto 0;
}

#post-text-container button, #new-post-text {
    font-family: Outfit;
}

nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    width: 25%;
    left: 75%;
    height: 100vh;
    border-left: 2px solid #ff8762;
    background: linear-gradient(-45deg, #e79f89 0%, #ddb785 100%);
    padding: 0;
    overflow: hidden;
    transition: none;
    z-index: 1000;
}

#hamburger {
    display: none;
}

nav h1, nav a {
    font-family: "Outfit";
    margin: 10px auto;
    width: fit-content;
}

nav h1 a {
    text-decoration: none;
    color: var(--navbar-black);
}

nav header {
    margin-top: 10px;
    margin-bottom: 20px;
}

.buttons a {
    border-radius: 10px;
    padding: 7px;
    background-color: var(--button-background);
    width: 90%;
    text-align: center;
    text-decoration: none;
    font-size: 20px;
    border: 2px solid var(--button-border);
    cursor: pointer;
    color: var(--navbar-black);
}

.buttons {
    display: flex;
    flex-direction: column;
    margin: 0 10px;
}

.only-session {
    display: none;
}

form {
    margin: 0 auto;
    padding: 15px;
    border: 2px #0003 solid;
    border-radius: 15px;
    width: 70%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
}

form label {
    font-size: 18px;
    display: block;
    height: 1.25em;
    transition: height 0.3s ease;
}

form label:has(span.login-error:not(.opacity-hidden)) {
    height: auto;
    max-height: 2.6em;
}

#no-account-a {
    color: #1838d3;
    z-index: 10;
    width: fit-content;
}

form .login-error {
    font-size: 16px;
    margin-left: 5%;
    color: red;
    transition: opacity 0.3s;
}

form .login-error.opacity-hidden {
    opacity: 0;
}

#captcha-error {
    margin: 12px auto 2px;
    transition: margin 0.3s ease;
}

#captcha-error.login-error.opacity-hidden {
    margin-top: -16px;
    margin-bottom: 0;
    cursor: default;
}

form input, #submit {
    border-radius: 5px;
}

form input {
    margin-bottom: 10px;
    font-size: 20px;
    border: var(--login-border) 2px solid;
    background-color: var(--login-background);
}

form input[disabled], form label.disabled-label {
    opacity: 0;
    margin-top: -30px;
    margin-bottom: 0;
}

#submit {
    display: block;
    border: var(--button-border) 2px solid;
    background-color: var(--button-background);
    width: 75%;
    height: min-content;
    font-size: 24px;
    font-family: Outfit;
    padding: 5px 0;
    margin: 15px auto 0;
    cursor: pointer;
}

#g_id_signin {
    margin: 5px auto;
}

.g-recaptcha {
    margin: 10px auto 0;
}

main {
    width: 75%;
    display: flex;
    position: fixed;
    gap: 10px;
    flex-direction: column;
    padding: 15px 0 15px;
    justify-content: start;
    max-height: calc(100dvh - 100px);
    overflow: scroll;
    scrollbar-width: 0;
}

#col1, #col2 {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 50%;
}

main h1 {
    margin: 50px auto var(--login-form-gap);
    font-weight: 500;
    font-size: 42px;
}

main h2 {
    margin: var(--login-form-gap) auto;
    font-weight: 400;
}

form h2 {
    margin-top: 0;
}

.pfp {
    height: 100%;
    border-radius: 50%;
}

.edit-button, .delete-button, .cancel-button {
    height: 80%;
    margin: auto 6px;
    cursor: pointer;
}

.edit-button {
    margin-left: auto;
}

.username {
    margin: auto 0 auto 10px;
    height: min-content;
    font-size: 22px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.timestamp {
    color: #414141;
    font-size: 16px;
    margin: auto 4px;
    height: 75%;
    height: 16px;
}

.post-header, #nav-profile {
    display: flex;
    height: 40px;
}

.post-header {
    width: 100%;
}

#nav-profile {
    margin: 5px auto;
    display: none;
}

#nav-profile h2 {
    font-size: 18px;
}

#no-post-p {
    font-size: 20px;
    margin: 20vh 0;
    width: calc(100%-200px);
    padding: 0 100px;
    text-align: center;
    display: none;
}

.post {
    height: fit-content;
    min-width: 97%;
    box-sizing: border-box;
    border-radius: 20px;
    border: 2px var(--post-border) solid;
    padding: 10px;
    background: var(--post-background);
    margin: 0 1.5%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-text {
    margin: 8px 4px;
    font-size: 24px;
}

textarea.post-text {
    background-color: var(--edit-background);
    border: 2px solid var(--login-border);
}

.post-heart {
    position: relative;
    margin: auto 5px;
    width: 35px;
    cursor: pointer;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    height: 40px;
}

.heart-wrapper {
    display: flex;
    width: min-content;
}

.heart-wrapper p {
    margin: auto 0;
    font-size: 26px;
    font-family: Outfit;
}

@media (min-width: 1300px) {
    #post-container {
        flex-direction: row;
        gap: 0px;
        align-items: flex-start;
    }
}

/* phone only rules */
@media only screen and (max-width: 775px) {
    #post-text-container {
        width: 100vw;
        flex-direction: column;
        height: fit-content;
    }

    #post-text-container button {
        max-width: 100%;
        width: 100%;
    }

    main h1 {
        margin: 5px auto;
    }

    nav {
        display: flex;
        flex-direction: column;
        width: 100vw;
        height: 75px;
        top: 0;
        left: 0;
        z-index: 1000;
        border-left: 0;
        border-bottom: 2px solid #ff8762;
    }

    #new-post-text {
        margin: 0;
    }

    .buttons {
        justify-content: center;
    }

    nav h1 {
        margin: 0 auto;
        margin-top: 17.5px;
        width: min-content;
        height: 40px;
    }

    nav header {
        margin-top: 0;
        display: flex;
        justify-content: center;
    }

    #hamburger { /* all hamburger related styles are in here because it */
        display: block; /* is not present in the desktop version */
        position: fixed;
        width: 60px;
        height: 60px;
        top: 7.5px;
        left: 7.5px;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    #hamburger.closed {
        transform: 0;
    }

    #hamburger.open {
        transform: rotate(90deg);
    }

    nav.closed {
        height: 75px;
    }

    nav.open {
        height: 100vh;
    }

    nav.open header {
        margin-top: 25vh;
    }

    nav.animating header {
        transition: margin 0.3s ease;
    }

    nav.animating {
        transition: height 0.3s ease;
    }

    main {
        width: 100%;
        position: absolute;
        top: 77px;
        max-height: calc(100dvh - 223px);
    }

    form {
        width: 85%;
    }
}