* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
    --dark-bg: #161819; 
    --dark-primary: #e0e0e0; 
    --dark-secondary: #b0b0b0; 
    --dark-borders: #8c8273; 
    --dark-accent: #888888; 
}
div {
	padding: 0;
	margin: 0;
}
a {
	text-decoration: none;
	color: inherit;
}
.swipe-underline {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: inherit;
}
.swipe-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;              /* adjust distance from text */
  height: 2px;               /* underline thickness */
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms cubic-bezier(.2,.9,.3,1);
  will-change: transform;
}
.swipe-underline:hover::after,
.swipe-underline:focus::after {
  transform: scaleX(1);
}
/* add a transition when the hidden menu opens and closes */
#menu {
	transition: all 0.5s ease;
	z-index: 100;
}

/* Puzzles carousel (puzzles/index.html) */
.carousel-item.active {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 24rem;
}

/* Google Sign-In button (puzzles/index.html) */
.g_id_signin {
    background-color: var(--dark-secondary);
    color: var(--dark-primary);
    border: 1px solid var(--dark-borders);
}

/* Puzzle result modals (puzzles/index.html) */
.modal {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.3s all ease-in-out;
    position: fixed;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: -1;
}
.modal.open {
    display: flex !important;
    z-index: 999;
}

/* Leaderboard medal rows (puzzles/leaderboard.html) */
.leaderboard-table tbody tr:nth-child(1) {
	background-color: #e7dd97;
	color: #1a1a1a;
}
.leaderboard-table tbody tr:nth-child(2) {
	background-color: #b1b5b9;
	color: #1a1a1a;
}
.leaderboard-table tbody tr:nth-child(3) {
	background-color: #c29f76;
	color: #1a1a1a;
}
