#burger {
    padding: 10px;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

button {
    display: block;
    margin: 5px 0;
    background: var(--tone-1);
    border: 3px solid var(--tone-0);
    color: var(--tone-0);
    padding: 6px 10px;
    /*border-radius: 8px;*/
    cursor: pointer;
    pointer-events: all;
    transition: background 0.2s;
}

button:hover {
    background: var(--tone-2);
}

#burgerMenu {
    padding: 10px;
    position: absolute;
    top: 52px;
    display: flex;
    flex-direction: column;
    text-align: right;
    margin: 5px 0;
    background: var(--tone-1);
    border: 3px solid var(--tone-0);
    color: var(--tone-0);
}

#burgerMenu a {
  text-decoration: none;
  font-size: 20px;
  color: var(--tone-0);
}

#burgerMenu a:hover {
  background-color: var(--tone-2);
}

.hidden {
  display: none !important;
}

.bottom {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bottom-area {
    display: flex;
}

.side-left-bottom .bottom-area {
    justify-content: right;
    text-align: right;
}

.bottom-area img {
    width: 48px;
    height: 48px;
}

.title {
    width: 100%;
    align-items: center;
    text-align: center;
    justify-content: center;
    opacity: 1;
}

.fixed {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    opacity: 0;
}

.markdown {
    font-size: 20px;
    background-image: url(./ui_tile.png);
    background-size: 128px;
    overflow-x: hidden;
    padding: 32px;
    border: 16px solid transparent;
    border-image-source: url(./ui_border.png);
    border-image-slice: 32;
    border-image-repeat: round;
    border-image-width: 128px;
    background-clip: padding-box;
}

.subtitle {
  color: var(--tone-3);
}

a {
  text-decoration: none;
  font-size: 20px;
  color: var(--color-fb);
}

h1 {
    font-family: "MinecraftTen";
    font-smooth: never;
    -webkit-font-smoothing : none;
}



/* CAROUSEL WRAPPER */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* FRECCE */
.carousel-btn {
  font-family: "MinecraftFive";
  font-smooth: never;
  -webkit-font-smoothing: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--tone-4);
  color: var(--color-cf);
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 60px;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.carousel-btn:hover {
  background: var(--color-cf);
  color: var(--tone-4);
}

.carousel-btn.left {
  left: 8px;
}

.carousel-btn.right {
  right: 8px;
}

/* CAROUSEL */
.carousel {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  padding: 20px 60px; /* spazio per i bottoni */
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar {
  display: none;
}

/*
.carousel-main {
  width: 100%;
  max-width: 800px;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 3px solid var(--tone-3);
  background: rgba(0, 0, 0, 0.7);
}

.carousel-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
  image-rendering: auto;
}

.carousel-thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.thumbnail {
  width: 80px;
  height: 60px;
  object-fit: cover;
  opacity: 0.6;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: 0.2s;
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
  border-color: var(--color-mc);
}*/

/* CARD */
.project-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column; /* disporre contenuto verticale */
  justify-content: space-between;
  width: 420px;
  background: var(--tone-5);
  border: 3px solid #333;
  color: var(--tone-0);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s, background 0.3s;
}

.project-card:hover {
  transform: scale(1.03);
  background: rgba(30, 30, 30, 0.9);
}

/* blocco contenuto */
.project-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
}

/* immagine */
.project-card img {
  image-rendering: auto;
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

/* testo */
.project-info {
  flex: 1;
}

.project-card h3 {
  font-size: 1.3rem;
  margin: 0 0 8px 0;
  color: var(--color-cf);
}

.project-card p {
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

.project-card a {
  display: block;
  text-align: center;
  background: var(--color-cf);
  color: #000;
  padding: 10px 0;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.2s;
  border-top: 3px solid #333;
}

.project-card a:hover {
  background: var(--color-cf);
}

@media (max-aspect-ratio: 1/1) {
    .content {
        font-size: 16px;
        background-size: 128px;
        border: 0;
        border-image-source: none;
        border-image-slice: 0;
        border-image-width: 0;
        background-clip: initial;
    }

    .carousel {
        padding: 20px 0px;
    }

    .project-card {
        width: 96%;
    }
}