/* styles.css */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    display: grid;
    grid-template-areas: 
        "header header header"
        "sidebar main sidebar-right";
    grid-template-columns: 1fr 3fr 1fr;
    grid-template-rows: auto 1fr;
    height: 100vh;
}

.header {
    display: flex;
    grid-area: header;
    background-color: #f4f4f4;
    padding: 1em;
    text-align: center;
    border-bottom: 1px solid #ccc;
}
.header-box {
    width: 50%;
    font-size: 20px;
    background-color: #f4f4f4;
    padding: 1em;
    text-align: left;
    border-bottom: 1px solid #ccc;
}
.header-box-ud {
    display: flex;
　　margin-bottom: 12px;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: #f5f5f5;
}
.sidebar {
    width: 15vw;
    grid-area: sidebar;
    background-color: #eaeaea;
    padding: 1em;
    border-right: 1px solid #ccc;
}

.sidebar-right {
    width: 10vw;
    grid-area: sidebar-right;
    background-color: #eaeaea;
    padding: 1em;
    border-left: 1px solid #ccc;
}

.main {
    width: 75vw;
    grid-area: main;
    padding: 1em;
    overflow-y: auto;
}

h2 {
    font-size: 1.2em;
}

.stream-grid {
    display: flex;
    flex-wrap: wrap; /* 画面から溢れると自動的に折り返す */
    gap: 0.5px; /* サムネイル間のスペース */
}

.stream-box {
    position: relative;
    display: inline-block;
    width: 320px;
    height: 180px;
    padding: 1em;
    text-align: center;
}

.register, .rightside {
    margin: 1em 0;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    margin: 0.5em 0;
}

.scroll{
    overflow-y: scroll;
  }

/* テキストを画像の上に配置 */
.stream-box .text-overlay-online {
    position: absolute;
    top: 16px;
    text-align: left;
    color: white;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の背景色 */
    padding: 5px 10px;
    border-radius: 5px;
}

.stream-box .text-overlay-username {
    position: absolute;
    top: 16px;
    right: 16px;
    text-align: right;
    color: white;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の背景色 */
    padding: 5px 10px;
    border-radius: 5px;
}
.stream-box .text-overlay-title {
    position: absolute;
    bottom: 16px;
    text-align: right;
    color: white;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の背景色 */
    padding: 5px 10px;
    border-radius: 5px;
}
.stream-box .text-overlay-viewer {
    position: absolute;
    bottom: 16px;
    right: 16px;
    text-align: right;
    color: white;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の背景色 */
    padding: 5px 10px;
    border-radius: 5px;
}