html, body{
    margin: 0;
    padding: 0;
    background-color: grey;
    height: 100%;
}
/* Grid setup */
.wrapper {
    
    min-height: 100%;

    display: grid;
    grid-template-columns: 200px auto 300px;
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas: 
    "logo banner banner"
    "navigation navigation qsearch"
    "main main main"
    "footer footer footer"
    ;

    grid-gap: 4px;
}
.logo{
    grid-area: logo;
    background-color: #000;
    object-fit: contain;
}

/* Make image fit its grid cell */
.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* or cover */
}

.banner{
    grid-area: banner;
    background-color: #5a0001ff;
    background-image: url("../images/bannertrue1.png");
    background-size: cover;        /* fills entire area */
    background-position: top;   /* keeps image centered */
    background-repeat: no-repeat;  /* prevents tiling */
    min-height: 150px; 
}

.banner h1{
     text-align: center;
     color: aliceblue;
     text-shadow:
                -2px -2px 0 #000,
                2px -2px 0 #000,
                -2px 2px 0 #000,
                2px 2px 0 #000,
                -3px 0px 0 #000,
                3px 0px 0 #000,
                0px -3px 0 #000,
                0px 3px 0 #000;
     font-size: 60px;
}

.banner h2{
    text-align: center;
     color: aliceblue;
     text-shadow:
                -2px -2px 0 #000,
                2px -2px 0 #000,
                -2px 2px 0 #000,
                2px 2px 0 #000,
                -3px 0px 0 #000,
                3px 0px 0 #000,
                0px -3px 0 #000,
                0px 3px 0 #000;
     font-size: 30px;
}

.navigation {
    grid-area: navigation;
    background-color: #56666bff;
    max-height: 30px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 6px;
    
}

.qsearch{
    max-height: 30px;
    grid-area: qsearch;
    background-color: #eeee9b;;
    background-image: url("../images/luigiii.png");
    background-size: cover;        /* fills entire area */
    background-position: center;   /* keeps image centered */
    background-repeat: no-repeat;  /* prevents tiling */
    min-height: 15px; 
}

.main{
    grid-area: main;
    background-color: #ffeedbff;
}


.footer{
    grid-area: footer;
    background-color: #56666bff;
}

.all{
    padding: 10px;
    padding-left: 50px;
    padding-right: 50px;    
}

h1, h2 {
  font-family: "Iceberg", sans-serif;
  font-weight: 400;
  font-style: normal;
}


@keyframes spin { /*you spin me right round baby */
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.right {
    position: absolute;
    right: 250px;
    top: 40%;
    transform: translateY(50%);
    border-radius: 10px;
    animation: spin 3s linear infinite;
}

/* links in pages */
a {
    color: #5a0001ff;
    font-weight: bold;
    text-decoration: none;

}

a:visited{color: #5a0001ff;}
a:hover{color: #000;}

/*footer link*/

.footer a, .footer a:visited {
    text-decoration: none;
    color: #A8C18B;
}

.footer a:hover {
    color: #000;
}

.flip-card {
    background-color: transparent;
    width: 300px;
    height: 200px;
    border: 1px solid #f1f1f1;
    perspective: 1000px; /* Remove this if you don't want the 3D effect */
  }
  
  /* This container is needed to position the front and back side */
  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
  }
  
  /* Do an horizontal flip when you move the mouse over the flip box container */
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
  
  /* Position the front and back side */
  .flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
  }
  
  /* Style the front side (fallback if image is missing) */
  .flip-card-front {
    background-color: #bbb;
    color: black;
  }
  
  /* Style the back side */
  .flip-card-back {
    background-color: dodgerblue;
    color: white;
    transform: rotateY(180deg);
  }

  .results-heading{
    max-width: 600px;
    margin-left: 100px;
  }
  
  .results-cards {
    display: grid;
    grid-template-columns: auto auto;
    gap: 100px;
    justify-content: center;
    margin: auto;
    max-width: 650px;
  }
  
  .card {
    position: relative;
    width: 275px;
    height: 200px;
    perspective: 1000px;
  }
  
  /* Cards for DB results (no images) */
  .results-cards-text {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 100px;
    justify-content: center;
    margin: auto;
  }
  
  .card-text{
    height: 150px;
  }
  
  /* All cards! */
  
   .results-cards h2{
    text-align: center;
   }
  
   body {
    background: #eee;
  }
  
  
  .content {
    position: absolute;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
  
    transition: transform 1s;
    transform-style: preserve-3d;
  }
  
  .card:hover .content {
    transform: rotateY( 180deg ) ;
    transition: transform 0.5s;
  }
  
  .front, .back {
    padding: 20px;
    position: absolute;
    height: 100%;
    width: 100%;
    background: white;
    border-radius: 5px;
    backface-visibility: hidden;
  }
  
  .front {
    text-align: center;
  }
  
  .front-text{
    text-align: left;
  }
  
  .back {
    text-align: left;
    background: #03446A;
    color: white;
    transform: rotateY( 180deg );
  }
  
  .neutral-front {
    background-color: #ffdd9a;
    border: #9e721a;
    border-style: solid;
  }
  
  .neutral-back {
    background-color: #9e721a;
  }
  
  .negative-front {
    background-color: #ffa99a;
    border: #9e1a1a;
    border-style: solid;
  }
  
  .negative-back {
    background-color: #9e1a1a;
  }
  
  .positive-front {
    background-color: #bdffb7;
    border: #1a9e55;
    border-style: solid;
  }
  
  .positive-back {
    background-color: #1a9e55;
  }

  .error {
    margin-left: 50px;
    /* max-width: 650px; */
    background-color: #F6E495;
    border-radius: 10px;

  }

  .center-image{
    display: flex;
    justify-content: center;
  }
  .add-entry-form {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
}

.add-widget {
    width: 100%;
    box-sizing: border-box;
}








