@import url('https://fonts.googleapis.com/css2?family=Lato&family=Noto+Sans+KR:wght@600&family=Russo+One&display=swap');

/* font styles */

body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
}

h1,
a {
    font-family: "Russo One", sans-serif;
    font-weight: 400;
    font-style: normal;
}

h2,
h3 {
    font-family: "Noto Sans KR", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

/* Styling for Home Page */
.nav {
    background-color: #d5e9f2;
}

.icon {
    padding-right: 5px;
}

.intro-paragraph {
    text-align: center;
}

.intro-button {
    width: fit-content;
    height: fit-content;
}

/* Common Questions mobile styling */

.common-questions-header {
    position: absolute;
    right: 20%;
    top: 5%;
    margin-top: 50px;

}

.common-questions-table {
    position: absolute;
    right: 5%;
    top: 10%;
    border: 1px solid;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-top: 60px;
    width: 50%;
    border-collapse: collapse;
    font-size: 1rem;
    font-family: sans-serif;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}



.common-questions-table thead tr {
    background-color: #d5e9f2;
    color: #000000;
    text-align: left;
}

.common-questions-table th,
.common-questions-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #000000;
}

.common-questions-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.common-questions-table tbody tr:last-of-type {
    border-bottom: 2px solid #000000;
}

.common-questions-table tbody tr:hover {
    background-color: #f1f1f1;
}


/* Styling for signup-login form */
.signup-login-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 800px;
    margin: 60px auto 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    padding: 40px 30px;
    gap: 48px;
}

.signup-login-form-section {
    max-width: 350px;
    flex: 1;
}

/* Styling for signup-login header */
.signup-login-form-section h1 {
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 0.7rem;
    text-align: left;
}

.signup-login-subtitle {
    margin-bottom: 1.2rem;
    text-align: left;
    font-size: 1rem;
}

.signup-login-form-section form {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.signup-login-form-section label {
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
    text-align: left;
}

.signup-login-form-section input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 6px;
    width: 100%;
}

/* Styling for signup-login button */
.signup-login-btn {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 10px 0;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

/* Styling for signup-login image placement */
.signup-login-image-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.signup-login-image-section img {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
}

/* Checkbox */
.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2196F3;
    margin: 0;
}


/* Chat room mobile styling */

.conversation-list {
    color: #000000;
    text-decoration: none;
}

.conversation-list:hover {
    color: #007bff;
}

.chat-box {
    height: calc(50vh - 100px)
}

/*about page specific css*/

.about-section {    
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px auto;  
    padding: 1px
}

/* Responsive styles */
@media (max-width: 700px) {
    .signup-login-container {
        flex-direction: column;
        align-items: center;
        max-width: 95vw;
        padding: 24px 8px;
        gap: 20px;
    }

    .signup-login-form-section {
        max-width: 100%;
        width: 100%;
    }

    .signup-login-image-section {
        width: 100%;
        justify-content: center;
    }

    .signup-login-image-section img {
        margin: 0 auto;
        max-width: 160px;
    }
}


/* Hide image on very small screens */
@media (max-width: 480px) {
    .signup-login-image-section {
        display: none;
    }
}

/* Chat room desktop styles */
@media (min-width:1200px) {

    .recent-chat {
        position: absolute;
    }

    .sidebar {
        height: 100vh;
        overflow-y: auto;
        background-color: #f8f9fa;
        border-right: 1px solid #ddd;
    }

    .sidebar li.active {
        background-color: #e6f3ff;
        font-weight: bold;
        border-left: 4px solid #007bff;
        padding-left: 8px;
    }

    .chat-room {
        display: flex;
        flex-direction: column;
        position: relative;
        left: 25%;
    }

    .chat-box {
        height: calc(70vh - 150px);
        overflow-y: auto;
        padding: 20px;
        background-color: #fff;
    }

    .chat-input {
        bottom: 0;
        width: 100%;
        padding: 20px;
        background: #f8f9fa;
        border-top: 1px solid #ddd;
    }

}

