/* ===== GLOBAL STYLES ===== */

h1 {
    text-align: center;
}

header {
    text-align: center;
    font-style: italic;
    margin-bottom: 30px;
    
}
body {
    font-family: Arial, sans-serif;
    background-color: #01ADB3;
    margin: 0;
    padding: 0;
    font-weight: bold;
}

/* ===== NAVBAR ===== */

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: black;
    display: flex;
    flex-wrap: wrap;           /* Makes it adaptive */
    justify-content: center;
}

.navbar li {
    margin: 0;
}

.navbar a {
    text-decoration: none;
    color: #01ADB3;
    padding: 15px 20px;
    display: block;
    text-align: center;
}

.navbar a:hover {
    background-color: lightgray;
    color: black;
}

/* ===== FORUM CONTAINER ===== */

#forum-container {
    max-width: 700px;
    margin: auto;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-top: 20px;
    margin-bottom: 20px;
}

#post-input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.post {
    background: #eef;
    padding: 12px;
    border-radius: 10px;
    margin-top: 15px;
}

.timestamp {
    font-size: 12px;
    color: #555;
    margin-top: 5px;
}

/* ===== FOOTER ===== */

footer {
    text-align: center;
    padding: 20px;
    color: #ccc;
}

a {
    text-decoration: none;
    color: #ccc;
}

.copyright {
    background-color: black;
    color: #ccc;
    padding-bottom: 20px;
}

li {
    list-style-type: none;
}

/* ===== HOME INTRO TEXT ===== */

.homeintro {
    max-width: 800px;
    margin: 20px auto;
    font-size: 16px;
}

/* ===== THREE BOX FEATURE SECTION ===== */

.three-box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 40px auto;
    max-width: 1000px;
    padding: 0 20px;      /* Padding for mobile edges */
}

.three-box {
    background: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.three-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: white;
    margin: 0 auto 15px;
}

.blue { background: #3b82f6; }
.green { background: #22c55e; }
.purple { background: #a855f7; }

.three-box h4 {
    margin: 10px 0 5px;
    font-size: 18px;
}

.three-box p {
    font-size: 14px;
    color: #666;
}

/* ===== POSTS SPACING ===== */

#posts {
    margin-left: 20px;
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */

/* Tablets */
@media (max-width: 900px) {
    h1 {
        font-size: 26px;
    }
    .homeintro {
        padding: 0 15px;
        font-size: 15px;
    }
}

/* Mobile Screens */
@media (max-width: 600px) {

    /* Mobile navbar becomes stacked */
    .navbar ul {
        flex-direction: column;
        align-items: stretch;
    }

    .navbar a {
        padding: 12px;
    }

    h1 {
        font-size: 22px;
    }

    .three-box {
        padding: 20px;
    }

    .icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .homeintro {
        font-size: 14px;
    }
}
