.title {
	width: 100%;
	background-color: #a251ff;
	text-align: center;
	padding: 50px 16px;
}

.whiteBox {
	background-color: white;
	padding: 20px clamp(16px, 4vw, 30px);
	color: #404040;
	box-shadow: 0 2px 3px rgba(8,8,8,0.1), 0 0 0 1px rgba(8,8,8,0.1);
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	font-size: 1rem;
}

.items {
	display: flex;
	flex-wrap: wrap;
	margin-inline: auto;
	width: min(100%, 760px);
	margin-top: 20px;
}

.itemBox {
    background: #FFF;
    box-shadow: 0 2px 2px 0 rgb(0 0 0 / 14%), 0 3px 1px -2px rgb(0 0 0 / 20%), 0 1px 5px 0 rgb(0 0 0 / 12%);
    margin-top: 25px;
    margin-left: 2.5%;
    margin-right: 2.5%;
    padding: 20px clamp(16px, 4vw, 30px);
    text-align: left;
    width: 100%;
    
}

.itemBox-header {
	font-size: 1.7rem;
	font-weight: 500;
}

.itemBox-content {
	margin-top: 10px;
	font-size: 1.1rem;
	line-height: 1.55;
	color: #505050;
}

.leaderboard {
	width: min(100%, 920px);
	margin: 32px auto 0;
	overflow-x: auto;
}

.leaderboard .table {
	margin-bottom: 0;
	min-width: 19rem;
	font-size: clamp(0.875rem, 2.8vw, 1.125rem);
}

.itemBox-content a {
	overflow-wrap: anywhere;
}

@media (max-width: 575px) {
	.leaderboard .table th,
	.leaderboard .table td {
		padding: 8px 6px;
	}
}

.contest-index {
	width: min(100% - 32px, 920px);
	margin: 48px auto;
}

.contest-index > p {
	max-width: 65ch;
	margin: 8px 0 24px;
	line-height: 1.55;
}

.contest-index table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.contest-index th,
.contest-index td {
	padding: 12px clamp(8px, 2vw, 20px);
	border-bottom: 1px solid #ded8e7;
	text-align: left;
	vertical-align: top;
	overflow-wrap: anywhere;
}

.contest-index thead {
	background: #f2e8ff;
	color: #160b29;
}

.contest-index thead th:first-child {
	width: 74%;
}

.contest-index a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

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

.contest-detail .title1 {
	margin: 0;
}

.contest-detail .contest-index thead th:first-child {
	width: 4rem;
}

.contest-detail .problem-table .problem-column {
	width: 50%;
}

.contest-detail .problem-table .author-column {
	width: 25%;
}

.contest-detail .problem-table .difficulty-column {
	width: 8.5rem;
}

.problem-author {
	color: #4b3562;
	font-size: 0.9375rem;
}

.difficulty-cell {
	white-space: nowrap;
}

.difficulty-rating {
	display: inline-flex;
	gap: 0.25rem;
	vertical-align: middle;
}

.difficulty-square {
	width: 0.7rem;
	height: 0.7rem;
	border: 1px solid #c7acd9;
	border-radius: 2px;
	background: #f0e5f8;
}

.difficulty-square.is-filled {
	border-color: #6f3c96;
	background: #6f3c96;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 575px) {
	.contest-detail .contest-index .problem-table th,
	.contest-detail .contest-index .problem-table td {
		padding: 10px 6px;
	}

	.contest-detail .problem-table .author-column,
	.contest-detail .problem-table .problem-author {
		font-size: 0.8125rem;
	}

	.difficulty-rating {
		gap: 0.15rem;
	}
}

.contest-resources {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 16px 0;
	padding: 0;
	list-style: none;
	font-weight: 600;
}
