/* ===== Base Styles ===== */
body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
    background: linear-gradient(to top, #e9bdff 0%,#d6962f 40%,#bdfeff 80%);
    overflow-x: hidden;
}

/* ===== Topbar ===== */
.topbar {
    overflow: hidden;
    background-image: url(barra_tooper6.png);
    filter: brightness(150%);
    background-position-y: -32px;
    height: 80px;
}

.topbar a {
    float: right;
    color: aliceblue;
    text-align: center;
    padding: 7px 16px;
    text-decoration: none;
    font-size: clamp(1rem, 5vw, 2rem);
}   

/* ===== Logo ===== */
.logo_ontop {
    display: block;
    width: calc(1536px / 1.1);
    max-width: 100%;
    height: auto;
    margin: 50px auto 0 auto;
    filter: brightness(100%);
}

/* ===== Title ===== */
.newgame_title {
    width: 80%;
    margin: 200px auto 0 auto;
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 5rem);
}

/* ===== New Game Section ===== */
.scaled-container:hover {
  transform: scale(1.1);           /* 2: scalo di un 10% al passaggio del mouse */
}

/* Container principale: flessibile, centrato, con overflow nascosto */
.scaled-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  transition: transform 0.3s ease;  /* 1: aggiungo la transizione */
  transform-origin: center center;
}

/* Blocco comune immagini */
.image-block {
  position: relative;
  flex: 1 1 50%;
}

/* Immagine di sfondo */
.bg-image {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(90%);
  margin-left: -10%;
}

/* Testo in overlay posizionato al centro del blocco */
.overlay-text {
  position: absolute;
  top: 43%;
  left: 38%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: left;
  padding: 10px;
  width: 40%;
}

.overlay-text h1 {
    font-size: clamp(1rem, 3vw, 5rem);
}
.overlay-text h3 {
    margin-bottom: 0;
    font-size: clamp(.5rem, 2vw, 3rem);
}
.overlay-text p {
    margin-top: 0;
    margin-bottom: -20px;
    font-size: clamp(.5rem, 1.5vw, 1rem);
}

/* Immagine in primo piano: leggero offset e z-index superiore */
.fg-image {
  width: 150%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin-left: -50%; /* sovrapposizione verso sinistra */
  position: relative;
  z-index: 2;
}



/* ===== Cookie Popup ===== */
#cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #fff;
    border: 5px solid salmon;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 0 200px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    font-family: Arial, sans-serif;
}

#cookie-popup button {
    margin-right: 10px;
    padding: 8px 12px;
    border: 2px solid slateblue;
    border-radius: 40px;
    cursor: pointer;
    background-color: white;
}

/* ===== Footer ===== */
footer {
    background-image: url(footer_background.png);
    color: aliceblue;
    padding: 20px;
}

footer table {
    margin-top: 50px;
    text-align: lceeft;
}

@media (max-width: 600px) {
    #cookie-popup {
        font-size: 0.9em;
        padding: 10px;
    }

    #cookie-popup button {
        display: block;
        margin: 10px 0;
        width: 100%;
    }

    .newgame_title {
        font-size: 2rem;
        margin-top: 100px;
    }
}
