* { 
  margin: 0;
    padding: 0;
    box-sizing: border-box; 
        font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif; 
        }

body {
	margin: 1;
	  font-family: system-ui, -apple-system, sans-serif;
  background-color: oklch(0.145 0 0);
    display: block; 
	text-align:center;
    justify-content: center;
    min-height: 100vh;
    min-width: 450px;
    
}

div.h2 {
	text-align:center;
	justify-content: center;
}
h2 {
  font-family: "Arial", sans-serif;
  font-size: 3em;
  background-image: url('../pic/bild.jpg');
  background-size: 100% 100%; 
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: animate 20s linear infinite;
  text-align: center;
  display: inline-block; 
  max-width: 100%;
  margin-top: 10px;
}
@keyframes animate {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -800px 0;
  }
}
@-webkit-keyframes animate {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -800px 0;
  }
}


div.cards {
	text-align:center;
	justify-content: center;
	display: inline-block; 
	margin-top: 20px;
}
.card-wrapper {
    display: flex;
    gap: 10px;
    width: 400px;
    height: 300px;
    font-family: 'Calibri';
}

.card {
    flex: 1;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    transition: flex .3s;
    border: 1px solid #ffffff63;
}

.card:hover {
    flex: 5;
}

.card:hover .text-wrapper {
    transform: translateY(0);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-wrapper {
    position: absolute;
    bottom: 0;
    color: white;
    padding: 15px;
    text-align: justify;
    transform: translateY(100%);
    transition: transform .4s ease-in-out;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.538) 20%, black 70%);
}

.text-wrapper a {
    text-decoration: none;
    color: white;
}

.text-wrapper a:hover {
    text-decoration: underline;
}

.text-wrapper h3 {
    margin-bottom: 10px;
}

.text-wrapper span {
    color: rgb(212, 212, 212);
    font-size: 12px;
}

