body {
    background-color: beige;
    display: grid;
}

h1 {
    font-family: "Gothic60";
    font-size: 50px;
}

b {
    font-family: "Gothic60";
    font-size: 20px;
    padding: 10px;
}

input {
    height: 30px;
    padding-left: 10px;
    font-family: "Gothic60";
    font-size: 20px;
    background-color: antiquewhite;
    border-radius: 20px;
    border: 3px solid rgb(255, 196, 124);
    box-shadow: 0px 0px 3px black;
    transition: border 0.4s, transform 0.1s, box-shadow 0.1s, background-color 0.4s;
}

input:active {
    transform: scale(0.99);
}

input:hover {
    background-color: rgb(255, 236, 216);
}

input:focus {
    border: 3px solid rgb(255, 169, 63);
    outline: none;
}

.post {
    word-break: break-word;
    flex-direction: column;
    margin: 10px;
    width: 130vh;
    display: flex;
    justify-self: center;
    border-radius: 10px;
    background-color: rgb(204, 99, 99);
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
}

.post_info {
    padding: 5px;
}

.post_info b {
    font-size: 14px;
}

.post hr {
    opacity: 0;
}

.title {
    margin-left: 20px;
    margin-right: 20px;
    display: flex;
}

.upperbuttons {
    margin-left: auto;
    margin-right: 10px;
    display: flex;
    gap: 10px;
}

.info {
    border: 2px solid brown;
    border-radius: 10px;
    width: 70%;
    margin-top: 10vh;
    margin-bottom: 10px;
    flex-direction: column;
    display: flex;
    justify-self: center;
    animation: fadeIn 1s ease forwards;
}

.info h1 {
    margin-left: 10px;
}

.post_sumbit {
    margin-top: 10vh;
    display: flex;
    margin-bottom: 10px;
    border: 2px solid brown;
    background-color: rgb(196, 89, 89);
    border-radius: 10px;
    padding: 10px;
    width: 70%;
    justify-self: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.panel {
    margin-top: 10px;
    padding: 10px;
    width: 95%;
    display: flex;
    justify-content: start;
}

.panel button {
    margin-left: 10px;
}

#editor {
    width: 95%;
    min-height: 40px;
    max-height: 1000px;
    height: 300px;
    font-family: "Gothic60";
    font-size: 20px;
    padding: 10px;
    border-radius: 10px;
    border: 3px solid rgb(255, 196, 124);
    box-shadow: 0px 0px 3px black;
    background-color: antiquewhite;
    transition: border 0.4s, box-shadow 0.1s, background-color 0.4s;
    resize: vertical;
}

#editor:focus {
    outline: none;
}

.test {
    width: 95%;
    height: 300px;
    font-family: "Gothic60";
    font-size: 20px;
    padding: 10px;
    border-radius: 10px;
    border: 3px solid rgb(255, 196, 124);
    box-shadow: 0px 0px 3px black;
    background-color: antiquewhite;
    transition: border 0.4s, box-shadow 0.1s, background-color 0.4s;
    overflow-y: auto;
}

.sumbit-button button {
    margin-left: 10px;
    height: 50px;
}

.login-container {
    border: 2px solid rgb(224, 175, 111);
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0px 0px 3px black;
    background-color: antiquewhite;
    width: 35vh;
    height: 35vh;
}

.login-container button {
    margin-top: 35px;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: width 0.2s ease, padding 0.2s ease;
}

.login-button-text {
    transition: opacity 0.5s ease;
    display: block;
}

.loading-icon {
    display: none;
    opacity: 0;
    position: absolute;
    animation: loading 2s linear infinite, fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.login-container input {
    margin-top: 35px;
    width: 80%;
}

.login-container input::placeholder {
    font-family: "Gothic60";
    font-size: 15px;
    user-select: none;
    transition: opacity 0.2s;
}

.login-container input:focus::placeholder {
    opacity: 0;
}

.login-container h1 {
    margin: 10px;
}

.login {
    border: 2px solid brown;
    background-color: blanchedalmond;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    width: 70%;
    height: 50vh;
    flex-direction: column;
    display: flex;
    justify-self: center;
}

#login-error {
    color: red;
    font-size: 10px;
}

.upper {
    position: fixed;
    top: 2%;
    width: 97%;
    z-index: 999;
    height: 7vh;
    display: flex;
    justify-self: center;
    align-items: center;
    justify-content: left;
    background-color: antiquewhite;
    border-radius: 10px;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
    animation: slideDown 1s ease forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.main {
    width: 70%;
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    justify-self: center;
    align-items: center;
    flex-direction: column-reverse;
    border-radius: 10px;
    background-color: burlywood;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease forwards;
    
}

.main #loading-posts {
    margin-top: 20px;
    margin-bottom: 20px;
    animation: loading 2s linear infinite;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background #rectangle1 {
    position: fixed;
    width: 1600px;
    height: 1600px;
    background-color: #D6D6A0;
    transform: rotate(-45deg);
    animation: roptate180 15s linear infinite;
}

.background #rectangle2 {
    position: fixed;
    width: 960px;
    height: 960px;
    background-color: #F5F5DC;
    transform: rotate(-45deg);
    animation: roptate360 15s linear infinite;
}

.background #rectangle3 {
    position: fixed;
    width: 540px;
    height: 540px;
    background-color: #D6D6A0;
    transform: rotate(-45deg);
    animation: roptate720 15s linear infinite;
}

.background #rectangle4 {
    position: fixed;
    width: 240px;
    height: 240px;
    background-color: #F5F5DC;
    transform: rotate(-45deg);
    animation: roptate1080 15s linear infinite;
}

@keyframes roptate180 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(180deg);
    }
}

@keyframes roptate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes roptate720 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(720deg);
    }
}

@keyframes roptate1080 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(1080deg);
    }
}

button {
    user-select: none;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 30px;
    padding-right: 30px;
    border-radius: 10px;
    background-color: bisque;
    transition: background-color 0.4s, box-shadow 0.4s;
    border: 0;
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
    font-family: "Gothic60";
}

button:hover {
    background-color: darksalmon;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.menu {
    position: fixed;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    justify-self: flex-end;
    z-index: 1000;
    margin-top: 90px;
}

.menu button {
    margin-top: 10px;
}

.menu button.show {
    margin-top: 10px;
    animation: slideIn 0.5s ease forwards;
}

.menu button.hide {
    margin-top: 10px;
    animation: slideOut 0.5s ease forwards;
}

@font-face {
    font-family: "Gothic60";
    src: url("font.woff") format("woff");
}

@keyframes loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@media (max-width: 1455px) {
    .info {
        width: 100%;
    }

    .main {
        width: 100%;
    }

    .post_sumbit {
        width: 98%;
    }
}


@media (max-width: 1010px) {
    .post_sumbit {
        width: 43vh;
    }

    h1 {
        font-size: 30px;
    }

    .title h1 {
        font-size: 50px;
    }

    .post_info b {
        font-size: 10px;
    }

    .info {
        margin-top: 10vh;
    }

    .info {
        width: 45vh;
    }

    .upper {
        width: 94%;
    }

    .post {
        width: 40vh;
    }

    .main {
        width: 45vh;
    }

    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    #menu {
        position: absolute;
        right: 10px;
    }

    .upper a {
        display: none;
    }

    .login {
        width: 45vh;
    }
}

@media (min-width: 1011px) {
    
    #menu {
        display: none;
    }

    .menu {
        display: none;
    }
}