* {
    padding: 0;
    margin: 0;
    font-family: sans-serif;
    box-sizing: border-box;
}

html {
    --main-background-color: #f2f2f2;
    --main-border-color: #ddd;
    --main-color: #222;
    --main-color-second: #666;
    background: var(--main-border-color);
    color: var(--main-color);
}
.img_light {
    display: inline;
}
.img_dark {
    display: none;
}
@media (prefers-color-scheme: dark) {
    html {
        --main-background-color: #222;
        --main-border-color: #444;
        --main-color: #f2f2f2;
        --main-color-second: #ddd;
    }
    .img_light {
        display: none;
    }
    .img_dark {
        display: inline;
    }
}

a {
    color: #0af;
}

.header-notifications {
    position: fixed;
    top: 0;
    left: calc(50vw - 27px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    background: var(--main-background-color);
    border-right: solid 2px var(--main-border-color);
    border-left: solid 2px var(--main-border-color);
    border-bottom: solid 2px var(--main-border-color);
    border-radius: 0 0 27px 27px;
    z-index: 3;
    opacity: 0.95;
}
.header-notifications:has(#notifications[data-show="true"]) {
    left: calc(10vw - 7px);
    animation: 1s open_notifications_box;
}
.header-notifications:has(#notifications[data-show="false"]) {
    left: calc(50vw - 27px);
    animation: 1s close_notifications_box;
}
@keyframes open_notifications_box {
    0% {
        left: calc(50vw - 27px);
    }
    100% {
        left: calc(10vw - 7px);
    }
}
@keyframes close_notifications_box {
    0% {
        left: calc(10vw - 7px);
    }
    100% {
        left: calc(50vw - 27px);
    }
}
#notifications {
    display: none;
    overflow: scroll;
    flex-direction: column;
    gap: 5px;
}
#notifications[data-show="true"] {
    display: flex block;
    height: 80vh;
    width: 80vw;
    animation: 1s open_notifications;
}
#notifications[data-show="false"] {
    display: flex block;
    height: 0;
    width: 0;
    animation: 1s close_notifications;
}
@keyframes open_notifications {
    0% {
        height: 0;
        width: 40px;
    }
    100% {
        height: 80vh;
        width: 80vw;
    }
}
@keyframes close_notifications {
    0% {
        height: 80vh;
        width: 80vw;
    }
    100% {
        height: 0;
        width: 40px;
    }
}
.notification {
    display: flex block;
    background: var(--main-border-color);
    border-radius: 5px;
    gap: 5px;
    padding: 2.5px;
}
.notification-icons {
    position: relative;
    font-size: 0;
}
.notification-icon-first {
    height: 40px;
    width: 40px;
    border-radius: 2.5px;
    object-fit: cover;
}
.notification-icon-second {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 15px;
    width: 15px;
    object-fit: contain;
    filter: drop-shadow(0 0 1px #888);
}
.notification-icon-third {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 15px;
    width: 15px;
    object-fit: contain;
    filter: drop-shadow(0 0 1px #888);
}
.notification-body {
    padding: 2.5px;
    flex: 1;
}
.notification-date {
    text-align: left;
}
.notification-buttons {
    display: flex;
    gap: 5px;
}
.notification-button {
    border: none;
    border-radius: 5px;
    padding: 5px;
    background: var(--main-background-color);
    color: var(--main-color);
}
.header-status {
    position: fixed;
    top: 0;
    right: 0;
    padding: 10px;
    background: var(--main-background-color);
    border-radius: 0 0 0 10px;
    border-bottom: solid 2px var(--main-border-color);
    border-left: solid 2px var(--main-border-color);
    opacity: 0.95;
    z-index: 3;
}
.header-menu {
    position: fixed;
    right: 0;
    bottom: 0;
    display: flex inline;
    flex-wrap: wrap;
    max-width: 100vw;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    padding: 10px;
    background: var(--main-background-color);
    border-top: solid 2px var(--main-border-color);
    border-left: solid 2px var(--main-border-color);
    border-radius: 10px 0 0 0;
    z-index: 2;
    opacity: 0.95;
}
.menu-post_create {
    position: fixed;
    right: 10px;
    bottom: calc(50vh - 40px);
    background: var(--main-background-color);
    width: 80px;
    height: 80px;
    padding: 8px;
    border: solid 2px var(--main-border-color);
    border-radius: 40px;
    opacity: 0.95;
}
.header-menu-item {
    border: none;
    background: none;
}

.main-box {
    display: none;
    padding: 5px;
    width: 100vw;
}
.post-group {
    background: var(--main-background-color);
    border-radius: 10px;
}
.post {
    display: flex;
    background: var(--main-background-color);
    border-radius: 10px;
    gap: 10px;
    padding: 5px 10px 5px 5px;
    margin-bottom: 5px;
    box-sizing: border-box;
    text-align: left;
}
.post-side {
    display: flex;
    flex-direction: column;
    width: 40px;
    align-items: center;
}
.post-icon {
    height: 40px;
    width: 40px;
    border-radius: 5px;
    object-fit: cover;
}
.post-group > .post-group > .post > .post-side > .post-side-line {
    width: 0;
    flex: 1;
    border: solid 1px var(--main-border-color);
}
.post-sns {
    height: 10px;
    object-fit: cover;
    margin-left: 5px;
}
.post-body {
    display: flex;
    gap: 2.5px;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}
.post-name {
    font-size: 16px;
}
.post-content {
    flex: 1;
}
.post-content a {
    overflow: hidden;
    text-overflow: ellipsis;
}
.post-content[data-short=true] {
    max-height: 100px;
    overflow: hidden;
}
.post-content-more {
    width: max-content;
    border: none;
    background: none;
    color: var(--main-color);
    font-size: 14px;
    text-decoration: underline;
}
.post-content-create {
    flex: 1;
    min-height: 100px;
}
.post-content-create:empty::after {
    color: var(--main-color-second);
    content: 'どうしたの？';
}
.post-images:has(.post-image) {
    display: flex;
    gap: 10px;
    height: 150px;
    width: 100%;
    overflow-x: scroll;
}
.post-image {
    position: relative;
    height: 100%;
    background: var(--main-border-color);
    border: none;
    border-radius: 14px;
    overflow: hidden;
    width: max-content;
    flex: none;
}
.post-image[data-sensitive='true'] .post-image-warn {
    display: flex inline;
    justify-content: center;
    align-items: center;
    padding: 14px;
    text-align: center;
    height: 100%;
    min-width: 150px;
}
.post-image[data-sensitive='false'] .post-image-warn {
    position: absolute;
    top: 0;
    right: 0;
    height: 28px;
    width: 28px;
    border-radius: 14px;
    background: var(--main-border-color);
    opacity: 0.5;
}
.post-image-body {
    height: 100%;
    border: none;
}
.post-image[data-sensitive='true'] .post-image-body {
    display: none;
}
.post-poll {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    border: solid 1px var(--main-border-color);
    border-radius: 11px;
}
.post-poll-option {
    display: flex block;
    flex: 1;
    text-align: left;
    align-items: center;
    border: none;
    border-radius: 6px;
    color: #222;
    padding: 6px;
}
.post-base {
    border: solid 1px var(--main-border-color);
    border-radius: 11px;
}
.post-card {
    display: flex;
    gap: 5px;
    border: solid 1px var(--main-border-color);
    border-radius: 5px;
    overflow: hidden;
}
.post-card-a {
    text-decoration: none;
}
.post-card-icon {
    height: 80px;
    width: 80px;
    object-fit: cover;
}
.post-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 80px;
    padding: 5px;
    overflow: hidden;
}
.post-card-title {
    font-size: 14px;
    color: var(--main-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}
.post-card-description {
    flex: 1;
    font-size: 13px;
    color: var(--main-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.post-card-url {
    font-size: 13px;
    color: var(--main-color-second);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}
.post-reactions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.post-reaction {
    display: flex;
    gap: 2px;
    align-items: center;
    border-radius: 5px;
    background: var(--main-background-color);
    color: var(--main-color);
    padding: 2px 6px;
    border: solid 1px var(--main-border-color);
    font-size: 14px;
    font-weight: normal;
}
.post-reaction[data-me='true'] {
    background: var(--main-border-color);
    border: solid 1px var(--main-border-color);
    color: var(--main-color);
}
.post-reaction:hover {
    border: solid 1px #0cf;
}
.post-reaction:active {
    border: solid 1px #0af;
}
.post-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    list-style: none;
}
.post-menu-button {
    width: 25px;
}
.post-menu-button-submit {
    background: #0af;
    color: #f2f2f2;
    font-weight: bold;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    padding: 5px;
}
#home-queue[data-count="0"] {
    display: none;
}
#create-post-services {
    display: flex;
    gap: 10px;
}
.create-post-services-input {
    display: none;
}
.create-post-services-input + label {
    opacity: 0.2;
}
.create-post-services-input:checked + label {
    opacity: 1;
}
.create-post-services-icon {
    height: 20px;
}

.user-box {
    background: var(--main-background-color);
    border-radius: 5px;
    padding: 3px;
}
.user-header {
    position: relative;
    background: var(--main-border-color);
    border-radius: 2px;
    padding: 2px;
    height: 150px;
    margin-bottom: 40px
}
.user-icon {
    position: absolute;
    bottom: -31px;
    background: var(--main-background-color);
    border-radius: 31px;
    border: solid 1px var(--main-background-color);
}
.user-follow_button {
    position: absolute;
    right: 5px;
    bottom: -13px;
    font-size: 14px;
    background: #0af;
    color: #f2f2f2;
    font-weight: bold;
    padding: 5px;
    border-radius: 5px;
    border: none;
}
.user-footer {
    border-radius: 2px;
    padding: 2px;
}
.user-name {
    font-size: 18px;
}
.user-name:empty {
    display: block;
    background: var(--main-border-color);
    width: 50%;
    border-radius: 5px;
    height: 18px;
}
.user-id:empty {
    display: block;
    background: var(--main-border-color);
    width: 50%;
    border-radius: 5px;
    height: 14px;
    margin-top: 5px;
}
.user-description:empty {
    display: block;
    background: var(--main-border-color);
    width: 100%;
    border-radius: 5px;
    height: 40px;
    margin-top: 5px;
}
.user-menu {
    display: flex;
    background: var(--main-background-color);
    border-radius: 5px;
    list-style: none;
    overflow: scroll;
    margin: 10px 0;
}
.user-menu-button {
    border: none;
    padding: 5px;
    margin: none;
    background: none;
    border-radius: 0;
    font-weight: bold;
    color: var(--main-color-second);
}
.user-menu-button[data-selected="true"] {
    color: var(--main-color);
    border-bottom: solid 2px #0af;
}
.settings-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
    width: 100%:
}
.settings-button {
    background: var(--main-background-color);
    border: none;
    border-radius: 10px;
    padding: 10px;
    color: var(--main-color);
    font-size: 16px;
}
.settings-connections {
    padding: 10px;
    border-radius: 10px;
    background: var(--main-background-color);
    margin-bottom: 10px;
}
.settings-connections-title {
    font-size: 16px;
}
.settings-connections-item {
    padding: 5px;
    border-radius: 5px;
    color: var(--main-color);
    background: var(--main-border-color);
    margin-bottom: 10px;
}
.settings-connections-item-title {
    font-size: 15px;
}
.settings-connections-item-input {
    padding: 5px;
    border: none;
    border-radius: 5px;
    color: var(--main-color);
    background: var(--main-background-color);
}
.settings-connections-item-send {
    padding: 5px;
    border: none;
    border-radius: 5px;
    color: var(--main-background-color);
    background: var(--main-color-second);
}

.dialog {
    box-sizing: border-box;
    padding: 10px;
    border-radius: 20px;
    background: var(--main-background-color);
    text-align: center;
    border: solid 1px var(--main-border-color);
    margin: auto;
    color: var(--main-color);
    opacity: 0.95;
    max-height: 80%;
}
.dialog::backdrop {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -moz-backdrop-filter: blur(10px);
    -o-backdrop-filter: blur(10px);
    -ms-backdrop-filter: blur(10px);
}
.dialog-title {
    position: sticky;
    top: 0px;
    color: var(--main-color-second);
}
.dialog-label {
    display: flex;
    justify-content: space-between;
    margin: 10px;
    gap: 10px;
}
.dialog-input {
    font-size: 16px;
    background: none;
    border: none;
    text-align: right;
    color: var(--main-color);
}
.dialog-input-title {
    font-size: 16px;
}
.dialog-hr {
    border: solid 0.5px var(--main-border-color);
}
.dialog-button {
    background: #0af;
    color: var(--main-background-color);
    border: none;
    border-radius: 5px;
    padding: 5px;
    margin-top: 10px;
    font-weight: bold;
}
#dialog-post {
    background: var(--main-border-color);
}
#dialog-post-image-image {
    height: 75vh;
    width: 80vw;
    height: 75dvh;
    width: 80dvw;
    object-fit: contain;
}
#dialog-post-video-video {
    height: 75vh;
    width: 80vw;
    height: 75dvh;
    width: 80dvw;
    object-fit: contain;
}
.dialog-post-reply {
    display: flex;
    gap: 10px;
}
.dialog-post-reply-text {
    flex: 1;
    border: none;
    background: var(--main-background-color);
    color: var(--main-color);
    font-size: 16px;
    padding: 10px;
    border-radius: 10px;
    box-sizing: border-box;
    text-align: left;
}
.dialog-post-reply-text:empty::after {
    color: var(--main-color-second);
    content: '返信する？';
}
.dialog-post-reply-submit {
    background: #0af;
    color: #f2f2f2;
    font-weight: bold;
    font-size: 16px;
    border: none;
    padding: 10px;
    border-radius: 10px;
}
#dialog-add-reaction-category-list {
    display: flex;
    overflow: scroll;
    gap: 10px;
    border-bottom: solid 1px #888;
}
.dialog-add-reaction-category {
    position: relative;
    white-space: nowrap;
    padding: 5px;
}
.dialog-add-reaction-category-type {
    position: absolute;
    right: 0;
    bottom: 0;
}
#dialog-add-reaction-search {
    display: none;
    padding: 5px;
    font-size: 16px;
    width: 100%;
    background: none;
    border: none;
    border-radius: 5px;
    color: var(--main-color);
    text-align: left;
}
#dialog-add-reaction-search:empty::after {
    color: var(--main-color-second);
    content: '検索する文字列を選択';
}
#dialog-add-reaction-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.dialog-close {
    position: sticky;
    bottom: 0px;
    color: var(--main-color-second);
}

.resources {
    display: none;
}