html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    /* スクロールを完全に無効化 */
    overflow: hidden;
    /* padding: 0; */
}

body {
    display: flex;
    justify-content: center;
}

nav {
    display: flex;
    align-items: center;
    border-bottom: 1px solid lightgray;
}

/* 検索バー */
nav input[type="text"] {
    /* border: none; */
    width: 30%;
    max-width: 60%;
    height: 26px;
    margin: 11px 2%;
    padding: 0 2%;
    border: 1px solid #999;
    border-radius: 20px;
}

nav input[type="text"]:focus {
    outline: 0;
}

/* ユーザー絞り込みボタン */
input[name="filter_user"],
input[name="tweet_user"] {
    display: none;
}

nav .userSwitch,
nav .subscribe,
nav #developer {
    display: flex;
}

/* RSS / ブラウザ通知API */
.subscribe button {
    display: flex;
    padding: 0;
    border: none;
    background: transparent;
}

/* ナビゲーションバー上の各アイコン */
nav span,
nav img,
#postForm #configArea .config_tweet img,
#postForm #configArea .userSwitch img {
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 12px 12px;
    border-radius: 50%;
    cursor: pointer;
}

nav span:hover,
nav img:hover,
#postForm #configArea .userSwitch img:hover,
#postForm #configArea .config_tweet img:hover,
#postForm #configArea .config_tweet_button span:hover {
    background-color: lightgray;
}

/* タイムライン */
main {
    width: 100%;
    height: 100%;
}

@media (min-aspect-ratio: 16/9) {
    main {
        max-width: 600px;
    }
}

#label {
    padding: 10px 0;
    padding-left: 1ch;
    font-size: 24px;
    font-weight: bold;
    border-bottom: 1px solid lightgray;
}

#timeline {
    width: 100%;
    height: 100%;
    border-left: 1px solid lightgray;
    border-right: 1px solid lightgray;
    overflow-y: scroll;
    /*IE(Internet Explorer)・Microsoft Edgeへの対応*/
    -ms-overflow-style: none;
    /*Firefoxへの対応*/
    scrollbar-width: none;
}

/*Google Chrome、Safariへの対応*/
#timeline::-webkit-scrollbar {
    display: none;
}

/* 投稿フォーム */
#postForm {
    width: 100%;
    border-bottom: 1px solid lightgray;
}

#postForm textarea {
    width: 92%;
    margin-left: 5%;
    padding: 2% 0;
    font-size: 24px;
    border: none;
    resize: none;
    outline: none;
    field-sizing: content;
    min-height: min-content;
}

#postForm #configArea {
    display: flex;
    width: 100%;
    align-items: center;
    background-color: whitesmoke;
}

#postForm #configArea .userSwitch,
#postForm #configArea .config_tweet {
    display: flex;
    align-items: center;
    width: 50%;
}

#postForm #configArea #button_tweet {
    margin: 0 10px;
    padding: 5px 10px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background-color: rgb(29, 155, 240);
    border-radius: 20px;
}

#postForm #configArea .config_tweet_button {
    display: flex;
    margin: 0 2px;
    padding: 0;
    border: none;
    background: transparent;
}

/* ツイート */
.tweet {
    display: flex;
    width: 100%;
    padding: 5px 0;
    border-bottom: 1px solid lightgray;
}

.tweet .icon {
    margin: 0 10px;
}

.tweet .content {
    width: 100%;
}

.tweet .icon img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.tweet .content .control {
    display: flex;
}

.tweet .content .control a svg {
    width: 20px;
    height: 20px;
}

/* アイコンホバー時に表示するプロフィール */
.tweet .icon .user_info_card {
    display: none;
    /* 初期状態では非表示 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 200px;
    background-color: rgba(255, 0, 0, 0.8);
    /* 半透明の赤色背景 */
    color: white;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.tweet .icon:hover .user_info_card {
    display: block;
}

.user_info_top,
.user_info_bottom {
    width: 100%;
    height: 50%;
}