body{
    font-family: "Trebuchet MS", Helvetica, sans-serif;
    overflow: hidden;
}
.div1{
	text-align: center;
    top:10%;
}
.BarraDestra{
    position:absolute;
    top:10%; 
    right:85%; 
    left:0; 
    bottom:0;
    width:7.5%;
}
.centrale{
    position:absolute;
    top:10%; 
    right:0%; 
    left:22.5%; 
    bottom:0%; 
}
.sopra{ 
    position:absolute; 
    bottom:90%;
    top:0%;
    right:0%;
    left:0%;
    border: thin solid black;
    }
.titolo{
    /* color: red; */
    position: absolute;
    top: 15%;
    width: 100%;
    /* text-align: center;
    font-size: 40px; */
}
.scritta {
    color: red;
    text-align: center;
    /* right: 50%; */
    font-size: 40px;
}
.btn {
    cursor:pointer;
    border: none;
    background: none;
    width: 55%;
    height: 20%;
}
input.btn[type="submit"]:hover {
    border: 10px solid black;
}
*{
    padding:0;
    margin:0;
}
img{
    position: relative;
    width:80;
    
}
/* Styles go here */

#drag-me {
width:auto;
height: auto;
}

ul {
    position: absolute;
    list-style-type: none; 
    overflow: hidden;
    width: 100%;
    background-color: none;
    height: 100%;
    top:25%;
    z-index:100;
}

li {
    float: left;
}

li a {
    display: block;
    color: rgb(10, 10, 10);
    text-align: center;
    padding: 10px 12px;
    text-decoration: none;
}

#oceano:hover {
    background-image: url("../src/SfondoOceano.png");
}
#deserto:hover {
    background-image: url("../src/desertosfondo.png");
}
#foresta:hover {
    background-image: url("../src/SfondoForesta.png");
}
#giungla:hover {
    background-image: url("../src/SfondoGiungla.png");
}
#polare:hover {
    background-image: url("../src/poloaresfondo.jpg");
}
#savana:hover {
    background-image: url("../src/savanasfondo.PNG");
}
#home:hover{
    background-color: gray;
}
p,ul{
    display: inline;
}

@keyframes shake {
    0% { transform: translate(0, 0) rotate(0); }
    10% { transform: translate(-10px, 0) rotate(-5deg); }
    20% { transform: translate(10px, 0) rotate(5deg); }
    30% { transform: translate(-10px, 0) rotate(-5deg); }
    40% { transform: translate(10px, 0) rotate(5deg); }
    50% { transform: translate(-10px, 0) rotate(-5deg); }
    60% { transform: translate(10px, 0) rotate(5deg); }
    70% { transform: translate(-10px, 0) rotate(-5deg); }
    80% { transform: translate(10px, 0) rotate(5deg); }
    90% { transform: translate(-10px, 0) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0); }
  }
  .trema {
    animation: shake 4.0s 2ms;
  }



  @property --rotate {
    syntax: "<angle>";
    initial-value: 132deg;
    inherits: false;
  }
  
  :root {
    --card-height: 65vh;
    --card-width: 65vh;
  }
  
  
  .card {
    background: #191c29;
    width: var(--card-width);
    height: var(--card-height);
    padding: 3px;
    position: relative;
    border-radius: 6px;
    text-align: center;
    display: flex;
    font-size: 1.5em;
    color: rgb(88 199 250 / 100%);
    cursor: pointer;
    font-family: cursive;
  }
  
  
  
  .card::before {
    content: "";
    width: 104%;
    height: 102%;
    border-radius: 8px;
    background-image: linear-gradient(
      var(--rotate)
      , #5ddcff, #3c67e3 43%, #4e00c2);
      position: absolute;
      z-index: -1;
      top: -1%;
      left: -2%;
      animation: spin 2.5s linear infinite;
  }
  
  .card::after {
    position: absolute;
    content: "";
    top: calc(var(--card-height) / 6);
    left: 0;
    right: 0;
    z-index: -1;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    transform: scale(0.8);
    filter: blur(calc(var(--card-height) / 6));
    background-image: linear-gradient(
      var(--rotate)
      , #5ddcff, #3c67e3 43%, #4e00c2);
      opacity: 1;
    transition: opacity .5s;
    animation: spin 2.5s linear infinite;
  }
  
  @keyframes spin {
    0% {
      --rotate: 0deg;
    }
    100% {
      --rotate: 360deg;
    }
  }
  
  .glow-on-hover {
    width: 220px;
    height: 50px;
    border: none;
    outline: none;
    color: #fff;
    background: #111;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
}

.glow-on-hover:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left:-2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.glow-on-hover:active {
    color: #000
}

.glow-on-hover:active:after {
    background: transparent;
}

.glow-on-hover:hover:before {
    opacity: 1;
}

.glow-on-hover:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111;
    left: 0;
    top: 0;
    border-radius: 10px;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}
.grid-container {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 10px;
    padding: 10px;
    height: 100%;
    width:100%;
}

.grid-container > div {
    text-align: center;
    padding: 20px 0;
    font-size: 15px;
    border-radius: 10%;
}

h3{
    font-size: 30px;
}

.item1 {
    grid-column-start: 1;
    grid-column-end: 3;
}

.item4{
    background-color: white;
    position: absolute; 
    top:25%;
    left:32%;
    width: 40%;
    height: 40%;
}