/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
    min-width: 480px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    width: 180px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #46c0ed;
}

.auth-button {
    background-color: #46c0ed;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.auth-button:hover {
    background-color: #3aa8d2;
}

/* User Dropdown Styles */
.user-dropdown {
    display: none;
    position: relative;
}

.user-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #46c0ed;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.user-icon:hover {
    background-color: #3aa8d2;
}

.user-menu {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    min-width: 200px;
    z-index: 100;
}

.user-email {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.user-menu-link {
    font-size: 0.9rem;
    color: #333;
    width: 100%;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.user-menu-link a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.user-menu-link a:hover {
    color: #46c0ed;
}

.logout-button {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    width: 100%;
}

.logout-button:hover {
    background-color: #d32f2f;
}

.flash-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    padding: 10px 10px;
    border-radius: 4px;
    transform: translate(-50%, -50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 930;
}

.photo-menu {
    display: none;
    position: fixed;
    width: 90%;
    top: 50%;
    left: 50%;
    padding: 15px;
    border-radius: 4px;
    transform: translate(-50%, -50%);
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 910;
}

.photo-menu-button {
    color: black;
    background-color: #cccccc;    
    width: 95%;
    padding: 10px;
    margin: 5px;
    border-radius: 4px;
    font-size: 1.1em;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 70px;
}

.hero-content {
    width: 100%;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: #a4c616;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #8ca813;
}

.load-more-button {
    width: 90%;
    text-align: center;
    align-items: center;
    background-color: #a4c616;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.load-more-button:hover {
    background-color: #8ca813;
}

.message-button {
    width: 90%;
    text-align: center;
    align-items: center;
    background-color: #e5cb00;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

button.annotate {
    background-color: #24ab31;
    color: white;
    border: none;
    margin: 4px 2px 4px 4px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    box-sizing: border-box;
    aspect-ratio: 1;
    height: 100%;
}

button.annotate-update {
    background-color: #2fc7d4;
    color: white;
    border: none;
    margin: 4px 2px 4px 4px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    box-sizing: border-box;
    aspect-ratio: 1;
    height: 100%;
}

div.userbundle {
    display: block;
    width: 100%;
    padding: 10px;
}

button.annotate:hover {
    background-color: #197021;
}

button.annotate-update:hover {
    background-color: #18686f;
}

button.annotate-update:hover:disabled {
    background-color: transparent;
}

button.annotate:disabled, .annotate-update:disabled {
    background-color: transparent;
    color: transparent;
}

textarea.annotate {
    height: 100%;
    box-sizing: border-box; 
    margin: 4px 2px 4px 4px;
    flex: 1;
    resize: none;
    height: 100%;
}

div.annotate {
    width: 100%;
    height: 5em;
    display: flex;
    box-sizing: border-box;
}

/* Features Section */
.features {
    padding: 60px 0;
    background-color: white;
}

.naked-features {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #f0f0f0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #555;
    font-size: 1.8rem;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.feature {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
    padding: 20px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: #f0f8ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #46c0ed;
    font-size: 2rem;
}

.feature h3 {
    margin-bottom: 15px;
    color: #444;
}

ul {
    padding: 5px;
    margin-left: 25px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 20px;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive Styles */
@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        padding: 15px 0;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .nav-links {
        margin-bottom: 15px;
    }
    
    .nav-links li {
        margin: 0 10px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .features-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .feature {
        max-width: 100%;
    }
    
    .footer-links {
        flex-wrap: wrap;
    }
    
    .footer-links li {
        margin: 5px 10px;
    }
}
