* { margin: 0; padding: 0; box-sizing: border-box; }
        
@font-face{
    font-family:NexonFootbalGothic;
    src:url(./NEXON Football Gothic L.ttf) format('truetype');
    font-style:normal;
    font-weight:normal;
}

@font-face{
    font-family:JejuGothic;
    src:url(./JejuGothic.ttf) format('truetype');
    font-style:normal;
    font-weight:normal;
}
header {
    margin:0 auto;
    text-align:center;
    height:62px;
}
div {
    font-family:JejuGothic;
    line-height:140%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.banner-wrapper {
    position: relative;
    width: 100%;
    height: 95vh; 
    overflow: hidden;
}

.banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 62px);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    transition: opacity 1s ease-in-out;
}

@media (max-width: 1200px) {
    .banner-wrapper {
        height: auto;              
    }
    .banner-wrapper .banner {
        position: static;           
        height: auto;              
        aspect-ratio: 16/9;         
        background-size: contain;  
        background-color: transparent;
    }
    .main_wrap {
        padding-top: 20px;
    }
}

.banner a {
    display: block;
    height: 100%;
    width: 100%;
}

#banner2:hover {
    background-image: url('../image/slideimg2_2.webp') !important;
}

.main_wrap {
    width:100%;
    text-align:center; 
    color:#333;
    margin-bottom:3rem;
    padding-top: 2rem;
}

.main_title {
    margin-bottom: 25px;
    justify-content: center;
    display: flex;
}

.member_section {
    display:flex;
    justify-content:center;
    margin-bottom:3rem;
}

.member_div_image {
    width:80%;
    height:60vh;
    display:flex;
    align-items:center;
    border-radius:15px;
    justify-content:flex-start; 
    padding: 90px;
    color:white;
    background-size: cover;
    background-position: center;
    
}

.main_section {
    display:flex;
    justify-content:center;
}

.main_div {
    width:80%;
    height:40vh;
    padding-right:1%;
    display:flex;
    align-items:center;
    background-position: center;
    justify-content:center;    
    background-size: contain;
    background-repeat: no-repeat;
}

.main_div_text {
    width:40%; 
    height:15vh; 
    background-color:white;
    display:flex; 
    align-items:center; 
    justify-content:center; 
    padding:10px;
    float:right;
}


.site-footer {
    background-color: #e5e5e5;   
    color: #333;                
    padding: 20px 0;            
    text-align: center;        
    position: relative;
    z-index: 2;
    font-family: JejuGothic, sans-serif; 
}

.member_text h2 {
    font-family:NexonFootbalGothic !important;
    margin-bottom:3rem;
    font-size:70px;
    font-weight: normal;
}

.member_text p {
    font-family:NexonFootbalGothic !important;
    font-size: 75px;
    font-weight: bold;
}


/* hint */

.board-table {
    width: 80%;
    border-collapse: collapse;
    margin: 0 auto 20px auto;
    font-size: 14px;
}
.board-table thead {
    background-color: #f5f5f5;
    border-top: 2px solid #333;
}
.board-table thead th {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
}
.board-table tbody td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.board-table tbody tr {
    cursor: pointer;
    transition: background 0.2s;
}
.board-table tbody tr:hover {
    background: #fafafa;
}

/* 글쓰기/검색 버튼 공통 */
.button {
    padding: 8px 16px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.button:hover {
    background: #e0e0e0;
}

.paging {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
.paging ul {
    list-style: none;
    display: flex;
    gap: 6px;
    padding: 0;
}
.paging li {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.paging .currentbutton {
    background: #333;
    color: #fff;
    font-weight: bold;
}
.paging .clickbutton:hover {
    background: #f0f0f0;
}

.searchBox {
    text-align: center;
    margin: 20px 0;
}
.searchBox input[type="text"] {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px;
}
.searchBox {
display: flex;
justify-content: center;
gap: 6px;
margin: 20px 0;
}

.searchBox select,
.searchBox input[type="text"] {
    height: 40px;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.searchBox input[type="text"] {
    width: 200px;
}

.searchBox .button {
    height: 40px;
    padding: 0 16px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.searchBox .button:hover {
    background: #e0e0e0;
}

.clickbutton {
	border: 1px solid black;
	font-size: 14pt;
	padding: 2px 8px;
	margin-left:3px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	cursor: pointer;
}

.clickbutton:hover {
	background-color: black;
	color: white;
}


.currentbutton {
	border: 1px solid black;
	font-size: 14pt;
	padding: 2px 8px;
	text-align: center;
	margin-left:3px;
	text-decoration: none;
	display: inline-block;
	font-weight:600;
	background-color: #dcdcdc;
}

input[type=text], input[type=password], input.answer{
	width: 300px;
	padding: 12px 20px;
	margin: 8px 0;
	border: 1px solid #ccc;
	box-sizing: border-box;
	font-family: initial;
}

textarea
{
	width: 650px;
	padding: 12px 20px;
	border: 1px solid #ccc;
	box-sizing: border-box;
	font-family: initial;
	resize: none;
}

.button {
	border: 1px solid black;
	font-size: 14pt;
	padding: 5px 10px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	cursor: pointer;
}

.button:hover {
	background-color: black;
	color: white;
}


/* view_hint */
.view_table {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    border: 1px solid #ddd;
    border-collapse: collapse;
    background: #fff;
}
.view_table .view_title {
    font-size: 20px;
    font-weight: bold;
    padding: 14px;
    text-align: center;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}
.view_table .view_id,
.view_table .view_id2 {
    padding: 10px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}
.view_table .view_id {
    font-weight: bold;
    background: #f9f9f9;
    width: 90px;
    text-align: center;
}
.view_table .view_id2 {
    background: #fff;
}
.view_table .view_content {
    padding: 20px;
    line-height: 1.6;
    font-size: 15px;
    color: #333;
    background: #fff;
    height:300px;
    text-align: left;  
    vertical-align: top; 
}

/* 버튼 영역 */
.view_btn {
    text-align: center;
    margin: 20px 0;
}
.view_btn .button {
    display: inline-block;
    margin: 4px;
    padding: 8px 18px;
    font-size: 14px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}
.view_btn .button:hover {
    background: #e0e0e0;
}

/* 댓글 영역 */
.comment_table {
    width: 100%;
    max-width: 900px;
    margin: 30px auto 0 auto;
    border-top: 2px solid #444;
    border-collapse: collapse;
    background: #fff;
}
.comment_table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.comment_table tr:nth-child(even) {
    background: #fafafa;
}
.comment_table textarea {
    width: 100%;
    height: 60px;
    resize: vertical;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.comment_table .delete {
    font-size: 12px;
    color: red;
    border: none;
    background: transparent;
    cursor: pointer;
}
.comment_table .delete:hover {
    text-decoration: underline;
    color: #333;
}

/* write_hint*/
.board-write {
        max-width: 800px;
        margin: 40px auto;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 6px;
        overflow: hidden;
        font-family: "Noto Sans KR", sans-serif;
    }

    .board-header {
        background: #f7f7f7;
        border-bottom: 1px solid #ddd;
        padding: 14px;
        font-size: 18px;
        font-weight: bold;
        text-align: center;
    }

    .form-group {
        display: flex;
        border-bottom: 1px solid #eee;
        padding: 14px 16px;
        align-items: center;
    }

    .form-group label {
        width: 80px;
        font-weight: bold;
        color: #333;
    }

    .form-group input[type="text"],
    .form-group textarea {
        flex: 1;
        border: 1px solid #ccc;
        border-radius: 4px;
        padding: 10px;
        font-size: 14px;
        background: #fff;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .form-group input[type="text"]:focus,
    .form-group textarea:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 4px rgba(59,130,246,0.3);
        outline: none;
    }

    .form-group textarea {
        resize: vertical;
        min-height: 200px;
    }

    .form-footer {
        padding: 14px 16px;
        text-align: right;
        background: #fafafa;
    }

    .btn {
        background: #3b82f6;
        color: #fff;
        border: none;
        padding: 8px 18px;
        font-size: 14px;
        border-radius: 4px;
        cursor: pointer;
        font-weight: bold;
        transition: background 0.2s;
    }

    .btn:hover {
        background: #2563eb;
    }

/* login */
    .login-main_wrap {
        max-width: 500px;
        margin: 50px auto;
        padding: 40px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.1);
        flex:1;
    }

    .login-main_wrap h1 {
        text-align: center;
        margin-bottom: 30px;
        font-size: 28px;
        color: #333;
    }

    .login-main_wrap label {
        font-weight: bold;
        display: block;
        margin-bottom: 6px;
        color: #555;
    }

    .login-main_wrap input[type=text],
    .login-main_wrap input[type=password] {
        width: 100%;
        padding: 12px 15px;
        margin-bottom: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 14px;
    }

    .login-button {
        background-color: #57A0EE;
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        margin: 5px 5px;
        transition: 0.3s;
    }

    .login-button:hover {
        background-color: #4691d9;
    }

    .login-social {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
    }

    .login-social img {
        cursor: pointer;
        border-radius: 5px;
    }

/*  flowerrank.php*/

.rank-container {
    max-width: 720px;
    margin: 50px auto;
    padding: 30px;
    background: #fffefc;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    font-family: 'Noto Sans KR', sans-serif;
}


.rank-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 30px;
}

.rank-list { margin-top: 20px; }

.rank-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
    position: relative;
}

.rank-item:hover {
    background: #f0f8ff;
    transform: translateY(-2px);
    cursor: auto;
}

.rank-item.first { border-left: 5px solid gold; background: #fff8e1; }
.rank-item.second { border-left: 5px solid silver; background: #f0f0f0; }
.rank-item.third { border-left: 5px solid #cd7f32; background: #f9f5f0; }

.rank-position { font-weight: bold; color: #ff7f50; width: 60px; }
.rank-name {
    font-weight: 500; 
    color: #333; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
    flex: 1; 
    margin: 0 10px;
}
.rank-room { font-weight: 400; color: #666; width: 80px; text-align: right; }

.rank-flower {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-image: url('/image/flower_icon.png');
    background-size: cover;
}

.rank-stats {
    margin-top: 30px;
    font-size: 16px;
    color: #555;
    text-align: center;
}

@media (max-width: 480px) {
    .rank-container { width: 90%; padding: 20px; }
    .rank-title { font-size: 22px; }
    .rank-item { flex-direction: column; align-items: flex-start; padding: 10px; }
    .rank-room { text-align: left; margin-top: 5px; }
    .rank-flower { margin-bottom: 5px; }
}

.canvasBtn { display:none; }
canvas{z-index:10;pointer-events: none;position: fixed;top: 0;transform: scale(1.1);}


/* past.php */

.past_menu_wrap {
    display: flex;
    justify-content: space-between; /* 버튼 사이 균등 간격 */
    width: 1150px;
    margin: 0 auto;
    padding: 10px 20px;
    gap: 10px;
}

.past_menu {
    flex: 1; /* 균등 너비 */
    padding: 12px 0;
    text-align: center;
    font-weight: normal;
    font-size: 1rem;
    border-radius: 10px;
    background-color: var(--btn-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.past_menu:hover {
    transform: translateY(-3px) scale(1.03);
    background: linear-gradient(to bottom, #fff, var(--btn-color));
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.past_menu_not_clear {
    flex: 1; /* 균등 너비 */
    padding: 12px 0;
    text-align: center;
    font-weight: normal;
    font-size: 1rem;
    border-radius: 10px;
    background-color: gray;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.past_main_wrap {
    padding: 50px 20px;
}


.past_main_wrap h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #333;
    position: relative;
}
.past_main_wrap h2::after {
    content: '';
    width: 60px;
    height: 3px;
    background-color: #f39c12;
    display: block;
    margin: 10px auto 0;
    border-radius: 2px;
}


.past_wrap_container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 60%;
    gap: 20px;
    justify-items: center;
}


.past_wrap {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    width: 100%;
    max-width: 180px;
}
.past_wrap img {
    width: 100%;
    display: block;
}
.past_wrap b {
    display: block;
    padding: 10px 5px;
    font-size: 1rem;
    color: #555;
}

/* 호버 효과 */
.past_wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* 모바일 대응 */
@media screen and (max-width: 768px){
    .past_wrap_container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}