body {
	background-color: #f9f6ec;
	text-align: center;
	font-family: sans-serif;
	color: #051625;
  min-height: 100vh;
  border-bottom: 3px solid #fdce32;
  padding-bottom: 2rem;
}

/* Globals */
h1, h2, h3, h4, h5, h6,
button,
.label,
.share-button,
#score,
#perfect-game,
#next-button {
  font-family: 'VT323', monospace;
}



/* Headings  */
h1,h2,h3 {
	color: #ac330f;
}

h1 {
  	font-size: 2rem;
}
h2 {
	font-size: 1.7rem;
}

/*Button styles*/

button {
	background-color: #fdce32;
	color: #051625;
	padding: 0.8rem;
	border-radius: 0.6rem;
  border:none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-size: 1rem;
}

.hide {
  opacity: 0;
  /*transform: scale(0.95);*/
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Share button */
.share-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0077cc;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.share-button:hover {
  background: #005fa3;
}

/* Table styles */
table {text-align: center;}

th {
  color: #ac330f;
}
tr {
	border-bottom: 1px solid grey;
	color: #051625;
}

.perfect-game {
  font-size: 1.5rem;
  font-weight: bold;
  color: goldenrod;
  margin: 1rem 0;
  text-align: center;
  animation: pop 0.4s ease-out;
}

@keyframes pop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


.main-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* spacing between blocks */
}

.block {
  width: 100%;
}


@media (min-width: 768px) {
  .main-layout {
    display: flex;             /* This is crucial */
    flex-direction: row;       /* Align children horizontally */
    gap: 1rem;                 /* Optional spacing between blocks */
    justify-content: space-between; /* Optional: controls spacing */
    align-items: center;
    justify-content: center;
  }

  .block {
    flex: 1;                /* Or flex: 1; */
  }

  #result {
  	width: 100%;
  }
}

.result{
    align-items: center;
    justify-content: center;	
}