.test {
    outline: 1px solid white
}

:root {
    --background_color: #fff8b0;
    --secondary_bg: #fef9dc;
    --primary_color: #7d452f;
    --accent: #40403a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;

    color: var(--primary_color);
    background-color: var(--background_color);

}
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./res/purinbg.png");;
  background-size: cover;
  opacity: 0.4; /* change this */
  z-index: -1;
}

main {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    font-size: clamp(1rem, 2.5vw, 2rem);
    text-align: center;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;

    background-color: var(--background_color);
    border: 5px solid var(--primary_color);
    width: clamp(20rem, 90%, 37.5rem);
    min-height: 50vh;
    border-radius: 15px;

    position: relative;
    overflow: hidden; 

    box-shadow: 0 8px 0px
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("./res/purincard.png");
    background-size: 40rem;
    background-position: center;
    background-repeat: repeat;
    opacity: 0.7;
    z-index: 0;
}
.card > * {
    position: relative;
    z-index: 1;
}

.card>.header {
    padding: 1rem 1rem;
    width: 100%;
    background-color: var(--secondary_bg);
    text-align: left;
    border-radius: 12px 12px 0 0;

}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    gap: 1rem;
    padding: 1rem;
}

.motivation-container {
    background-color: white;
    width: 80%;
    padding: 1rem;
    border-radius: 12px;
}

.card img {
    width: clamp(5rem, 25%, 12rem);
    height: auto;
}

.card-footer {
    width: 100%;
    background-color: var(--secondary_bg);
    border-radius: 0 0 12px 12px;
    padding: 1rem 5rem;
}


#motivate-button {
    font-weight: 800;
    background-color: var(--accent);
    color: white;
    padding: 1rem;
    width: 100%;
    border-radius: 12px;
    border: 0
}

#motivate-button:hover {
    scale: 1.1;
}


#motivate-button+p {
    font-size: clamp(0.7rem, 1.2vw, 1.2rem);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

#purin-img {
  animation: float 2.5s ease-in-out infinite;
}