/* 메인 body */
body {
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

h1 {
    background-color: #343a40;
    color: #ffffff;
    margin: 0;
    padding: 1em;
    text-align: center;
}

a{
    color: #ffffff;
    text-decoration-line: none;
}

.container {
    margin: 20px;
    background-color: #ffffff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form { 
    margin-bottom: 20px; 
}

/* 회원 목록 */
#userListContainer {
    list-style-type: none;
    padding-left: 0;
}

#userListContainer li {
    border: 1px solid #ccc;
    margin: 8px 0;
    padding: 8px;
    text-align: left;
    border-radius: 4px;
}



/* Navbar */
#navbar {
    background-color: #1b1e21;
    color: white;
    padding: 1em 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

#navbar a {
    margin: 0 15px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

/* Section Headers */
h1, h2 {
font-weight: bold;
}

/* Forms */
.group {
margin-bottom: 20px;
}

.group label {
display: inline-block;
width: 100px;
}

.group input {
padding: 0.5em;
width: 200px;
}

/* Centered Content */
.section {
    display: flex;
    /* justify-content: center; */
    align-items: center;
    flex-direction: column;
    margin: 50px 20px;
    height: 100vh;  /* 100% of the viewport height */
}

/* Buttons */
button {
background-color: #007bff;
color: white;
padding: 0.5em 1em;
border: none;
cursor: pointer;
}

button:hover {
background-color: #0056b3;
}


/* meeting-list */
/* Meeting List */
.meeting-item {
    border: 5px solid #ddd;
    margin: 5px;  /* Adjusted for uniform spacing */
    padding: 10px;
    flex: 1 1 calc(50% - 20px); /* Adjusted width for 2 column and considering margin and border */
    box-sizing: border-box; 
}


.meeting-item h2 {
    font-size: 1.5em;
}

.meeting-item p {
    margin-top: 10px;
}

#meetingList {
    display: flex;
    flex-wrap: wrap; 
}

/* board */
.post-item {
    border: 5px solid #ddd;
    margin: 5px;  /* Adjusted for uniform spacing */
    padding: 10px;
    flex: 1 1 calc(50% - 20px); /* Adjusted width for 2 column and considering margin and border */
    box-sizing: border-box; 
}

.post-item h2 {
    font-size: 1.5em;
}

.post-item p {
    margin-top: 10px;
}

#postList {
    display: flex;
    flex-wrap: wrap; 
}


.join-btn, .leave-btn {
    margin-top: 10px;
}

.category, .location, .status {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f5f5f5;
    margin-right: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.category:hover, .location:hover {
    background-color: #ddd;
}

.meeting-header {
    display: flex;
    justify-content: space-between;
}


/* meeting-detail */
.category-btn, .gender-limit-btn, .location-btn {
    display: inline-block;
    padding: 5px 10px;
    margin-right: 10px;
    border: 2px solid #333;
    box-shadow: 3px 3px 3px #aaa;
    transition: 0.2s;
}
.category-btn:hover, .gender-limit-btn:hover, .location-btn:hover {
    box-shadow: 1px 1px 1px #aaa;
    transform: translate(2px, 2px);
}

/* members 스타일링 */
#meeting_container div span {
    display: block;
    margin: 5px 0;
}

/* memberlist div */
.memberdiv {
    border-radius: 5px;
    border-color: #aaa;
}



/* profile_edit */
#profileForm {
    border: 1px solid #ccc;
    padding: 20px;
    width: 50%;
    margin: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#profileForm label {
    display: block;
    margin-bottom: 10px;
}

#profileForm input, #profileForm select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
}

/* playerList */
/* 추가: 플레이어 목록 스타일링 */
#playerListContainer {
    display: none;
    list-style-type: none;  /* 목록 앞에 작은 원 형태를 없애줍니다 */
    padding: 0;  /* 패딩을 0으로 설정 */
    border: 1px solid #ccc;  /* 테두리를 추가 */
    border-radius: 8px;  /* 테두리 둥글게 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  /* 그림자 효과 */
    max-width: 600px;  /* 최대 너비 설정 */
    margin: auto;  /* 중앙 정렬 */
}

#playerListContainer li {
    background-color: #f9f9f9;  /* 배경색 설정 */
    border-bottom: 1px solid #ccc;  /* 하단 테두리 */
    padding: 10px;  /* 패딩 설정 */
    text-align: left;  /* 텍스트 왼쪽 정렬 */
}

#playerListContainer li:last-child {
    border-bottom: none;  /* 마지막 아이템에는 하단 테두리를 없애줍니다 */
}

#playerListContainer li:hover {
    background-color: #eee;  /* 마우스 오버시 배경색 변경 */
}

/* board */
#board {
    margin: 20px;
}

#boardForm textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
}

#postList {
    margin-top: 20px;
}

.postItem {
    border: 1px solid #ccc;
    padding: 10px;
    margin: 10px 0;
}


#chat_container{
    overflow: auto;
    background-color: #eee;
    border-radius: 5px;
    padding: 20px 10px;
    height : 300px;
    width : 500px;
}

.chat_style_me{
    background-color: #FFF80F;
    margin: 5px;
    padding: 5px 3px;
    border-radius: 5px;
}

.chat_style{
    background-color: #FFFFFF;
    margin: 5px;
    padding: 5px 3px;
    border-radius: 5px;
}

.chat_style_system{
    background-color: #aaa;
    margin: 5px;
    padding: 5px 3px;
    border-radius: 5px;
}

#profileImagePreview {
    margin: 10px;
}

body{margin-top:20px;}
.avatar{
width:200px;
height:200px;
}				              

/* Buttons */
.upload-btn {
    display: inline-block;
    /* background-color: #d9ffe1; */
    color: black;
    padding: 0.5em 1em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
}

.upload-btn:hover {
    background-color: #eee;
}
