body {
  font-family: 'Roboto', sans-serif;
  background-color: #13fc03;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  background-color: blue;
  border-radius: 8px;
  font-weight: 500;
  font-size: 20px;
  transition: background-color 250ms ease-in-out, transform 250ms ease-in-out;
}
button:hover,
button:focus {
  background-color: darkblue;
  transform: scale(0.9);
}
.top-line {
  padding: 25px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
  text-align: center;
}
.site-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 0 auto;
}
.site-title::before,
.site-title::after {
  content: '';
  display: block;
  height: 2px;
  width: 50px;
  background-color: black;
}
.container {
  padding-bottom: 30px;
  max-width: 1100px;
  min-height: 600px;
  margin: 0 auto;
  background-color: white;
  border: 2px solid #8c7023;
  border-radius: 10px;
}

/*---------------------------------------------Start-page---------------------------------------*/
section {
  padding-bottom: 80px;
}
.title {
  text-align: center;
  padding: 50px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 50px;
}
.text {
  padding: 30px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 80px;
}
.start-btn {
  margin: 0 auto;
  width: 200px;
  height: 80px;
}
.start.invis {
  display: none;
}

/*---------------------------------------------Options-page---------------------------------------*/
.options {
  display: none;
}
.options.vis {
  display: block;
}
.inp-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.inp-size {
  outline: none;
  padding: 8px 16px;
  width: 300px;
  height: 50px;
  border-radius: 6px;
  text-align: center;
  border-color: #382e13;
  transition: border-color 250ms ease-in-out;
}
.inp-size:hover,
.inp-size:focus {
  border-color: blue;
}
.radio-btn {
  padding: 15px 10px 0 10px;
  border-color: #382e13;
  height: 80px;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.form-btn {
  width: 170px;
  height: 50px;
}

/*---------------------------------------------Array-page---------------------------------------*/
.array-page {
  display: none;
}
.array-page .container {
  padding-left: 50px;
  padding-right: 50px;
}
.array-page.vis {
  display: block;
}
.array {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 20px;
}
.array-item {
  font-weight: 600;
  border: 2px solid black;
  border-radius: 8%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: visibility 250ms ease-in-out;
}
.finish-btn {
  width: 150px;
  height: 60px;
  margin: 0 auto;
}
.finish-btn:disabled {
  background-color: cadetblue;
  transform: scale(1);
}

/*----------------------------------------Window-error-message---------------------------*/
.error-enter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  background-color: rgba(43, 42, 40, 0.7);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 250ms ease-in-out, visibility 250ms ease-in-out;
}
.error-enter.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.error-img {
  width: auto;
  height: 550px;
  background-color: transparent;
}
.message-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.error-message {
  padding: 15px;
  background-color: aliceblue;
  font-size: 18px;
  font-weight: 500;
  text-align: justify;
  line-height: 1.2;
  max-width: 300px;
  border-radius: 6px;
}
.error-btn {
  background-color: #eda515;
  width: 90px;
  height: 60px;
}

/*----------------------------------------Window-try-again-message---------------------------*/
.try-again {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  height: 100%;
  background-color: rgba(43, 42, 40, 0.7);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 250ms ease-in-out, visibility 250ms ease-in-out;
}
.try-again.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.try-img {
  width: auto;
  height: 600px;
}
.try-text {
  position: absolute;
  top: 58%;
  max-width: 150px;
}
.try-yes,
.try-no {
  width: 100px;
  height: 50px;
  background-color: #eda515;
}
