.main-content {
  flex: 1;
  padding: 20px;
  box-sizing: border-box;
}

.layout {
  display: flex;
  flex-direction: row;
}

.page-content {
    flex: 1;
    padding: 20px;
    text-align: center;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f4f4f4;
    padding: 50px;
	text-wrap: wrap;
}

.container {
    background: white;
    padding: 20px;
    border-radius: 10px;
	margin-top: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    display: inline-block;
	max-width: 800px;
}

button {
    padding: 3px 5px;
    font-size: 12px;
    margin-top: 3px;
    cursor: pointer;
}

.shake {
	animation: shake 0.5s;

	animation-iteration-count: 2;
}

.trait {
    margin: 0px 0;
}

.trait span {
    font-weight: bold;
}

@keyframes shake {
	0% { transform: translate(1px, 1px) rotate(0deg); }
	10% { transform: translate(-1px, -2px) rotate(-1deg); }
	20% { transform: translate(-3px, 0px) rotate(1deg); }
	30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
	50% { transform: translate(-1px, 2px) rotate(-1deg); }
	60% { transform: translate(-3px, 1px) rotate(0deg); }
	70% { transform: translate(3px, 1px) rotate(-1deg); }
	80% { transform: translate(-1px, -1px) rotate(1deg); }
	90% { transform: translate(1px, 2px) rotate(0deg); }
	100% { transform: translate(1px, -2px) rotate(-1deg); }
}

* {
    margin: 0;
    padding: 0;
  }
  .imgbox {
    display: grid;
    height: 100%;
  }
  .center-fit {
    max-width: 100%;
    max-height: 100vh;
    margin: auto;
  }

/* The side navigation menu */
.sidebar {
  width: 200px; /* or whatever you want */
  min-width: 200px;
  background-color: #f0f0f0;
  padding: 20px;
  box-sizing: border-box;
  position: relative; /* NOT absolute or fixed */
}

/* Sidebar links */
.sidebar a {
  display: block;
  color: black;
  padding: 16px;
  text-decoration: none;
}

/* Active/current link */
.sidebar a.active {
  background-color: #5C8C95;
  color: white;
}

/* Links on mouse-over */
.sidebar a:hover:not(.active) {
  background-color: #555;
  color: white;
}

/* Page content. The value of the margin-left property should match the value of the sidebar's width property */
/*div.content {
  margin-left: 200px;
  padding: 1px 16px;
  height: 1000px;
}

/* On screens that are less than 700px wide, make the sidebar into a topbar */
@media screen and (max-width: 700px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .sidebar a {float: left;}
  div.content {margin-left: 0;}
}

/* On screens that are less than 400px, display the bar vertically, instead of horizontally */
@media screen and (max-width: 400px) {
  .sidebar a {
    text-align: center;
    float: none;
  }
}

.coin-container {
    display: flex;
    align-items: center;
    height: auto;
    background-color: #f4f4f4;
	background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    display: block;
	max-width: 800px;
}

.coin {
    width: 200px;
    height: 200px;
    position: relative;
    transition: transform 1s ease-in-out;
    transform-style: preserve-3d;
}

.coin img {
    width: 100%;
    height: 100%;
    position: center;
    backface-visibility: hidden;
}

.tails {
    transform: rotateY(180deg);
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  justify-content: center;
  align-items: flex-start; /* Top-aligned instead of center */
  padding-top: 15vh; /* Pushes modal down vertically */
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease-in-out;
}

/* Animation (optional) */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* Mobile tweaks (optional) */
@media (max-width: 500px) {
  .modal-content {
    width: 95%;
    padding: 15px;
  }
}

.modal-content input,
.modal-content button {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  font-size: 1rem;
  box-sizing: border-box;
}

canvas {
    margin-top: 20px;
}

#result {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: bold;
}