/*==========================================
  CrustFungi.Com CSS
===========================================*/

/* ----------------------------------------*/
/* ------------- GLOBAL -------------------*/
/* ----------------------------------------*/

/*-------------------------
  Fonts
-------------------------*/
@font-face { font-family: "Peich"; src: url("fonts/peich/peich.otf"); }
@font-face { font-family: "Roboto-Regular"; src: url("fonts/roboto/roboto-regular.ttf"); }
@font-face { font-family: "Roboto-Bold"; src: url("fonts/roboto/roboto-bold.ttf"); }

/*-------------------------
  Aesthetics
-------------------------*/
:root {
  --container-max-width: 1000px;
  --body-background: white;
  --nav-background: #f4efe9;
  --nav-text: #414141;
  --nav-text-light: #787878;
  --nav-text-xlight: #f5f5f5;
  --nav-text-hover: white;
  --nav-hover-bg: #a49d58;
  --nav-border: #f4e2cb;
  --content-background: white;
  --content-h1: #675354;
  --content-h2: #606F6F;
  --content-h3: #B08552;
  --content-h4: #837c74;
  --link-color: #a49d58;
  --link-hover: #F7D7BB;
  --success: #6C765B;
  --warning: #FF8A8A;
}  

/* Dark mode */
html.dark-mode {
  --body-background: #121212;
  --nav-background: #1c1a18;
  --nav-text: #e2e2e2;
  --nav-text-light: #b3b3b3;
  --nav-text-xlight: #282828;
  --nav-text-hover: #121212;
  --nav-hover-bg: #a49d58;
  --nav-border: #3a342c;
  --content-background: #161616;
  --content-h1: #e6cfcf;
  --content-h2: #c9d6d6;
  --content-h3: #e0b97a;
  --content-h4: #b9b0a5;
  --link-color: #d6cf7a;
  --link-hover: #f7d7bb;
  --success: #ACC2AB;
  --warning: #750000;
}
html.dark-mode .nav-container img,
html.dark-mode .footer-container img,
html.dark-mode .taxonomy-container img,
html.dark-mode img[src="/static/images/species/default_species.png"] {
  filter: invert(100%);
}

/* Scrollbar */
html {
  scrollbar-color: var(--nav-border) var(--body-background);
}

.button-major {
  background: var(--nav-hover-bg);
  color: var(--body-background);
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
}

.button-minor, 
input[type="file"]::file-selector-button {
  background-color: var(--nav-text-light);
  color: var(--body-background);
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 16px;
}

input[type="file"]::file-selector-button {
  background-color: var(--nav-text-xlight);
  color: var(--nav-text);
}

.button-major:hover,
.button-minor:hover,
input[type="file"]::file-selector-button:hover {
    opacity: 0.8;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--content-h3);
}

/* Visible focus for keyboard users when using tab */
:focus-visible {
  outline: 3px solid var(--nav-hover-bg);
  outline-offset: 2px;
}

/* Highlighted text */
::selection {
  background: var(--content-h2);  
  color: var(--body-background); 
}
::-moz-selection {
  background: var(--content-h2);
  color: var(--body-background);
}

/* Input placeholder text */
::placeholder {
  color: var(--nav-text-light);
  opacity: 0.8;
  font-style: italic;
}

/*-------------------------
  Spacing
-------------------------*/
* {
  box-sizing: border-box; /* include padding/border in element's total width/height */
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  overflow-y: scroll; /* keep scroll bar present to prevent layout shifts across pages */
}

body {
  min-height: 100vh; /* ensure body is at least full viewport height */
  display: flex;
  flex-direction: column;
  font-family: 'Roboto-Regular', Arial, sans-serif;
  background-color: var(--body-background);
  color: var(--nav-text);
  line-height: 1.6;
}

main {
  display: flex;
  flex: 1; /* push footer down if content is short, works with body {min-height: 100vh;} */
}

.nav-bounds {
  width: 100%;
}

.body-bounds, 
.footer-bounds { 
  max-width: var(--container-max-width); 
  width: 100%; 
  margin: 0 auto; /* center container */
}

/* If sidebar is present, remove centering and allow flexible width */
main.with-sidebar .body-bounds {  
  max-width: none;
  margin: 0;
}

.body-container { 
  background-color: var(--content-background);
  padding: 20px;
}

.footer-container {
  padding: 20px;
}

/*-------------------------
  Typography
-------------------------*/
h1 {
  color: var(--content-h1);
	margin: 30px 0 15px 0;
}

h2 {
  color: var(--content-h2);
  margin: 30px 0 15px 0;
}

h3 {
  color: var(--content-h3);
  margin: 20px 0 15px 0;
}

h4 {
  color: var(--content-h4);
  margin: 30px 0 15px 0;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
}

p, ul, ol, blockquote {
  font-size: 18px;
  margin-bottom: 15px;
}

ul, ol {
  padding-left: 40px;
}

blockquote {
  border-left: 3px solid var(--content-h3);
  padding-left: 10px;
  margin-left: 25px;
}

strong {
  font-family: 'Roboto-Bold', Arial, sans-serif;
  font-weight: 900;
}

hr {
  border: 0;
  border-top: 1px solid var(--nav-border);
  margin-bottom: 15px;
}

.helper-text {
  color: var(--nav-text-light);
  font-size: 15px;
}

.errors {
  color: var(--warning);
}

/*-------------------------
  Header
-------------------------*/
header {
  background-color: var(--nav-background);
  border-bottom: 5px solid var(--nav-border);
  font-family: 'Peich', Arial, sans-serif;
  display: flex;
  justify-content: center;
  position: relative; /* for positioning hamburger menu */
}

.nav-container {
  display: flex;
  align-items: center; /* vertically align logo and links despite different heights */
  gap: 30px;
  padding: 5px 20px;
}

.nav-logo img {
  width: 75px;
  margin-bottom: -10px;
}

.nav-links {
  display: flex;
}

.nav-links a {
  color: var(--nav-text);
  font-size: 28px;
  padding: 8px 16px 0 16px;
  border-radius: 4px;
}

.nav-links a:hover {
  color: var(--nav-text-hover);
  background-color: var(--nav-hover-bg);
}

.login {
  margin-left: auto;
  margin-top: 24px;
  display: flex;
}

.login a {
  font-size: 22px;
}

.site-search {
  display: flex;
  gap: 10px;
  align-items: center;
}

.site-search input {
  background: var(--body-background);
  padding: 6px 10px;
  border: 1px solid var(--nav-border);
  border-radius: 6px;
  font-size: 16px;
  color: var(--nav-text);
}

.site-search input:focus {
  outline: 3px solid var(--nav-hover-bg);
}

.dark-mode-toggle {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 25px;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.3s ease;
  color: var(--nav-text);
}

.dark-mode-icon::before {
  content: "⏾";
  opacity: 0.8;
}

html.dark-mode .dark-mode-icon::before {
  content: "☀︎";
}

.dark-mode-toggle:hover {
  background: rgba(0,0,0,0.1);
}

html.dark-mode .dark-mode-toggle:hover {
  background: rgba(255,255,255,0.1);
}

/*-------------------------
  Hamburger Menu
-------------------------*/
.hamburger {
  display: none;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 25px;
  transform-origin: center;
}

.hamburger div {
  width: 36px;
  height: 5px;
  background-color: var(--nav-text);
  margin: 5px 0;
  transition: 0.3s ease;
}

/* .change toggled with JS function in main.js */
.hamburger.change .bar1 { transform: translateY(10px) rotate(-45deg); }
.hamburger.change .bar2 { opacity: 0; }
.hamburger.change .bar3 { transform: translateY(-10px) rotate(45deg); }

/*-------------------------
  Responsive Navigation
-------------------------*/
@media (max-width: 1300px) {
  .nav-links, 
  .login, 
  .site-search input,   /* Needs to be explicitly called for some reason */
  .site-search button,  /* Needs to be explicitly called for some reason */
  .dark-mode-toggle {
    display: none;
  }

  .hamburger {
    display: block;
  }

  nav.responsive .nav-container {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  nav.responsive .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: -20px;
    gap: 0;
  }
  
  nav.responsive .login {
    display: flex;
    justify-content: center;
    margin: -20px 0;
    margin-left: 15px;
  }

  nav.responsive .site-search {
    display: flex;
    margin: -10px 0 20px 15px;
  }
  
  nav.responsive .site-search input,
  nav.responsive .site-search button {
    display: flex;
  }

  nav.responsive .nav-links,
  nav.responsive .login,
  nav.responsive .site-search {
    transform: translateY(0);
    animation: navFadeIn 0.5s ease;
  }
}

@keyframes navFadeIn {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Do not allow logging in on small screens */
@media (max-width: 960px) {
  nav.responsive .login {
    display: none;
  }
}

/*-------------------------
  References
-------------------------*/
.references ol {
  padding: 0;
  margin: 0;
}

.references li {
  list-style-type: none;
} 


/*-------------------------
  Footer
-------------------------*/
footer {
  background-color: var(--nav-background);
  color: var(--nav-text);
  border-top: 5px solid var(--nav-border);
  text-align: center;
}

.footer-logo img {
  margin-bottom: -20px;
}

.footer-logo p {
  font-family: 'Peich', Arial, sans-serif;
  font-size: 50px;
  margin: 0;
}

.footer-copy {
  margin-top: -20px;
  font-size: 15.5px;
}

.footer-links {
  margin-top: -10px;
}

.footer-links a {
  color: var(--nav-text);
  margin: 0 7px;
  font-size: 18px;
}

.footer-links a:hover {
  color: var(--nav-hover-bg);
}

.footer-tagline {
  margin-top: 6px;
  font-style: italic;
}

.footer-social img {
  width: 24px;
  transform: scale(1.2);
}

.footer-social img:hover {
  opacity: 0.6;
}

.footer-logo.shake {
  transform-origin: center;
  animation: shake 0.8s cubic-bezier(.36,.07,.19,.97);
}

@keyframes shake {
    0%   { transform: translate(0, 0) rotate(0deg); }
    20%  { transform: translate(-2px, 0) rotate(-5deg); }
    40%  { transform: translate(2px, 0) rotate(5deg); }
    60%  { transform: translate(-2px, 0) rotate(-5deg); }
    80%  { transform: translate(2px, 0) rotate(5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* ----------------------------------------*/
/* -------------- PAGES -------------------*/
/* ----------------------------------------*/

/*-------------------------
  Home
-------------------------*/
.index {
  opacity: 0;        /* hide it originally */
  transition: opacity 0.3s ease-in;
}

.index.ready {
  opacity: 1;        /* fade in when JS runs */
}

#homeCarousel {
  --f-carousel-gap: 20px;
  --f-carousel-slide-width: 60%;
  --f-carousel-slide-padding: 10px;
  --f-carousel-slide-bg: var(--body-background);
  --f-arrow-pos: 10px;
  --f-arrow-bg: rgba(255, 255, 255, 0.75);
  --f-arrow-hover-bg: rgba(255, 255, 255, 1);
  --f-arrow-color: #333;
  --f-arrow-width: 40px;
  --f-arrow-height: 40px;
  --f-arrow-svg-width: 20px;
  --f-arrow-svg-height: 20px;
  --f-arrow-svg-stroke-width: 2px;
  --f-arrow-border-radius: 50%;
}

#homeCarousel .f-carousel__slide {
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#homeCarousel img {
  border-radius: 12px;
  width: 100%;
  max-width: 760px;
  height: auto;
}

#homeCarousel p {
  margin: 0;
  font-size: 22px;
}

/*-------------------------
  Introduction
-------------------------*/
.intro h3 {
  margin-top: 25px;
}

.intro-panels-container {
  display: flex;
  max-width: var(--container-max-width);
  gap: 20px;
  margin-top: 40px;
}

.intro-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  background: var(--nav-background);
  border-radius: 15px;
  padding: 10px;
  gap: 10px;
}

.intro-panel img {
  border-radius: 15px;
  width: 100%;
}

.intro-panel p {
  margin: auto 0;
  color: var(--nav-hover-bg)
}

.intro-fig-description p {
  font-size: 16px;
  margin-top: 10px;
  margin-bottom: 40px;
}

/*-------------------------
  Species
-------------------------*/
.taxonomy-sidebar {
  width: 375px;
  flex-shrink: 0;
  flex-grow: 0;
  padding: 20px;
  position: sticky;
  top: 0;
  align-self: start;
}

.taxonomy-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2px 0;
}

.taxonomy-sidebar-header h3 {
  margin: 0;
}

.taxonomy-sidebar-header .clear-filters {
  margin-top: 16px;
}

.taxonomy-sidebar .facet {
  display: grid;
  grid-template-columns: 100px 1fr;
  margin-bottom: 10px;
}

.taxonomy-sidebar .facet:last-child {
  margin-bottom: 0;
}

.taxonomy-sidebar .facet .facet-label h4 {
  margin: 0;
  font-size: 18px;
}

.taxonomy-sidebar .facet-options {
  max-height: 115px;
  overflow-y: auto;
  margin: 0;
  padding: 6px 10px;
  list-style: none;
  border: 1px solid var(--nav-border);
  background-color: var(--nav-background);
  border-radius: 6px;
}

.taxonomy-sidebar li {
  line-height: 1.2;
  margin: 4px 0;
}

.taxonomy-sidebar a {
  text-decoration: none;
  display: inline-block;
}

.taxonomy-sidebar .count {
  color: var(--nav-text-light);
  font-size: 14px;
}

.is-updating {
  visibility: hidden;
}

/* Contains header and container */
.species-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 15px;
}

.species-list-header, 
.species-list-container {
  visibility: hidden; /* hide by default to prevent flashing, reveal with JS */
}

/* The width of this element is defined in a JS resize function in main.js */
.species-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--nav-text-light);
}

.right-header-container {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 15px;
}

.right-header-container #new-profile {
  margin: 0;
  font-size: 16px;
}

.right-header-container .image-size-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.right-header-container .image-size-btn {
  background: none;
  border: 1px solid var(--nav-border);
  border-radius: 6px;
  color: var(--nav-text-light);
}

.right-header-container .image-size-btn:hover, 
.right-header-container .image-size-btn.active {
  background: var(--nav-hover-bg);
  color: var(--body-background);
}

/* The width of this is defined in a JS resize function in main.js */
.species-list-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 auto;
}

.species-list {
  --species-img-size: 220px; /* default = small */
}

.species-list.large-images {
  --species-img-size: 460px;
}

.species-list-item {
  width: var(--species-img-size);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.species-list-item img {
  width: var(--species-img-size);
  border-radius: 6px;
}

.species-list-item p {
  height: 50px;
  margin-bottom: 5px;
}

.species-list-item img:hover {
  opacity: 0.8;
}

.sidebar-toggle {
  display: none;
}

@media (max-width: 960px) {
  main.with-sidebar {
    flex-direction: column;
  }

  .taxonomy-sidebar {
    position: static;
  }

  .taxonomy-sidebar .taxonomy-sidebar-header,
  .taxonomy-sidebar .facet,
  .species-list-header #new-profile {
    display: none;
  }

  .sidebar-toggle {
    display: flex;
    width: 100px;
    padding: 5px;
    background-color: var(--nav-background);
    border: 1px solid var(--nav-border);
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    justify-content: center;
    margin-bottom: -20px;
  }

  .sidebar-toggle:hover {
    opacity: 0.8;
  }

  .sidebar-toggle p {
    color: var(--nav-hover-bg);
    font-size: 16px;
    margin: 0;
  }

  .taxonomy-sidebar.active .taxonomy-sidebar-header,
  .taxonomy-sidebar.active .facet
  {
    display: block;
  }

  .taxonomy-sidebar.active .sidebar-toggle {
    margin-bottom: 10px;
  }

  .species-list-header {
    max-width: 100%;
  }
}

/*-------------------------
  Species Profiles
-------------------------*/
.species-profile {
  opacity: 0;        /* hide it originally */
  transition: opacity 0.3s ease-in;
}

.species-profile.ready {
  opacity: 1;        /* fade in when JS runs */
}

.species-gallery {
  margin: 10px 0;
}

#speciesCarousel {
  display: flex;
  overflow: hidden;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  --f-arrow-pos: 10px;
  --f-arrow-bg: rgba(255, 255, 255, 0.75);
  --f-arrow-hover-bg: rgba(255, 255, 255, 1);
  --f-arrow-color: #333;
  --f-arrow-width: 40px;
  --f-arrow-height: 40px;
  --f-arrow-svg-width: 20px;
  --f-arrow-svg-height: 20px;
  --f-arrow-svg-stroke-width: 2px;
  --f-arrow-border-radius: 50%;
}

#speciesCarousel .f-carousel__slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#speciesCarousel img {
  width: 100%;
  max-width: 960px;
  height: auto;
  object-fit: contain;
}

#speciesCarousel figure {
  margin: 0;
  text-align: center;
}

.image-caption {
  font-size: 17px;
  color: var(--nav-text-light);
}

.profile-header h1 {
  margin-top: 30px;
  margin-bottom: -37px;
}

.taxonomy-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: -20px;
  margin-bottom: 15px;
}

.taxonomy {
    margin: 0;
}

.tax-icon {
    height: 22px;
    margin-top: 10px;
}

.tax-icon:hover {
  opacity: 0.5;
}

#copy-citation-btn {
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, background-color 0.2s ease;
  visibility: hidden; /* remove this line to display */
}

#copy-citation-btn.copied {
  background-color: var(--success);
  color: var(--body-background);
  transform: scale(1.05);
}

#copy-citation-btn.copied::after {
  content: "✓ Copied!";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: var(--success);
  opacity: 0;
  animation: copied-fade 1.2s ease forwards;
}

@keyframes copied-fade {
  0% {
    opacity: 0;
    transform: translate(-50%, 6px);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -6px);
  }
}

.profile-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 960px) {
  #edit-profile {
    display: none;
  }
}

/*-------------------------
  About
-------------------------*/
.about img {
  max-width: 960px;
  width: 100%;
  margin-top: 20px;
}

.about-fig-description p {
  font-size: 16px;
  margin-top: 10px;
}

/*-------------------------
  Tutorial
-------------------------*/
.tutorial img {
  max-width: 960px;
  width: 100%;
}

/* ----------------------------------------*/
/* -------------- FORMS -------------------*/
/* ----------------------------------------*/

/*-------------------------
  General
-------------------------*/
form h3 {
  margin-top: 40px;
}

form input, 
form textarea,
form select {
  background: var(--body-background);
  border: 1px solid var(--nav-border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 16px;
  color: var(--nav-text);
}

form p:has(input) {
  display: grid;
  grid-template-columns: 150px 1fr;
}

form p:has(textarea) {
  display: flex;
  flex-direction: column;
}

form button[name="submit"],
form a.button-minor {
  display: inline-block;
  margin-right: 10px;
}

a.button-minor,
a.button-major {
  color: var(--body-background) !important;
}

a.button-minor:hover,
a.button-major:hover {
  color: var(--body-background) !important;
}

.tox-statusbar {
  display: none !important; /* hide TinyMCE status bar */
}

/*-------------------------
  User forms
-------------------------*/
.login-form,
.registration-form {
  margin: 30px 0;
}

.registration-form ul {
  list-style-type: none;
  margin-left: -40px;
  color: var(--content-h3);
}

.registration-form p {
  display: block;
  margin-bottom: 30px;
}

.registration-form input {
  margin: 0 10px;
}

/*-------------------------
  Species Forms
-------------------------*/
.tox-tinymce {
  margin-bottom: 20px;
}

.image-form .tox-tinymce {
  height: 140px !important;
}

.literature-scroll {
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--nav-border);
  border-radius: 6px;
  background: var(--body-background);
  margin-bottom: 10px;
}

.literature-scroll label {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 20px;
  align-items: start;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 8px;
}

.literature-scroll input[type="checkbox"] {
  margin: 0;
  margin-top: 7px;
  width: 15px;
  height: 15px;
  cursor: pointer;
  color-scheme: light;
}

html.dark-mode .literature-scroll input[type="checkbox"] {
  color-scheme: dark;
}

#literature-modal {
  margin-bottom: 80px;
}

.literature-field-wrapper {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: start;
  gap: 10px;
  margin-bottom: 10px;
}

.literature-field-wrapper .helper-text,
.literature-field-wrapper .errors {
  grid-column: 2;
  margin-top: -10px;
}

.form-images {
  margin-top: 60px;
}

#id_thumbnail {
  grid-column: span 2;
}

/* Remove clear checkbox for thumbnail upload */
p:has(input[type="checkbox"]) input[type="checkbox"],
p:has(input[type="checkbox"]) br,
label[for="thumbnail-clear_id"] {
  display: none;
}

#image-formset {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.image-formset-item {
  display: flex;
  flex-direction: row;
  gap: 8px;
  position: relative;
}

.image-form {
  background-color: var(--body-background);
  display: grid;
  grid-template-columns: 2fr 3fr;  
  gap: 30px;    
  padding: 15px;
  border: 2px solid var(--nav-border);
  border-radius: 6px;
  width: 100%;
}

.image-form img {
  display: block;
  align-self: center;
  max-width: 100%; 
  object-fit: cover;
  border-radius: 4px;
}

.image-form p {
  margin: 0;
  font-size: 16px;
  align-items: center;  
}

.image-form .tox-tinymce {
  margin: 0;
}

.field-wrapper p {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.field-wrapper p:last-child {
  margin-bottom: 0;
}

.image-form br,
.image-form label[for$="-image"],
.image-form input[type="checkbox"][name$="-DELETE"], 
.image-form input[type="checkbox"][name$="-image-clear"],
.image-form input[type="checkbox"][name$="-image-clear"] + label {
  display: none;
}

.image-buttons {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.delete-image-btn {
  background-color: var(--warning);
  margin-bottom: 30px;
}

.delete-image-btn,
.move-up-btn,
.move-down-btn {
  border-radius: 50%;
  padding: 4px 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

.move-up-btn:disabled,
.move-down-btn:disabled,
#add-image-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#save-species-btn {
  margin: 50px 0 30px 0;
}

/*-------------------------
  Contact Form
-------------------------*/
.contact {
  margin: 30px 0;
}

.contact-container {
  max-width: 700px;
  margin: 0 auto;
}

.contact-intro {
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.contact-form .form-group label {
  margin-bottom: 8px;
  color: var(--content-h3);
}

.contact-form .form-control {
  padding: 10px 12px;
  border: 1px solid var(--nav-border);
  border-radius: 6px;
  font-size: 16px;
  background-color: var(--body-background);
  color: var(--nav-text);
  transition: border-color 0.2s ease;
}

.contact-form .form-control:focus {
  outline: none;
  border-color: var(--link-color);
}

.form-errors {
  color: var(--warning);
  font-size: 14px;
  margin-top: 5px;
}

.messages {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alert {
  padding: 12px 16px;
  border-radius: 6px;
  border-left: 4px solid;
}

.alert-success {
  background-color: rgba(76, 175, 80, 0.1);
  border-color: var(--success);
  color: var(--success);
}

.alert-error {
  background-color: rgba(244, 67, 54, 0.1);
  border-color: var(--warning);
  color: var(--warning);
}

.contact-form button[type="submit"] {
  align-self: flex-start;
  margin-top: 10px;
}