@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap");

* {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

body {
 width: 100vw;
 font-size: clamp(16px, 10vw, 54px);
 font-family: "Roboto", sans-serif;
}

button {
 font-size: clamp(16px, 10vw, 54px);
 font-family: "Roboto", sans-serif;
}

#game-data,
.guess {
 font-size: 50%;
}
.btn {
 font-size: 70%;
}

/************** SPELKORT **************/

#spelkort {
 /* width: 100%; */
 max-width: 38rem;
 margin: auto;
 display: flex;
 flex-direction: column;
 gap: 2rem;
 padding: 1rem;
}

.spelkort {
 max-width: 20rem;
 aspect-ratio: 2/3;
 margin: 0 auto;
 background-color: white;
 padding: 1rem;
 border: 1px solid black;
 border-radius: 1rem;
 display: flex;
 justify-content: space-between;
 align-items: center;

 box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
 width: min(90vw, 320px);
 /* height: 480px; */
}

/* .item {
 grid-column-start: 3;
 grid-row: 6;
} */

.symbol {
 /* font-size: 4rem; */
 margin: 0;
}
.corner {
 font-size: 50%;
 line-height: 1;
}
.corner .symbol {
 /* font-size: 50%; */
 /* line-height: 0.6em; */
 margin-bottom: 0.5em;
}

.top-corner {
 align-self: flex-start;
 /* align-self: flex-start; */
}

.card__bottom-corner {
 transform: rotate(180deg);
 /* align-self: flex-start; */
 /* grid-row-start: -2;
 grid-column-start: -2; */
 align-self: flex-end;
}

p {
 margin: 0;
 padding: 0;
 /* font-size: 1.6rem; */
 text-align: center;
}

/* <!-- HTML !-->
<button class="button-28" role="button">Button 28</button> */

/* CSS */
.button-28 {
 appearance: none;
 background-color: transparent;
 border: 2px solid #1a1a1a;
 border-radius: 15px;
 box-sizing: border-box;
 color: #3b3b3b;
 cursor: pointer;
 display: inline-block;
 font-weight: 600;
 line-height: normal;
 margin: 0;
 min-height: 60px;
 min-width: 0;
 outline: none;
 padding: 16px 24px;
 text-align: center;
 text-decoration: none;
 transition: all 300ms cubic-bezier(0.23, 1, 0.32, 1);
 user-select: none;
 -webkit-user-select: none;
 touch-action: manipulation;
 width: 100%;
 will-change: transform;
}

.button-28:disabled {
 pointer-events: none;
}

/* .button-28:hover {
 color: #fff;
 background-color: #1a1a1a;
 box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
 transform: translateY(-2px);
} */

.button-28:active {
 box-shadow: none;
 transform: translateY(0);
}

.btn {
 /* padding: 1rem 2rem; */
 /* font-size: 1.1rem; */
}

.black {
 color: black;
}
.red {
 color: red;
}

img.black {
 border: 2px solid black;
}
img.red {
 border: 2px solid red;
}

img {
 max-width: 100%;
 border-radius: 0.3rem;
}

.center-display {
 width: 100%;

 align-self: stretch;
 display: grid;
 grid-template-columns: 1fr 1fr 1fr;
 grid-auto-rows: auto;
 align-content: space-around;
 margin: 0.1rem;
 /* grid-template-rows: repeat(11, 0.2fr); */
}

.guess {
 display: flex;
 justify-content: center;
 gap: 0.2rem;
 flex-wrap: wrap;
}

a {
 color: #1a1a1a;
}

@media (max-width: 600px) {
 .guess {
  flex-direction: column;
 }
}

@media (max-height: 840px) and (min-height: 500px) {
 .spelkort {
  height: 45dvh;
  width: 30dvh;
 }
}

@media (max-width: 376px) {
 .spelkort {
  width: auto;
  /* height: 45dvh; */
  /* padding: 0.5rem; */
 }
 .symbol {
  /* font-size: 80%; */
 }
}

@media (max-width: 230px) {
 .spelkort {
  /* width: auto; */
  padding: 0.5rem;
 }

 p {
  /* font-size: 1rem; */
 }
}
