/* Import fonts from index.html */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Merriweather&display=swap');

body {
    font-family: 'Merriweather', serif;
    margin: 0;
    padding: 1.25em;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    font-size: 1rem;
    text-align: left;
    box-shadow: 0 0.125em 0.3125em rgba(0, 0, 0, 0.1);
}

header {
    background: linear-gradient(to right, #003087, #0059b3);
    color: white;
    padding: 3em 0;
    display: flex;
    align-items: center;
}

header .logo {
    max-width: 10%;
    height: auto;
    margin-right: 10px;
    filter: invert(1);
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    font-size: 2.8em;
}

header p.tagline {
    font-size: 1.2em;
    margin: 0.5em 0;
    text-align: center;
}

.title-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

nav {
    background: #4d4d4d;
    padding: 1em;
    text-align: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 1.5em;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

nav a:hover {
    color: #00cc00;
}

.container {
    max-width: 1000px;
    margin: 2em auto;
    padding: 0 20px;
}

.section {
    background: white;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2em;
}

.section h2 {
    font-family: 'Montserrat', sans-serif;
    color: #003087;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: #00cc00;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    margin-top: 1em;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #009900;
}

.values {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: space-between;
}

.value-item {
    flex: 1 1 45%;
    padding: 1em;
    background: #e6e6e6;
    border-radius: 4px;
}

form {
    background: white;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2em;
}

label {
    display: block;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #333;
}

input[type="text"],
input[type="url"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Merriweather', serif;
}

input.form-input,
select.form-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Merriweather', serif;
}

textarea {
    height: 150px;
    resize: vertical;
}

input[type="file"] {
    display: block;
    margin-bottom: 10px;
    font-family: 'Merriweather', serif;
}

button {
    padding: 10px 20px;
    background: #00cc00;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    font-weight: 700;
}

button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    background: #009900;
}

#result {
    margin-top: 20px;
    padding: 2em;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: 'Merriweather', serif;
    color: #003366;
}

#result p {
    margin: 10px 0;
}

#result p.error {
    color: red;
}

#photoPreview {
    max-width: 100%;
    margin-top: 10px;
    border-radius: 4px;
    display: block;
}

#consultForm input,
#consultForm textarea {
    width: 100%;
    margin-bottom: 10px;
}

.error {
    color: red;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.loading {
    color: #003087;
    font-style: italic;
    font-family: 'Merriweather', serif;
}

footer {
    text-align: center;
    padding: 1em;
    background: #4d4d4d;
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
}

.form-3d-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.form-section {
    flex: 1 1 45%;
    min-width: 300px;
}

.canvas-section {
    flex: 1 1 45%;
    min-width: 300px;
}

.anthro-container {
    display: flex;
    gap: 10px;
}

.anthro-select {
    flex: 2;
}

.anthro-input {
    flex: 1;
}

.funding-section h3 {
    font-family: 'Montserrat', sans-serif;
    color: #003087;
    font-size: 1.5em;
    margin-bottom: 1em;
}

.funding-list {
    list-style: disc;
    padding-left: 20px;
}

.funding-item {
    margin-bottom: 1em;
    font-family: 'Merriweather', serif;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2em;
    }
    nav a {
        display: block;
        margin: 0.5em 0;
    }
    .container {
        padding: 0 10px;
    }
    .section,
    form,
    #result {
        padding: 1.5em;
    }
    .value-item {
        flex: 1 1 100%;
    }
    .form-3d-container {
        flex-direction: column;
    }
    .form-section,
    .canvas-section {
        flex: 1 1 100%;
    }
}

.podcast-player {
    margin-top: 1em;
    width: 100%;
    max-width: 1000px;
}

nav a.current {
    color: #00cc00;
    text-decoration: underline;
}

.founder-bio {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1em;
}

.founder-bio h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #003087;
    margin: 0;
    font-size: 1.8em;
}

.founder-bio p {
    font-family: 'Merriweather', serif;
    color: #333;
    margin: 0.5em 0;
    font-size: 1rem;
}

.founder-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .founder-bio {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
    .founder-image {
        margin-right: 2em;
        margin-bottom: 0;
    }
}

.canvas-section canvas {
  width: 100% !important;
  height: auto !important;
  max-height: 500px;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: #ccc;
  border-radius: 4px;
  outline: none;
  margin-bottom: 10px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #00cc00;
  border-radius: 50%;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb:hover {
  background: #009900;
}

.infographic {
    display: flex;
    justify-content: center;
    margin: 1em 0;
}

.infographic img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
