/*
Theme Name: Woodcircles
Theme URI: https://www.icons.it/
Author: IconS People
Author URI: https://www.icons.it/people/
Description: Made with love by ICONS People
Version: 1.1
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.icons.com/
Text Domain: LANDING ICONS
*/

@import url('css/style.min.css');

.storylink:hover {
  cursor: pointer;
}

.grid-glossary {
  display: grid;
  grid-template-columns: 10fr 1fr;
  gap: 2rem;
  justify-content: space-evenly;
}

.glossary-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  margin-bottom: 40px;
}

.glossary-letter-heading {
  font-size: 2rem;
  margin-top: 40px;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.5rem;
}

.glossary-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.glossary-anchor-letter a:focus {
  outline: none;
  background-color: var(--green);
  color: white;
}


/* .glossary-index-container {
  position: sticky;
  top: 100px;
} */

.glossary-index {
  position: sticky;
  top: 100px;
  display: flex;
  justify-content: flex-end;
}



.glossary-index-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 100px);
  border-top: 1px solid var(--green);
  border-bottom: 1px solid var(--green);
  overflow-y: auto;
  scrollbar-width: none;
  max-width: 60px;
  /* Firefox */
}

/* Chrome, Safari, Edge */
.glossary-index-container::-webkit-scrollbar {
  display: none;
}


/* Tutti i blocchi lettera */
.glossary-anchor-letter {
  width: 60px;
  height: 70px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--green);
  border-right: 1px solid var(--green);
  box-sizing: border-box;
  font-size: 2.3rem;
}

/* Link all'interno */
.glossary-anchor-letter a {
  text-decoration: none;
  color: #333;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Hover */
.glossary-anchor-letter a:hover {
  color: #a52a2a;
}

/* Stato "attivo" della lettera corrente */
.glossary-anchor-letter.active,
.glossary-anchor-letter.active a {
  background-color: var(--green);
  color: white;
  border: 1px solid var(--green);
}

.glossary-card .text-wrapper p {
  color: #000;
}


@media screen and (max-width: 767px) {
  .glossary-anchor-letter {
    font-size: 1.3rem;
    width: 40px;
  }

  .glossary-card {
    grid-template-columns: 1fr;
  }

  .glossary-card .text-wrapper p:last-child {
    margin-bottom: 0;
  }

  .glossary-index {
    top: 60px;
  }

  .glossary-index-container {
    top: 60px;
    max-height: calc(100vh - 60px);
  }

}