:root {
    font-size: 20px;
}
  
*,
*:before,
*:after {
    box-sizing: border-box;
}
  
p {
    margin: 0;
}
  
p:not(:last-child) {
    margin-bottom: 1.5em;
}
  
body {
    font: 1em/1.618 Inter, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 30px;
    margin: 0;
    color: #224;
    background:
      url(https://images.unsplash.com/photo-1729710221382-ee37d2305ff1?q=80&w=1828&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D)
      center / cover no-repeat fixed;

      font-family: 'Rubik', sans-serif;
      font-size: 1rem;
      line-height: 1.5;
}

.card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
  
.card {
    max-width: 300px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  
    height: 300px;
    padding: 35px;
  
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.25);
  
    backdrop-filter: blur(15px);
    margin-bottom: 15px;
}
  
.card-footer {
    font-size: 0.65em;
    color: #446;
}

.card p {
    overflow-wrap: break-word; /* Break long words to fit within the card */
    overflow-y: auto; /* Allows scrolling if content overflows vertically */
    max-height: 200px; /* Optional: limits p height so the footer stays in view */

     /* Hide scrollbar in WebKit browsers */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}
  

  /* NEW FACT BUTTON */

.refresh {
    display: block;
}

@import url("https://fonts.googleapis.com/css?family=Rubik:700&display=swap");

* {
	box-sizing: border-box;
}

*::before, *::after {
	box-sizing: border-box;
}

button {
	position: relative;
	display: inline-block;
	cursor: pointer;
	outline: none;
	border: 0;
	vertical-align: middle;
	text-decoration: none;
	font-size: inherit;
	font-family: inherit;
}

button.new-fact {
	font-weight: 600;
	color: #382b22;
	text-transform: uppercase;
	padding: 1.25em 2em;
	background: #fff0f0;
	border: 2px solid #b18597;
	border-radius: 0.75em;
	transform-style: preserve-3d;
	transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), background 150ms cubic-bezier(0, 0, 0.58, 1);
}

button.new-fact::before {
	position: absolute;
	content: '';
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #f9c4d2;
	border-radius: inherit;
	box-shadow: 0 0 0 2px #b18597, 0 0.625em 0 0 #ffe3e2;
	transform: translate3d(0, 0.75em, -1em);
	transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), box-shadow 150ms cubic-bezier(0, 0, 0.58, 1);
}

button.new-fact:hover {
	background: #ffe9e9;
	transform: translate(0, 0.25em);
}

button.new-fact:hover::before {
	box-shadow: 0 0 0 2px #b18597, 0 0.5em 0 0 #ffe3e2;
	transform: translate3d(0, 0.5em, -1em);
}

button.new-fact:active {
	background: #ffe9e9;
	transform: translate(0em, 0.75em);
}

button.new-fact:active::before {
	box-shadow: 0 0 0 2px #b18597, 0 0 #ffe3e2;
	transform: translate3d(0, 0, -1em);
}