@import url('https://fonts.googleapis.com/css2?family=Sen&display=swap');

body {
	background-color: white;
}

a {
	text-decoration: none;
	color: gray;
}

#logo-indonesiamaju {
	/* left */
	position: absolute;
	top: 0;
	left: 0;
	width: 240px;
	margin-top: 10px;
	margin-left: 10px;
}

#logo-merdeka {
	/* right */
	position: absolute;
	bottom: 0;
	right: 0;
	width: 200px;
	margin-bottom: 20px;
	margin-right: 20px;
}

#button-info {
	position: absolute;
	top: 0;
	right: 0;
	margin-top: 10px;
	margin-right: 10px;
}

.title {
  font-size: 42px;
}
.container {
	width: 100%;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	margin: 0px;
}
.row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}
.dadu {
	width: 240px;
	height: 240px;
	background-color: #333;
	border-radius: 10px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 100px;
	font-weight: bold;
	color: #f00;
	margin: 20px;
	box-shadow: 5px 5px 7px #000;
}

.angka {
  /* vertical center */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
	font-size: 180px;
  font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Open Sans', 'Helvetica Neue', sans-serif;
	text-shadow: 2px 2px 5px #000;
}

.button-area {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: row;
}

.button-area button {
	border: 1px solid rgb(54, 54, 54);
	background-color: #5dca88;
	padding: 10px 50px;
	margin: 10px;
	cursor: pointer;
	box-shadow: 0 7px #1a7940;
	border-radius: 5px;
	font-weight: bold;
	font-size: 36px;
}

button:active {
	position: relative;
	top: 7px;
	box-shadow: none;
	color: #333;
}

.card	{
	width: 1000px;
	height: 400px;
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	display: flex;
	justify-content: center;
	align-items: center;
  margin-top: -10px;
	flex-direction: column;
}

.subtitle {
	font-size: 14px;
	margin-top: 50px;
	color: rgb(0, 0, 0);
}

.footer {
	font-style: italic;
	font-size: 10px;
	margin-top: 50px;
	color: gray;
	z-index: 999;
}

:root {
  --border-color: #D7DBE3;
  font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Open Sans', 'Helvetica Neue', sans-serif;
  --green: #0CD977;
  --red: #FF1C1C;
  --pink: #FF93DE;
  --purple: #5767ED;
  --yellow: #FFC61C;
  --rotation: 0deg;
  }

.emoji {
  display: block;
  text-align: center;
  font-size: 5rem;
  line-height: 5rem;
  transform: scale(0.5);
  animation: scaleCup 2s infinite alternate;
}

@keyframes confettiRain {
  0% {
    opacity: 1;
    margin-top: -100vh;
    margin-left: -200px;
  } 
  
  100% {
    opacity: 1;
    margin-top: 100vh;
    margin-left: 200px;
  }
}

.confetti {
  opacity: 0;
  position: absolute;
  width: 1rem;
  height: 1.5rem;
  transition: 500ms ease;
  animation: confettiRain 5s infinite;
}

#confetti-wrapper {
  overflow: hidden !important;
}

label {
	margin-top: 5px;
	display: block;
	margin-bottom: 0.5rem;
	font-size: 12px;
	font-weight: bold;
}

textarea {
	padding: 0.5rem;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	margin: 1rem;
}

input[type="text"], input[type="number"] {
	width: 100%;
	padding: 0.5rem;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	margin-bottom: 1rem;
}

.m-3 {
	margin: 1rem;
}

.p-3 {
	padding: 1rem;
}

/* if screen < 768 */
@media screen and (max-width: 768px) {
  body {
    background-color: white;
  }
	#logo-indonesiamaju {
		/* left */
		position: absolute;
		top: 0;
		left: 0;
		width: 140px;
		margin-top: 10px;
		margin-left: 10px;
	}
	#logo-merdeka {
		/* right */
		position: absolute;
		bottom: 0;
		right: 0;
		width: 50px;
		margin-bottom: 20px;
		margin-right: 20px;
	}
  .container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .card	{
    width: 100%;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
	.subtitle {
		margin-top: 10px;
	}
  .dadu {
    width: 100px;
    height: 100px;
    background-color: #333;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    font-weight: bold;
    color: #f00;
    margin: 10px;
    box-shadow: 5px 5px 7px #000;
  }
  .angka {
    font-size: 90px;
  }
  .button-area {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
  }
  .button-area button {
    border: 1px solid rgb(54, 54, 54);
    background-color: #5dca88;
    padding: 10px 50px;
    margin: 10px;
    cursor: pointer;
    box-shadow: 0 7px #1a7940;
    border-radius: 5px;
    font-weight: bold;
    font-size: 24px;
  }
  .button-area button:active {
    position: relative;
    top: 7px;
    box-shadow: none;
    color: #333;
  }
  .footer {
    font-style: italic;
    font-size: 10px;
    margin-top: 30px;
    color: gray;
  }
	textarea {
		width: 90%;
		padding: 0.5rem;
		border: 1px solid var(--border-color);
		border-radius: 5px;
		margin: 1rem;
	}
}