@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

:root {
  --profile-accent: #69534b;
  --profile-btn-bg: #aab2b3;
  --profile-btn-text: #313a42;
  --profile-btn-hover-bg: #cbd5e0;
  --profile-segment-bg: #6A687A;
  --profile-modal-bg: #877878;
  --profile-bio-bg: #463934;
  --profile-modal-hover:  #6A564E;
  --border-form-color: #91807a;
  --border-form-color-active: #ebf5f7;
  --navlink-hover: #7f4c31;
  --site-footer-color:#f0e6d2;
  --site-footer-bg:rgba(20, 15, 10, 0.4);
  --site-footer-border-top: rgba(255, 255, 255, 0.1);

  --main-text-color: #f0f0f0;
  --link-text-color: #6681da;
  --linkvisited-text-color: #a266da;
  --sub-text-color: #c0c0c0;
  --highlight-text-color: #ffffff;
  --main-bg-color: #473226;
  --secondary-bg-color: #3b2921;
  --sub-bg-color: #221711;
  --highlight-bg-color: #dddddd4d;
  --overlay-color: #c0c0c069;
  --bottom-text-color: #000000;
  
  --button-color: #c0c0c069;
  --button-color-inverse: #3f3f3f69;
}

.invert {
  filter: invert(100%);
}

.hoverable-icon, .hoverable-button {
	transition: all 0.1s ease-in-out;
}

.hoverable-button:hover {
	filter: brightness(110%);
}

.hoverable-icon:hover {
	border-radius: 50%;
	height: 2em;
	padding: 0.25em;
	background-color: var(--button-color);
}

.invert.hoverable-icon:hover {
	background-color: var(--button-color-inverse);
}

body {
  background-image: url('/static/wood-veneer-598-mm-architextures.jpg');
  background-repeat: repeat;
  background-attachment: fixed;
  background-size: 10%;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  margin: 0;
  padding: 0;
}

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 4em;
  background: var(--main-bg-color);
  border-bottom: 4px solid var(--sub-bg-color);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2vw;
  box-sizing: border-box;
}

#nav-homepaw {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

#navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
}

#navbar-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--site-footer-color);
  border-radius: 2px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

#navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
}

#navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

#navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
}

#logo-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
}

#homepagebanner {
  font-size: 1.5em;
 text-decoration: none;

  color: var(--main-text-color);
  
}

#navlinks {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'Arial', sans-serif;
}

#navlinks ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

#navlinks ul li {
  margin: 0 1.5em;
  padding: 0;
  background: none;
  border-radius: 0;
}

#navlinks ul li a {
  font-size: 1em;
  padding: 0.6em 0.8em;
  border-radius: 0.3em;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  color: var(--link-text-color);
}

#navlinks ul li a:hover {
  background-color: var(--navlink-hover);
  color: var(--highlight-text-color);
  box-shadow: none;
}

.logout-button {
  background: none;
  border: none;
  color: var(--main-text-color);
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: center;
  line-height: 5rem;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: transparent;
  color: var(--main-text-color);
  border: none;
  padding: 0.5em 0.8em;
  font-size: 1em;
  cursor: pointer;
  border-radius: 0.3em;
  transition: background 0.2s ease;
}

.dropbtn:hover {
  background-color: var(--navlink-hover);
  color: var(--highlight-text-color);
}

.dropdown-content {
  position: absolute;
  right: 0;
  background-color: var(--main-bg-color);
  min-width: 140px;
  border-radius: 0.3em;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 10001;
  display: none;
}

.dropdown-content a {
  display: block;
  padding: 0.6em 1em;
  font-size: 0.95em;
  text-decoration: none;
  color: var(--site-footer-color);
  transition: background 0.2s ease;
}

.dropdown-content a:hover {
  background-color: var(--navlink-hover);
  color: var(--highlight-text-color);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-arrow {
  font-size: 0.6em;
   margin-left: 0.2em;
  vertical-align: middle;
 
}

.paw {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
  
  background: none;
  border-radius: 0;
  cursor: pointer;
}

.paw img {
  width: 60px;
  height: 60px;
  display: block;
  transition: transform 0.1s ease-in-out;
}

.paw img:hover {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(2deg); }
  50% { transform: rotate(-2deg); }
  75% { transform: rotate(1deg); }
  100% { transform: rotate(0deg); }
}
.paw img:hover {
  animation: shake 0.4s ease-in-out;
}

#content {
  width: calc(90% + 2em);
  min-height: calc(100vh - 10em);
  margin: 6em auto 0;
  margin-bottom: 4em;

  padding: 1em;
  box-sizing: border-box;
  border-radius: 1em;
  background-color: var(--sub-bg-color);
}

#enddiv {
  display: flex;
  flex-direction: column;
  height: 8em;
}

#copyrightnotice, #contactemail {
  margin: auto;
  text-align: center;
  color: var(--bottom-text-color);
}

h1, h2, h3, p, ul, li, form {
  color: var(--main-text-color);
  word-wrap: break-word;
  hyphens: auto;
}

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

a:visited {
  color: var(--linkvisited-text-color);
}

input, textarea, button {
 
  color: var(--main-text-color);
}

#site-footer {
  background-color: var(--site-footer-bg); 
  color: var(--site-footer-color);
 
  font-size: 0.9em;
  padding: 1em 0;
  text-align: center;
  backdrop-filter: blur(2px);
  border-top: 1px solid var(--site-footer-border-top);
}

.footer-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8em;
  flex-wrap: wrap;
}

.footer-row a {
  color: #c8b6a5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-row a:hover {
  color: var(--highlight-text-color);
  text-decoration: underline;
}

.footer-separator {
  color: #a1887f;
  font-weight: bold;
}



/* --- Responsiivisuus mobiilissa --- */
@media (max-width: 700px) {
  #navlinks ul {
    display: none;
    flex-direction: column;
    background: var(--main-bg-color);
    width: 100vw;
    position: absolute;
    top: 4em;
    left: 0;
    padding: 1em 0;
    z-index: 1000;
    border-top: 1px solid var(--sub-bg-color);
  }

  #navlinks ul.visible {
    display: flex;
  }

  #navlinks ul li {
    margin: 0.8em 0;
    text-align: center;
  }

  #navbar-toggle {
    display: flex;
  }
}

@media (min-width: 701px) {
  #navlinks ul {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
  }

  #navbar-toggle {
    display: none;
  }
}

@media all and (max-width: 545px) {
  #navlinks ul li {
    width: 100%;
    text-align: center;
  }
  .paw {
    margin: 0 auto;
    padding: 12px 0;
  }
}

@media all and (min-width: 545px) {
  nav ul {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  nav ul li a {
    padding: 20px;
  }
  .paw svg {
    width: 24px;
    height: 24px;
  }
}

#navlinks ul li a,
#navlinks ul li a:visited,
#navlinks ul li a:hover,
#navlinks ul li a:active {
   color: var(--main-text-color);
}

.button-small {
  background: var(--profile-accent);
  border: none;
  border-radius: 50rem !important;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: background 0.3s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(60,60,60,0.07);
  padding: 0.32rem 1.2rem;
}

.button-large {
  display: inline-block;
  background: var(--profile-accent);
  padding: 0.5rem 1.3rem;
  border-radius: 1.2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-top: 0.7rem;
  border: none;
}

.button-cancel {
  border: 2px solid var(--profile-accent);
  background: transparent !important;
}