:root{
    touch-action: pan-x pan-y;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: black;
    height: 100vh;
    /* width: 100vw; */
    flex-wrap: wrap;
    overflow: hidden;
}

.divSx{
    width: 25vw;
    height: 100vh;
    background-color: white;
}

.scrollView {
    
    overflow-y: scroll;
    height: 85vh;
}

.scrollView::-webkit-scrollbar {
    display: none;
}

.coinContainer{
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: 15px;
    overflow: hidden;
    box-shadow: 0 4px 2px -2px gray;
}

.coin{
    width: 50px;
    height: 50px;
}

header {
    background-color: white;
    text-align: center;
    padding: 20px;
    height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid;
    border-color: brown;
}

h1 {
    color: white;
    font-size: 50px;
    font-family: 'Libre Baskerville', serif;
}

h2 {
    color: black;
    font-size: calc(12px + .5vw);
    font-family: 'Libre Baskerville', serif;
    margin-left: 15px;
}

.sottotitolo{
    color: #ffffff;
}

p{
    font-family: 'Nunito', sans-serif;
    margin-top: 35px;
    font-size: 20px;
}

#logo {
    display: block;
    margin: 0 auto;
    max-width: 200px;
    height: auto;
}

.divDx,
.initialDx {
    text-align: center;
    color: white;
    height: 100vh;    
    width: 75vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.back-float {
  position: fixed;
  background-color: #7a1613;
  top: 15px;
  left: 15px;
  font-size: 2rem;
  text-align: center;
  text-justify: center;
  display: flex;
  place-content: center;
  justify-content: center;
  justify-items: center;
  align-items: center;
  color: #fff;
  /* background: rgba(0,0,0,0.6); */
  /* padding: 0.5rem 0.8rem; */
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.3s;
  height: 50px;
  width: 50px;
  z-index: 1000;
}

.back-float:hover {
  background: rgba(0,0,0,0.8);
}

.description{
    display: flex;
    width: 75%;
    justify-content: center;
}

.back-button {
    background-color: #7a1613;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    text-align: center;
    font-family: 'Nunito', sans-serif;
    display: inline-block;
    font-size: 20px;
    margin: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 200px;
    height: 50px;
    z-index: 100;
}

.back-button:hover {
    background-color: #ffffff;
    color: #7a1613;
}

.flip-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.flip-card {
    background-color: transparent;
    width: 400px;
    height: 400px;
    perspective: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.flip-card.clicked .flip-card-inner {
    transform: rotateY(180deg);
}

#popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
}

/* Stile dell'immagine nel popup */
#popup-image {
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

footer{
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    place-items: center;
    font-size: 16;
    text-align: center;
}