@font-face {
    font-family: 'NomnomNami';
    src: url('../fonts/NomnomNami.woff2') format('woff2'),
         url('../fonts/NomnomNami.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    font-family: 'NomnomNami', Arial, sans-serif;
    color: white;
    text-align: center;
    overflow: hidden;
    background: #000;
    font-size: 24px;
}

@keyframes move-twink-back {
	from {
		background-position: 0 0;
	}
	to {
		background-position: -10000px 5000px;
	}
}

.stars, .twinkling {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.stars {
	background: #000 url(../img/stars.webp) repeat top center;
	z-index: 0;
}

.twinkling {
	background: transparent url(../img/twinkling.png) repeat top center;
	z-index: 1;
	animation: move-twink-back 200s linear infinite;
}

.two-column-grid {
    display: grid;
    grid-template-columns: 0.5fr 0.5fr;
    grid-template-rows: auto auto;
    align-items: center;
    justify-items: center;
    gap: 0.1rem;
}

@media screen and (max-width: 400px) {
  .two-column-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }
}


#content, #results {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    max-width: 800px;
    width: 100%;
}

#top-character {
    width: 96px;
    height: 96px;
}

#message, .sub-message, #ship-message, #ship-names, #reroll-prompt, #combined-ship-name {
    margin: 10px 0;
    color: #ffffff;
}
#ship-names, #combined-ship-name {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000;
}

@keyframes floatInSpace {
    0% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-20px);
    }
    100% {
      transform: translateY(0);
    }
  }
  
  
#combined-ship-name {
      font-size: 100px;
      margin: 5vh 50px 5vh;
      font-weight: bold;
      color: #5a597b;
      text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000;
  
      animation: floatInSpace 5s ease-in-out infinite;
}

.row-of-boxes {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
  }
  
  .box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }
  
  .action-buttons {
    margin-top: 0.5rem;
  }
  

#ship-message {
    font-size: 24px;
    margin: 20px 0;
    color: #ffffff;
}

.action-buttons {
    margin: 20px 0;
}

.gen-button {
    display: inline-block;
    font-size: 48px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gen-button:hover {
    transform: scale(1.1);
}

.characters-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px auto;
    max-width: 80%;
}

#left-character, #right-character, #center-character {
    width: 96px;
    height: 96px;
}

.bottom-left-buttons {
  position: fixed;
  bottom: 20px;
  left: 20px;   
  display: none; 
  flex-direction: column; 
  gap: 10px; 
  z-index: 1000;
}

.corner-button {
  width: 48px;
  height: 48px; 
  opacity: 0.1;
  filter: invert(1);
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.corner-button:hover {
  opacity: 0.5; 
}

@media (min-aspect-ratio: 1/1) {
  .bottom-left-buttons {
    display: flex;
  }
}

.bottom-right-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none; 
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1000;
}

@media (min-aspect-ratio: 1/1) {
  .bottom-right-buttons {
    display: flex;
  }
}

.extras-label {
  font-size: 20px;
  font-weight: bold;
}

.extras-checkbox {
  width: 24px;
  height: 24px;
  cursor: pointer;
}
