@font-face {
  font-family: "DMsans";
  src: url("fonts/BBBDMSans-Medium.woff") format("woff");
  font-weight: medium;
  font-style: medium;
}

@font-face {
  font-family: "DMsans";
  src: url("fonts/BBBDMSans-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

p, h2, h1{
    font-family: "DMsans";
}

body{
    background-color: #1e1e1e;
}

nav{
    display: inline-flex;
    justify-content: space-between;
    width: calc(100vw - 4rem);
    padding: 1rem 2rem;
}
.logo{
    display: flex;
    align-items: center;
    gap: .5rem;
}

nav p {
    color: white ;
    font-size: large;
}

nav h1{

  color: white ;
  font-size: large;
  font-weight: 500;
}

.card {
  user-select: none;
  transition: transform .5s;
}

.innercard{
    position: relative;
    width: 200px;
    height: 320px;
    transition: all .8s;
}

.recto,
.content {
  position: absolute;
  display: flex;
   height: 100%;
  align-items: center;
  flex-direction: column;
  transition: transform 1s;
  backface-visibility: hidden;
  border-radius: 1rem;
  border: solid 1px;
  transform-style: preserve-3d;
}

.recto{
    justify-content: space-between;
    width: 100%;
}

.content {
  width: 100%;
  transform: rotateY(180deg);
  justify-content: center;
  align-items: start;
  gap: .75rem;
}

.innercard:hover .recto {
  transform: rotateY(180deg);
}

.innercard:hover .content {
  transform: rotateY(360deg);
}

.mainicon{
    display: block;
    width: 160px;
    object-fit: contain;
}

.line1{
    display: flex;
    width: 100%;
    margin-right: 1rem;
    margin-top: 1rem;
    justify-content: end;
}
.line2{
    display: flex;
    width: 100%;
    margin-bottom: 1rem;
    margin-left: 1rem;
    justify-content: start;
}

.line1 img, .line2 img{
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.card h2{
    font-size: 1.25rem;
    color: black;
    font-weight: 500;
    padding: 0 1rem;
    margin: 0;
}
.card p {
    color: black;
    padding: 0 1rem;
    font-size:small;
    margin: 0;
}

a{
  margin-left: 1rem;
  background: none;
  position: relative;
  border: none;
  text-decoration: underline;
  font-family: "DMsans";
  font-size: 1rem;
  color: black;
  cursor: pointer;
}

a::before{
  position: absolute;
  content: '';
  z-index: -1;
  background: white ;
  height: 1.2em;
  left: -1px;
  width: 0;
  transition: all 0.5s;
}
a:hover{
  text-decoration: none;
}
a:active{
  text-decoration: none;
}

a:hover::before {
  width:100%;
}
a:active::before {
  width:100%;
}

@media(max-width:30rem){
    .recto {
  transform: rotateY(180deg);
}

.content {
  transform: rotateY(360deg);
}
}

