html,
body,
header,
nav,
a,
ul,
li,
strong,
main,
button,
i,
section,
img,
div,
h1,
h2,
h3,
h4,
h5,
p,
form,
fieldset,
label,
input,
textarea,
span,
article,
footer,
time,
small {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  text-decoration: inherit;
  vertical-align: inherit;
  box-sizing: border-box;
  background: transparent;
}

html {
  line-height: 1.5;
}

ul {
  list-style: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #007bff;
}

button,
input[type="submit"],
input[type="reset"],
input[type="select"] {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

input[type="password"],
input[type="email"],
input[type="text"],
textarea,
button {
  -webkit-appearance: none;
  -moz-appearance: none;
}

select {
  background: none;
  color: inherit;
  border: none;
  font: inherit;
  cursor: pointer;
}

body {
  background-image: url("../back.jpg");
  font-family: 'Do Hyeon', sans-serif;
  color: #DBDAE8;
  font-size: 30px;
}

#game_container {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
  margin-right: 20px;
  margin-bottom: 20px;
}

#left_container {
  margin-right: 30px;
  margin-left: 20px;
}

/* Default styles (applies to all screen sizes) */
#left_container {
  margin-top: 20%;
  /* Default margin */
}

#game_container {
  margin-top: 10%;
  /* Default margin */
}


/* Small screens (mobile devices, less than 768px) */
@media (max-width: 1000px) {
  #left_container {
    margin-top: 35%;
    /* Smaller margin for mobile */
  }

  #game_container {
    margin-top: 20%;
  }
}


/* Small screens (mobile devices, less than 768px) */
@media (max-width: 768px) {
  #left_container {
    margin-top: 40%;
    /* Smaller margin for mobile */
  }

  #game_container {
    margin-top: 20%;
  }
}

/* Extra small screens (very small phones, less than 480px) */
@media (max-width: 480px) {
  #left_container {
    margin-top: 20%;
    /* Even smaller margin for tiny screens */
  }

  #game_container {
    margin-top: 10%;
  }
}


#info {
  min-width: 250px;
  text-align: center;
}

#instructions p {
  margin-bottom: 15px;
}

#page_container {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#flood_grid {
  margin: auto;
}

#flood_grid .row {
  display: flex;
}

#frame_container {
  width: 1200px;
  margin: auto;
  display: flex;
}

#completion {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

#completion h4 {
  font-size: 45px;
}

#form {
  display: flex;
  justify-content: space-between;
  margin: 30px 50px;
}

.top_space {
  padding-top: 30px;
}

.heading {
  display: flex;
  width: 365px;
  justify-content: space-between;
  margin: auto;
  margin-bottom: 10px;
}

.heading h1 {
  font-size: 50px;
}

.links {
  display: block;
  float: right;
}

.links:last-child {
  padding-right: 15px;
}

#links_container {
  display: block;
  width: 100%;
}

#links_container i {
  color: rgba(0, 0, 0, 0.7);
  font-size: 40px;
  padding: 0 10px;
  margin-bottom: 10px;
}

#color_count {
  -webkit-appearance: none;
  padding: 7px 18px 0;
  background-color: rgba(22, 83, 112, 0.6);
  border: none;
  color: #DBDAE8;
  cursor: pointer;
  font-size: 26px;
  font-family: 'Do Hyeon', sans-serif;
}

#tile {
  min-width: 50px;
  min-height: 50px;
  display: block;
  border: 0;
  transform: scaleY(-1);
  transition: background-color 0.25s linear, transform 0.25s linear;
}

#tile:hover {
  cursor: pointer;
}

.purple {
  background-color: #C200FB;
}

.blue {
  background-color: #63ADF2;
}

.green {
  background-color: #A9F200;
}

.red {
  background-color: #FC2F00;
}

.yellow {
  background-color: #FFEA0A;
}

.orange {
  background-color: #FFB52D;
}

.grey {
  background-color: #A8AFAE;
}

.teal {
  background-color: #37F2D3;
}

.title_purple {
  color: #C200FB;
}

.title_blue {
  color: #63ADF2;
}

.title_green {
  color: #A9F200;
}

.title_red {
  color: #FC2F00;
}

.title_yellow {
  color: #FFEA0A;
}

.title_orange {
  color: #FFB52D;
}

.title_grey {
  color: #A8AFAE;
}

.title_teal {
  color: #37F2D3;
}