/* Basic styling for your templates */
body {
    width: 100%;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.navbar {
    width: 100%;
    background-color: #333;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 0 2rem 0 #222222ff;
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

#btnControl {
    display: none;
}
@media screen and (min-width: 15cm) {
    .nav-menu-desktop {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .nav-menu-mobile {
        display: none;
    }
    .hamburger {
        display: none;
    }
}
@media screen and (max-width: 15cm) {
    #hamburger {
        display: flex;
        margin-top: 4px;
        margin-left: 20px;
        flex-direction: column;
        cursor: pointer;
    }
    .nav-menu-desktop {
        display: none;
    }
    .hamburger span {
        width: 20px;
        height: 2px;
        background: white;
        margin: 2px 0;
        transition: 0.3s;
        border-radius: 3px;
    }
    .nav-menu-mobile {
        display: none;
        width: 50%;
        top: 2cm;
        left: 25%;
        padding: 0;
        z-index: 100;
        list-style-type: none;
        box-shadow:  /* x y blur spread color */
            0 0 2cm 0 #000000ff, 3cm -1cm 3cm 0 #ff9900aa, -2cm 2cm 10cm 0 #00ff77aa;
    }
    /* ~ selects any of the next siblings */
    #btnControl:checked ~ .nav-menu-mobile {
        display: flex;
        flex-direction: column;
        position: fixed;
    }
}
.nav-container .nav-menu-desktop li {
    margin: 2rem;
}
.nav-container a {
    color: white;
    text-decoration: none;
}

.nav-container a:hover {
    color: #dddddd;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.hero-section {
    text-align: center;
    padding: 3rem 0;
    background-color: #f8f9fa;
    margin-bottom: 3rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    /* top | right | bottom | left */
    margin: 4rem 0 2rem 0;
}

.feature {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 1rem;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    margin: 0.5rem;
    font-weight: bold;
}

input.form-group,
textarea.form-group {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    height: 120px;
    resize: vertical;
}

#container {
    height: 600px;
    min-width: 310px;
}


/*
For the Tom Selection Groups
*/
.filter-selection .scientific {
	font-weight: normal;
	opacity: 0.3;
	margin: 0 0 0 2px;
}
.filter-selection .scientific::before {
	content: '(';
}
.filter-selection .scientific::after {
	content: ')';
}
.selection {
    display: inline-block;
}
.resolution-selection {
    min-width: 10rem;
}
.filter-selection {
    min-width: 20rem;
}
.select-cma {
    min-width: 20rem;
    z-index: 0;
}

/* Just overwrite width=100% to not take up so much empty space */
.form-control, .form-select {
    width: auto;
    display: inline;
}






/* Styling for the bubble chart section */

    .section {
        background: white;
        border-radius: 15px;
        padding: 30px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        max-width: 1200px;
        margin: 0 auto;
    }
    .controls {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
        padding: 20px;
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
        border-radius: 10px;
    }
    .control-group {
        display: flex;
        flex-direction: column;
    }
    label {
        font-weight: bold;
        margin-bottom: 8px;
        color: #333;
    }
    select {
        padding: 10px;
        border: 2px solid #ddd;
        border-radius: 8px;
        font-size: 14px;
        transition: border-color 0.3s ease;
    }
    select:focus {
        outline: none;
        border-color: #667eea;
    }
    #bubble-chart-container {
        height: 600px;
        overflow: hidden;
    }
    .loading {
        text-align: center;
        padding: 50px;
        color: #666;
    }

[data-tooltip]:hover::after {
    display: inline;
    position: absolute;
    content: attr(data-tooltip);
    border: 1px solid black;
    border-radius: .25rem;
    background: #fffff0;
    padding: .25em;
    margin: 8px;
    width: 6.5cm;
    z-index: 1;
}
