* {
-webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;
        box-sizing: border-box;
}

body {
  color: #444;
  background: #fff;
  margin: 0 auto 40px auto;
  font-family: 'Lato', 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #79a2c9;
  text-decoration : none;
}

a:hover {
  color: #8f8f8f;
}

h1,
h2,
p {
  margin: 0;
}

h2 {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: normal;
  font-size: 1.5em;
  color: #959da5;
}

/*
 * Layout
 */

.container {
 width: 95%;
 max-width: 800px;
 margin-left: auto;
 margin-right: auto;
}

  @media screen and (min-width: 500px) {
   .container {
     width: 80%;
   }
  }

.page-header {
 margin-top: 20px;
 margin-bottom: 60px;
 font-size: 12px;
 line-height: 1.66;
 text-align: center;
}

.page-header p {
  margin-left: auto;
  margin-right: auto;
}

.page-result {
  padding: 60px 0;
  background-color: #fff;
}

.page-header h1 {
  font-size: 12px;
}

  @media screen and (max-width: 930px) {
    .page-header p {
      max-width: 100%;
    }
  }


/*
 * Sorter styling
 */

 .sorter-game {
   text-align: center;
 }

 .sorter-header {
   margin-bottom: 10px;
 }

.sorter-option {
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  background: #fff;
  border-radius: 8px;
  border: solid 2px #e1e4e8;
  box-shadow: 0 3px 0 #e1e4e8;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.song-sorter .sorter-option {
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
}

  @media screen and (min-width: 500px) {
    .song-sorter .sorter-option:not(.option-tie) {
      padding-left: 60px;
      padding-right: 60px;
      min-height: 180px;
      line-height: 1.4;
    }
  }

  @media screen and (max-width: 800px) {
    .song-sorter .sorter-option:not(.option-tie) {
      font-size: 18px;
      padding-left: 16px;
      padding-right: 16px;
    }
  }

  @media screen and (max-width: 500px) {
    .song-sorter .sorter-option {
      font-size: 16px;
    }

    .song-sorter .sorter-option:not(.option-tie) {
      line-height: 1.2;
      padding-left: 6px;
      padding-right: 6px;
      min-height: 125px;
    }
  }

  @media screen and (max-width: 500px) {
    .sorter-option:not(.option-tie) {
      display: flex;
      align-items: center;
      align-content: center;
      justify-content: center;
    }
  }

  .sorter-option:hover {
    background-color: #1b1f23;
    border-color: #1b1f23;
    color: #fff;
    box-shadow: 0 3px 0 #1b1f23, 0 5px 12px rgba(0,0,0,0.1);
  }

.main-battle {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  align-content: stretch;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.sorter-option#optionA,
.sorter-option#optionB {
  width: 46%;
}

@media screen and (min-width: 700px) {
  .sorter-option#optionA,
  .sorter-option#optionB {
    width: 45%;
  }
}

.versus {
  display: none;
  letter-spacing: 1px;
  color: #959da5;
}

@media screen and (min-width: 700px) {
  .versus {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}

.sorter-option .heart {
  display: block;
  font-weight: 400;
  font-size: 16px;
  margin-left: 6px;
}

.sorter-option:not(.option-tie) {
  padding-top: 30px;
  padding-bottom: 30px;
}

.results-list ul {
  list-style-type: none;
  padding-left: 0;
}

.results-list li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.results-list li:not(:last-child) {
  padding-bottom: 4px;
  border-bottom: solid 1px #e1e4e8;
}

.results-list .number {
  margin-right: 15px;
}

.results-list .member-image {
  width: 60px;
  height: 60px;
}

.results-list .member-container {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.results-list .member-name {
  margin-left: 15px;
}

/*
 LOONA colors
 */
.heejin {
  color: #ED4576;
}

.hyunjin {
  color: #E6D731;
}

.haseul {
  color: #11b00d;
}

.vivi {
  color: #e68fac;
}

.yeojin {
  color: #ff751d;
}

.lip {
  color: #df191a;
}

.soul {
  color: #2088fc;
}

.choerry {
  color: #83159a;
}

.yves {
  color: #751c33;
}

.chuu {
  color: #eaa77a;
}

.gowon {
  color: #6fdec4;
}

.olivia {
  color: #444;
}

.member-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0;
}

.member-image {
  width: 150px;
  height: 150px;
  margin-bottom: 10px;
  border-radius: 50%;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-name {
  text-align: center;
}

.member-group {
  font-size: 0.8em;
  color: #666;
  margin-top: 5px;
}

.results-list .member-group {
  margin-left: 5px;
  font-size: 0.7em;
}

/* 组合选择界面样式 */
#group-selection {
  text-align: center;
  margin: 40px auto;
  max-width: 600px;
}

#group-selection h2 {
  margin-bottom: 20px;
  color: #333;
}

.group-checkboxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}

.group-checkboxes label {
  margin: 10px 15px;
  font-size: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.group-checkboxes input[type="checkbox"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
}

.start-button {
  background-color: #4CAF50;
  border: none;
  color: white;
  padding: 12px 30px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 10px 2px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.start-button:hover {
  background-color: #45a049;
}
