:root {
    --background-nacrisferi: #506580;
    --gia-nacrisferi: #9ca0ab;
    --gia-teqsti: #e0dfe6;
    --muqi-lurji: #111827;
    --gia-lurji: #2563eb;
    --plastic: rgba(80, 101, 128, 0.84);
}       

body {
  background-color: #091a2c;
}

/* main-content */
.main-wrapper {
    width: 100%;
    max-width: 1770px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3em;
    margin: 0 auto;
    position: relative;
    top: 60px;
    flex-wrap: wrap;
    padding: 0 10em;
}

.main-wrapper .card {
    width: 500px;
    height: 250px;
    color: white;
    background-color: #324451;
    border-radius: 10px;
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 0 25px 3px rgba(255, 255, 255, 0.374);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(../images/americanflag.webp);
    background-blend-mode: color-dodge;
    position: relative;
    overflow: hidden;
}
.main-wrapper .france {
    background-image: url(../images/franceflag.jpg);
}
.main-wrapper .german {
    background-image: url(../images/germanflag.jpg);
}
.main-wrapper .card::before {
    content: "";
    background-color: rgba(0, 0, 0, 0.361);
    position: absolute;
    left: 0;
    top: 0;
    width: 500px;
    height: 250px;
    z-index: 6;
    border-radius: 10px;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  background-size: cover;
  animation: ripple 6s infinite linear;
  mix-blend-mode: overlay;
  opacity: 0.5;
}

@keyframes ripple {
  0%   { transform: scale(1.05) translate(0,0); }
  50%  { transform: scale(1.3) translate(-20px, -30px); }
  100% { transform: scale(1.05) translate(0,0); }
}
.main-wrapper .text {
    z-index: 9;
}
.main-wrapper .card .text h2 {
    font-size: 1.7em;
    color: white;
    font-weight: bolder;
    z-index: 9;
}

.main-wrapper .card .text h3 {
    font-size: 1em;
    color: white;
    font-weight: 500;
    z-index: 9;
}

.main-wrapper .card .text h4 {
    font-size: 1em;
    color: white;
    font-weight: 500;
    z-index: 9;
}

.main-wrapper .card a {
    background-color: #e09400;
    width: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: .6em .2em;
    border-radius: 5px;
    font-weight: 550;
    z-index: 8;
    transition: background-color .5s ease;
}

.main-wrapper .card a:hover {
    background-color: #c47d21;
}


@media(max-width: 900px) {
    .main-wrapper {
        padding: 0 1em;
    }
    .main-wrapper .card .text h2 {
        font-size: 1.5em;
    }
}

@media(max-width: 1400px) {
    .main-wrapper {
        padding: 0 3em;
    }
}