/* BASICS */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --bg: #171717;
    --txt: #fafafa;
    --sub: #a3a3a3;
}
body {
	font-family: "Inter", sans-serif;
	text-rendering: optimizeLegibility;
	font-weight: 400;
	padding: 2rem 2rem 8rem 2rem;
	color: var(--txt);
	background-color: var(--bg);
}

r-grid{
	max-width:1800px;
	margin:auto;
}

/* TYPE */

p, li, a, table{
	line-height: 1.6rem;
}

h2 {
	padding-top:4rem;
}
h3 {
	padding-top:2rem;
}

strong, h1, h2, h3, h4{
	margin-top:1rem;
	margin-bottom:1rem;
	font-weight: 600;
}

a, a:visited {
	color: var(--sub);
	text-decoration: none;
	border-bottom: 0.5px dashed var(--sub);
}

a:hover {
	color: var(--txt);
	border-bottom: 0.5px solid var(--txt);
}

.caption {
	color: var(--sub);
	font-style:italic;
	text-align:center;
	margin-top: 1rem;
}

.sub{
	color: var(--sub);
}


/* UTILS */

.t1 {
	padding-top: 1rem;
}
.t2 {
	padding-top: 2rem;
}
.t3 {
	padding-top: 3rem;
}
.t4 {
	padding-top: 4rem;
}
.t5 {
	padding-top: 5rem;
}
.t6 {
	padding-top: 6rem;
}

button {
  padding: 0 0 .5rem 0;
  border: none;
  cursor: pointer;
  background:none;
}

table {
	width:100%;
}
td {
	padding: 0rem .5rem 0rem .5rem
	margin:0px;
	padding-right: 1.5rem;
	vertical-align:top;
	border-bottom: 0.5px dashed var(--sub);
	
}

img, video{
	width:100%;
	height:auto;
}

.item {
	padding-top: 6rem;
	text-align:center;
}

#random img, #random video{
	max-width:80%;
	height:auto;
	max-height: 80vh;
	width:auto;
	margin:auto;
}

.video{
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%;
	margin-top:6rem;
	background-color:var(--bg);
}

.video iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
	width:90%;
	height:100%;
	margin:auto;
	border-width:0px;
}


/* COMPONENTS */

.nav {
	padding-bottom:2rem;
}

.localtime{
	margin-top:2.4rem;
	color: var(--sub);
	padding-top:1rem;
	text-align:center;
}

.bottom-centre{
	position: fixed;
    bottom: 0;
    padding-bottom: 2rem;
	margin-left: -2.5rem;
    width: 100%;
    text-align: center;
	z-index:4000;
}

.top-centre{
	position: fixed;
    top: 0;
    padding-top: 1rem;
	margin-left: -2.5rem;
    width: 100%;
    text-align: center;
	z-index:4000;
}
	
.nav-button {
  background-color: var(--txt);
  opacity: 60%;
  border-radius: 2rem;
  border-width: 0;
  color: var(--bg);
  cursor: pointer;
  display: inline-block;
  padding: .5rem .55rem .3rem .6rem;
  font-size: 1rem;
  margin-top:1rem;
  text-align: center;
  vertical-align: baseline;
  box-shadow: rgba(50, 50, 93, 0.22) 0px 13px 27px -5px, rgba(0, 0, 0, 0.2) 0px 8px 16px -8px;
}

.nav-button svg{
    fill: var(--bg);
}

#scrollToTop {
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  opacity: 0;
  visibility: hidden;
}

#scrollToTop.show {
  opacity: 60%;
  visibility: visible;
}

#scrollToTop:hover{
    opacity: 100%;
    transform: translateY(-8px);
}

.shuffle:hover {
    opacity: 100%;
   animation: shuffle 0.6s;
   transition: transform 0.3s;
}

@keyframes shuffle {
  0% { transform: rotate(0) }
  33% { transform: scale(1.1) rotate(17deg) }
  66% { transform: scale(1.1) rotate(-17deg) }
  100% { transform: rotate(0) }
}

@keyframes shake {
    0% { transform: rotate(0) }
    20% { transform: rotate(1deg) }
    40% { transform: rotate(-1deg) }
    60% { transform: rotate(1deg) }
    80% { transform: rotate(-1deg) }
    100% { transform: rotate(0) }
}

.apply-shake {
  animation: shake 0.5s;
  transition: transform 0.3s;
}

@media only screen and (max-width: 769px) {
	body{
		padding: 1rem 1rem 6rem 1rem;
	}
	.localtime{
		display:none;
	}
	.top-centre, .bottom-centre{
		margin-left: -1.5rem;
	}
	#random img, #random video{
		max-width:100%;
		height:auto;
		max-height: 80vh;
		width:auto;
		margin:auto;
	}
	.video iframe {
		width:100%;
	}
	.shuffle, #scrollToTop.show {
		opacity:100%;
	}
}