/* moss-support.css */

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    color: white;
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 300px;
    width: 100%;
}

.header-background {
    background: url('../images/supportbg.png') no-repeat center center;
    background-size: cover;
}

.header-logo {
    position: absolute;
    top: 117px;
    left: 15px;
    height: 80px;
    width: auto;
}

nav {
    position: absolute;
    width: 100%;
    top: 45px;
    left: 0;
    right: 0;  
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
}

nav ul li {
    display: flex; 
    justify-content: center; /* 水平居中 */
    align-items: center; 
}

nav ul li a {
    text-decoration: none;
    color: #F0E4BF;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 22px !important;
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
}

nav ul li a.active {
    color: #FCE293;
}

main {
    padding: 20px 50px;
}

.section-title h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

.support-grid {
    display: flex;
    flex-direction: column;
}

.support-feature {
    background-color: #e0e0e0;
    margin: 10px 0;
    padding: 20px;
    border-radius: 5px;
}

.support-feature h2 {
    margin: 0;
    font-size: 1.5em;
}

.support-feature:hover {
    background-color: #d4d4d4;
}

/* Contact us section styles */
.contact-content {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-content p {
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    color: darkslategrey;
}

.contact-content form {
    display: flex;
    flex-direction: column;
}

.contact-content label {
    font-size: 1em;
    margin-bottom: 5px;
}

.contact-content input[type="text"],
.contact-content input[type="email"],
.contact-content textarea {
    width: 95%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-content input[type="submit"] {
    background-color: #333;
    color: white;
    padding: 15px 10px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1em;
}

.contact-content input[type="submit"]:hover {
    background-color: #555;
}

.contact-content ul {
    list-style: none;
    padding: 0;
}

.contact-content ul li {
    display: inline;
    margin-right: 10px;
}

.contact-content ul li a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.contact-content ul li a:hover {
    text-decoration: underline;
}
v

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    .header-logo {
        margin: 10px 0;
    }

    nav {
        position: static;
        width: 100%;
    }

    nav ul {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
    }

    nav ul li {
        flex: 1;
    }

    nav ul li a {
        width: 100%;
        text-align: center;
        padding: 10px;
        font-size: 12px !important;
    }

    .social-media ul {
        flex-direction: column; /* 垂直排列按钮 */
        align-items: center;
    }

    .social-button {
        width: 80%; /* 确保按钮在小屏幕上不会太宽 */
        text-align: center;
    }
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background-color: #e0e0e0;
    border: none;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-btn:hover {
    background-color: #d4d4d4;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f4f4f4;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    width: 100%;
    border-radius: 5px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    font-weight: bold;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

/* Social media section styles */
.social-media {
    padding: 20px;
    margin-top: 20px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}

.social-media p {
    margin-bottom: 10px;
}

.social-media ul {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-media ul li {
    list-style: none;
    margin: 5px;/*prevent connection */
}

.social-media ul li a {
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    background-color: #333;
    transition: background-color 0.3s ease;
}

.social-media ul li a:hover {
    text-decoration: underline;
    color: #555;
}

.social-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #5e5c5c;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    justify-content: center; 
}

.show {
    display: block;
}

.arrow {
    font-size: 1em;
}

@media (max-width: 480px) {
    form {
        padding: 10px;
    }

    form label,
    form input[type="text"],
    form input[type="email"],
    form textarea,
    form input[type="submit"] {
        font-size: 1em;
    }
    
    .social-media ul {
        flex-direction: column;
        align-items: center;
    }

    .social-button {
        width: 100%;
        text-align: center;
    }
}
