*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
}

main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-panel {
    flex: 0 0 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo {
    text-align: center;
}

.logo img {
    width: 55%;
}

.sketch-panel {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: slategrey;
}

.sketch-screen {
    width: 960px;
    display: flex;
    flex-wrap: wrap;
    background-color: white;
}

.control-panel {
    flex: 0 0 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.grid-data {
    font-family: 'Exo', sans-serif;
    font-weight: 900;
    padding: 2em;
}

/* TITLE STYLE */

.game-title {
  background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff) -100% / 200%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 900;
  font-size: clamp(1em, 3vw, 4em);
  font-family: 'Exo', sans-serif;
  animation: shimmer 5s linear infinite;
}

.game-subtitle {
  font-family: 'Exo', sans-serif;
  font-size: clamp(0.8em, 2vw, 1.2em);
  font-weight: 500;
  letter-spacing: 1px;
  color: #6b6b6b;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
  margin-top: -0.5em;
}

@keyframes shimmer {
  to {
    background-position: 100%;
  }
}

/* RESTART BUTTON STYLE */

.restart-button {
  appearance: none;
  background-color: #000000;
  border: 2px solid #1A1A1A;
  border-radius: 15px;
  box-sizing: border-box;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-family: Roobert,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  margin: 0;
  min-height: 60px;
  min-width: 0;
  outline: none;
  padding: 16px 24px;
  text-align: center;
  text-decoration: none;
  transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  width: 75%;
  will-change: transform;
}

.restart-button:disabled {
  pointer-events: none;
}

.restart-button:hover {
  box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
  transform: translateY(-2px);
}

.restart-button:active {
  box-shadow: none;
  transform: translateY(0);
}

/* FORM STYLE */
.grid-form {
  padding: 16px;
  width: 75%;
  margin: 0 auto;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  letter-spacing: -0.2px;
  color: #2d2e30;
  border-radius: 10%;
}

.grid-form-segment {
  padding: 32px 0;
  text-align: center;
}

.grid-form-title {
  margin-bottom: 8px;
  text-shadow: 1px 1px 1px #FFF;
}

.grid-form-instruction {
  font-size: 14px;
  text-shadow: 1px 1px 1px #FFF;
  margin-bottom: 24px;
}

.grid-form-label {
  display: block;
  margin-bottom: 24px;
  width: 100%;
}

.grid-form-input {
  width: 100%;
  padding: 16px;
  border: 0;
  outline: 0;
  font-size: 16px;
  border-radius: 320px;
  background-color: #EBECF0;
  box-shadow: inset 2px 2px 5px #BABECC, inset -5px -5px 10px #FFF;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
  appearance: none;
  -webkit-appearance: none;
  text-shadow: 1px 1px 0 #FFF;
}

.grid-form-input:focus {
  box-shadow: inset 1px 1px 2px #BABECC, inset -1px -1px 2px #FFF;
}

.grid-form-button {
  width: 100%;
  padding: 16px;
  border: 0;
  outline: 0;
  font-size: 16px;
  font-weight: 600;
  border-radius: 320px;
  background-color: #EBECF0;
  box-shadow: -5px -5px 20px #FFF, 5px 5px 20px #BABECC;
  color: #61677C;
  text-shadow: 1px 1px 0 #FFF;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.grid-form-button:hover {
  box-shadow: -2px -2px 5px #FFF, 2px 2px 5px #BABECC;
}

.grid-form-button:active {
  box-shadow: inset 1px 1px 2px #BABECC, inset -1px -1px 2px #FFF;
}

.grid-form-button-red {
  color: #AE1100;
}