/* callum fisher - 2025.08.28 - 2025.09.25 */

@keyframes fadeIn {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@keyframes fadeOut {
	0% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

body {
	color: #000000;
	background: #ffffff;
	margin: 0;
	text-align: center;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
}

main {
	box-sizing: border-box;
	border-radius: 1%;
	display: grid;
	gap: 0.5rem;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	padding-left: 24%;
	padding-right: 24%;
	animation-name: fadeIn;
	animation-duration: 0.5s;
}

.box {
	background: #ffffff;
	color: #000000;
	word-wrap: break-word;
	text-align: left;
	overflow: hidden;
	padding: 2rem;
	box-sizing: border-box;
}

.box.center {
	text-align: center;
}

body a:not(.button) { /* not .button - don't affect hyperlinks within buttons */
	color: #a52a2a;
}

body a:not(.button):visited {
	color: #a52a2a;
}

body a:not(.button):hover {
	color: #a52a2a;
}

.button {
	background: #000000;
	color: #ffffff;
	display: inline-block; /* sit next to each other */
	margin: 0.5rem;
	padding: 0.6rem;
	border-radius: 10px;
	text-align: center;
	text-decoration: none;
	user-select: none;
	width: auto; /* Let buttons size automatically */
	max-width: none; /* Prevent fixed max-width */
    margin-right: 10px; /* Add spacing between buttons horizontally */
	margin-bottom: 10px; /* Space between buttons vertically (if they wrap) */
	animation-name: fadeIn;
	animation-duration: 1s;
}

.button:hover {
	background: #f5deb3;
	color: #000000;
}

.button.background {
	background: #f5deb3;
	color: #000000;
}

.button.background:hover {
	background: #000000;
	color: #ffffff;
}

.button.inactive {
	color: gray;
	cursor: not-allowed;
}

.button.inactive:hover {
	background: black;
	color: gray;
}

.button.secondary {
	float: right;
}

li {
	padding-top: 0.2rem;
	padding-bottom: 0.2rem;
}

footer {
	text-align: center;
}

@media screen and (max-width: 1400px) {
	main {
		padding-left: 0;
		padding-right: 0;
	}
}