@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1:wght@100..900&display=swap');
* {
    box-sizing: border-box;
    font-family: "M PLUS 1", system-ui;
}

.maincontainer {
    max-width: 1024px;
    margin: 0 auto;
    position: relative;
}

.header {
    display: flex;
    border-bottom: 1px solid #eee;
}
.header .container {
    width: 1024px;
    display: flex;
    align-items: center;
}
.header .logo {
    padding: 1rem 0;
}
.header .menubutton {
    width: fit-content;
    margin-left: auto;
    display: flex;
    align-items: center;
}
.menu {
    display: none;
    flex-wrap: wrap;
    position: absolute;
    top: 3.3rem;
    width: 100%;
    background: #fff;
}
.menu a {
    display: block;
    width: 50%;
    border-bottom: 1px solid #eee;
    padding: 1rem;
}
.menu a:nth-child(2n) {
    border-left: .5px solid #eee;
}
.menu a:nth-child(2n-1) {
    border-right: .5px solid #eee;
}

@media (max-width : 599px) {
    .header {
        display: flex;
        border-bottom: 1px solid #eee;
    }
    .header .container {
        width: 100%;
        display: flex;
        align-items: center;
        padding: 0 1rem;
    }
    .header .logo {
        padding: 1rem 0;
    }
    .header .menubutton {
        width: fit-content;
        margin-left: auto;
        display: flex;
        align-items: center;
    }
}

.talk {
    width: 100%;
    height: calc(100vh - 10rem - 100px);
    resize: none;
    padding: 1rem;
    font-size: 1.15rem;
}
.suggest {
    display: flex;
    align-items: center;
    position: absolute;
    bottom: 5rem;
    border-top: 1px solid #eee;
    padding: 1rem 0;
    width: 100%;
    overflow-x: auto;
}
.suggest button {
    border: 1px solid #eee;
    padding: .75rem;
    margin-right: .75rem;
    border-radius: .25rem;
    white-space: nowrap;
}

.viewarea {
    position: absolute;
    top: 3.2rem;background: #fff;
    width: 100%;
    height: calc(100vh - 10rem - 100px);
    display: none;
}

.buttons {
    position: absolute;
    bottom: 0;
    border-top: 1px solid #eee;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 1rem 0;
    background: #fff;
}
.buttons button {
    border: 1px solid #eee;
    border-radius: .25rem;
    margin-left: 1rem;
    padding: 1rem;
    width: 8rem;
    text-align: center;
}
.buttons button:first-child {
    margin-left: auto;
}
.buttons .delete {
    background: #dc143c;
    color: #fff;
}
@media (max-width : 599px) {
    .buttons {
        position: absolute;
        bottom: 0;
        border-top: 1px solid #eee;
        width: 100%;
        display: block;
        padding: 1rem 0;
        background: #fff;
    }
    .buttons button {
        display: block;
        border: 1px solid #eee;
        border-radius: .25rem;
        margin-left: 0;
        margin: 0 1rem 1rem 1rem;
        padding: 1rem;
        width: calc(100% - 2rem);
        text-align: center;
    }
    .buttons button:first-child {
        margin-left: 1rem;
    }
    .buttons .delete {
        background: #dc143c;
        color: #fff;
    }
}

.ad {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
}
.ad small {
    display: block;
    text-align: center;
    background: #ddd;
    padding: .25rem 0;
}