
.nummarit-button {
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    background: var(--mansikanpunainen);
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    -webkit-transition: 0.2s all;
    transition: 0.2s all;
}

.nummarit-button:hover {
    background: var(--partionsininen);
    color: #fff !important;
}

.nummarit-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
}

.nummarit-card {
  background-color: var(--foreground);
  color: var(--onforeground) !important;
  border-radius: 20px;
  display: flex;
  justify-content: center; /* centers content horizontally */
  align-items: center; /* centers content vertically */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  min-width: fit-content; /* allow card to adjust to content width */
  min-height: fit-content; /* allow card to adjust to content height */
}


.nummarit-card-top {
  top: 15%;
}

.nummarit-card-bottom {
  bottom: 5%;
}

.nummarit-card > content {
  flex: 1;
  display: inline-block;
  margin: 20px;
  overflow: hidden;
  text-align: center; /* centers content horizontally within .nummarit-card */
}

.nummarit-card > h1 {
  position: absolute; /* Add absolute positioning to the h1 */
  top: 8%; /* Set the distance from the top of the card */
  left: 50%; /* Center the h1 horizontally */
  transform: translateX(-50%); /* Adjust the horizontal centering */
  margin: 0; /* Remove the default margin */
}

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--tausta);
}

html, body, #root {
  height: 100%;
  width: 100%;
}
