*,
*::before,
*::after {
  box-sizing: border-box;
}

.login-open {
  background-color: rgba(255, 255, 255, 0);
  color: rgba(255, 255, 255, 0);
  border: none;
  position: fixed;
  right: 0px;
  top: 0px;
}

body {
  background-color: rgb(240, 240, 240);
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  position: relative;
}

.art-info-bar {
  padding: 8px;
  font-size: 16px;
}

.close-button {
  cursor: pointer;
  font-size: 14px;
  padding: 12px;
  border-radius: 12px;
  margin: 12px;
  background-color: rgba(255, 255, 255, 0);
  margin-bottom: 0px;
  transition: all 0.4s;
}

.close-button:hover {
  background-color: rgb(246, 246, 246);
}

.mini-title {
  font-size: 34px;
  font-weight: bold;
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-image: url('../images/simpler.svg?v=3');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  opacity: 1; 
  z-index: -1; 
}

.top-bar {
  background-color: rgb(255, 255, 255);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  z-index: 100;
  box-shadow: 1px 1px 14px #303030;
}


.logo-item{
  font-family: Garamond;
  padding: 16px;
  font-size: 18px;
  text-decoration: none;
  color: rgb(26, 26, 26);
}

.main-page {
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 264px;
  padding-top: 94px;
  flex-direction: column;
}


.personal-card {
  background-color: rgba(255, 255, 255, 0.62);
  max-width: 1000px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 1px 1px 14px rgba(95, 95, 95, 0.271);
  margin-bottom: 44px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-sizing: border-box;
}

.top-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.personal-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 18px;
  flex: 1;
  margin-left: 32px;
}

.name-title {
  margin-left: 24px;
  font-size: 38px;
  font-weight: bold;
}

.kokko {
  color: rgb(105, 105, 105);
}

.social-links {
  font-family: arial;
  margin-left: 24px;
  font-size: 16px;
  color: #000626;
}

.personal-image {
  margin: 32px;
  margin-right: 56px;
  max-width: 240px;
  height: auto;
  flex-shrink: 0;
  border-radius: 8px;
  border-style: solid;
  border-color: rgb(255, 255, 255);
  border-width: 2px;
}

.login-icon {
  width: 34px;
}

.bottom-section {
  display: flex;
  flex-direction: row;
  gap: 32px;
  border-top-style: solid;
  border-color: rgb(183, 183, 183);
  padding: 24px;
  margin-left: 24px;
  margin-right: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.personal-text {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  white-space: pre-line;
  min-width: 280px;
}

.exhibition-list {
  flex: 1;
  font-size: 16px;
  line-height: 1.3;
  white-space: pre-line;
}

.achievement {
  text-align: center;
  background-color: rgba(255, 255, 255, 0);
  padding: 12px;
  border-bottom-style: solid;
  border-width: 2px;
  border-color: #44444462;
  font-weight: bold;
  font-size: 14px;
}

.art-node-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 1000px;
  width: 100%;
}

.art-node-container {
  transition: opacity 0.3s ease;
}

.art-node-container.fading {
  opacity: 0;
}


.art-node {
  background-color: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 1px 1px 14px rgba(95, 95, 95, 0.517);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.4s;
}

.art-node:hover {
  background-color: rgb(255, 255, 255);
  box-shadow: 1px 1px 16px rgba(255, 255, 255, 0.621);
}

.artwork {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 24px;
}


.artwork-info {
  margin-top: 12px;
  padding: 12px;
}

.artwork-title {
  font-size: 18px;
  color: rgb(63, 63, 63);
}

.artwork-status {
  margin-top: 12px;
  color: rgb(63, 63, 63);
}

.mp-title{
  margin-bottom: 64px;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  width: 100%;

  background-color: rgba(255, 255, 255, 0.52);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 1px 1px 14px rgba(95, 95, 95, 0.438);
}

.filter-tab {
  margin-bottom: 32px;
  display: flex;
  flex-direction: row;
  gap: 24px;
  width: 100%;
  justify-content: center;
  border-bottom-style: solid;
  border-bottom-color: #4444445a;
  padding-bottom: 32px;
  border-width: 2px;
}

.filter-button, .load-more-btn {
  cursor: pointer;
  color: black;
  padding: 8px;
  width: 148px;
  padding-left: 12px;
  padding-right: 12px;
  text-align: center;
  border-radius: 12px;
  border-style: solid;
  border-color: rgba(191, 191, 191, 0.303);
  background-color: rgba(255, 255, 255, 0);

  align-items: center;
  justify-content: center;
  text-align: center;

  transition: all 0.4s;
}

.load-more-btn {
  margin-top: 34px;
  border-color: black;
}

.filter-button:hover, .load-more-btn:hover {
  background-color: rgba(191, 191, 191, 0.196);
}

.applied {
  border-color: black;
  font-size: 14px;
}

.art-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(30, 30, 30, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.hidden {
  display: none !important;
}

.modal-content {
  display: flex;
  flex-direction: row;
  background-color: rgb(255, 255, 255);
  border-radius: 16px;
  overflow: hidden;
  max-width: 900px;
  width: 90%;
  max-height: 80vh;
  padding: 24px;
  gap: 24px;
  box-shadow: 0px 0px 18px rgba(0, 0, 0, 0.4);
  position: relative;
}

.art-details {
  flex: 1;
  font-size: 16px;
  color: #444;
  line-height: 1.6;
  overflow-y: auto;
  max-height: 70vh;
}

.modal-image {
  max-width: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0px 0px 18px rgba(0, 0, 0, 0.4);
}

.artwork-full-info {
  font-size: 18px;
  padding: 24px;
  background-color: rgb(255, 255, 255);
  border-radius: 24px;
  margin-top: 34px;
}

.inp, .inb {
  padding: 12px;
}

.inp:focus {
  border: 3px solid #ffb5ec;
}

@media (max-width: 837px) {
  .main-page {
    padding: 24px;
    padding-top: 80px;
  }


  .filter-tab {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    width: 100%;
  }
  

  .art-node-container {
    width: 94%;
  }

  .artwork-full-info {
    width: 400px;
  }

  .personal-card {
    width: 94%;
    padding: 16px;
    margin-bottom: 0px;
  }

  .top-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .personal-image {
    max-width: 220px;
    width: 100%;
    padding: 0;
    margin: 0px;
    margin-bottom: 16px;
  }

  .personal-info {
    align-items: center;
    padding: 0;
    margin: 0px;
    margin-bottom: 24px;
  }

  .name-title {
    margin-top: 24px;
    font-size: 32px;
    margin-left: 0;
  }

  .social-links {
    margin-left: 0;
    font-size: 16px;
  }

  .bottom-section {
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    margin-left: 0;
    margin-right: 0;
  }

  .personal-text,
  .exhibition-list {
    min-width: 100%;
  }

  .achievement {
    font-size: 15px;
  }

  .mp-title {
    width: 94%;
    margin-top: 42px;
    text-align: center;
    margin-bottom: 42px;
  }

  .modal-content {
    text-align: center;
    flex-direction: column;
    align-items: center;
    width: 94%;
    max-width: none;
    padding: 16px;
    gap: 16px;
    max-height: 94vh;
    overflow-y: auto;
  }

  .modal-image {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    padding: 12px;
  }

  .art-details {
    max-height: none;
    overflow-y: visible;
  }
}

