/* #root {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
} */
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}
span{          display: flex;
  justify-content: space-evenly;
  flex-wrap: nowrap;
  align-items: center;}
.logo {
  width: 100%;
  max-width: 2.4em;
  top: 0.4em;
  left: 0;
}

.logo:hover {
  transform: rotateY(
    180deg
  ); /* Sukamė logotipą per 180 laipsnių, kai pelės žymeklis virš jo */
}
h1 {
  font-size: 2.5rem;
  font-weight: normal;
  color: #0b6aaa;
  text-align: center;
  /* margin: 2rem 0; */
  margin: 0;
}

h1:after {
  content: " with Flipping Cards";
}

.lten {
  background: transparent;
  border: 0;
}
.lten:hover {
  background-image: url("gb.png");
  width: 28px;
  height: 22px;
}
.lten h2 {
  color: #ccc;
}
.lten:hover h2 {
  color: transparent;
  transition: color 0.3s;
}

.btn {
  top: 0;
  right: 0;
  position: fixed;
  padding: 1em;
  font-size: large;
  border-radius: 0.2em 0.2em 0.2em 2em;
  background-color: #0b6aaa66;
  border: 0;
}
.edit-btn {
  bottom: 0;
  right: 0;
  position: fixed;
  padding: 1em;
  font-size: large;
  border-radius: 2em 0.2em 0.2em 0.2em;
  background-color: #ddc4cc;
  border: 0;
}
.btn:hover {
  background-color: #0b6aaa;
  color: #eee;
}
.edit-btn:hover {
  background-color: #ce557b;
  color: #eee;
}

.wrapper {
  width: 90%;
  margin: 0 auto;
  /* max-width: 80rem; */
  max-width: 120rem;
}

.cols {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.col {
  width: calc(25% - 2rem);
  margin: 1rem;
  cursor: pointer;
}

.container {
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-perspective: 1000px;
  perspective: 1000px;
}

.front,
.back {
  background-size: cover;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  background-position: center;
  -webkit-transition: -webkit-transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transition: -webkit-transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  -o-transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1),
    -webkit-transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  text-align: center;
  min-height: 180px;
  height: auto;
  border-radius: 10px;
  color: #fff;
  font-size: 1.5rem;
}
/* .front{
    background-color: #bbbbbb1b;
    color: #2980b9;
  } */
.back {
  color: transparent;
  /* background: -webkit-linear-gradient(45deg, #cedce7 0%, #596a72 100%);
  background: -o-linear-gradient(45deg, #cedce7 0%, #596a72 100%);
  background: linear-gradient(45deg, #cedce7 0%, #596a72 100%); */
}

.front:after {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  content: "";
  display: block;
  opacity: 0.6;
  background-color: #0b6aaa;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 10px;
}
.container:hover .front,
.container:hover .back {
  -webkit-transition: -webkit-transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transition: -webkit-transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  -o-transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1),
    -webkit-transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.inner {
  -webkit-transform: translateY(-50%) translateZ(60px) scale(0.94);
  transform: translateY(-50%) translateZ(60px) scale(0.94);
  top: 50%;
  position: absolute;
  left: 0;
  width: 100%;
  padding: 0.2rem;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  outline: 1px solid transparent;
  -webkit-perspective: inherit;
  perspective: inherit;
  z-index: 2;
}

.container .back {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.container .front {
  -webkit-transform: rotateY(0deg);
  transform: rotateY(0deg);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.container:hover .back {
  -webkit-transform: rotateY(0deg);
  transform: rotateY(0deg);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  background: #fbfbfb;
  color: #0b6aaa;
}

.container:hover .front {
  -webkit-transform: rotateY(-180deg);
  transform: rotateY(-180deg);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.front .inner p {
  /* font-size: 2rem; */
  font-size: x-large;
  margin-bottom: 2rem;
  position: relative;
}

/* brūkšnelis po p */
/* .front .inner p:after {
  content: "";
  width: 4rem;
  height: 2px;
  position: absolute;
  background: #c6d4df;
  display: block;
  left: 0;
  right: 0;
  margin: 0 auto;
  bottom: -0.75rem;
} */

/* 6 / 5 / 4 stulpeliai iki 1600px */
.front .inner {
  font-size: x-large;
}
/* @media screen and (max-width: 100rem) { */
.col {
  width: calc(12.5% - 2rem);
}
/* } */
@media screen and (max-width: 100rem) {
  .col {
    width: calc(16.66% - 2rem);
  }
}
@media screen and (max-width: 80rem) {
  .col {
    width: calc(20% - 2rem);
  }
}
@media screen and (max-width: 72rem) {
  .col {
    width: calc(25% - 2rem);
  }
}
@media screen and (max-width: 64rem) {
  .col {
    width: calc(33.333333% - 2rem);
  }
}

@media screen and (max-width: 48rem) {
  .col {
    width: calc(50% - 2rem);
  }
  h1 {
    font-size: 1.6em;
  }
  h1:after {
    content: "";
  }
}

@media screen and (max-width: 42rem) {
  .front .inner p {
    font-size: smaller;
  }
  .back {
    font-size: smaller;
  }
  .col {
    margin: 0.2em;
  }
  .back .inner {
    padding: 0.2em;
  }
}
@media screen and (max-width: 32rem) {
  /* .col {
    width: 100%;
    margin: 0 0 2rem 0;
  } */
}
