@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.6/dist/web/static/pretendard.css");

* {
  box-sizing: border-box;

}

b,
strong,
th {
  font-weight: 600;
}

a {
  color: #11a4d3;
}

hr {
  background-color: #6eee99;
  height: 2px;
  border: 0;
}

body,
input {
  font-size: 17px;
  line-height: 1.59;
  -webkit-font-smoothing: subpixel-antialiased;
  font-family: 'Pretendard', -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  text-rendering: optimizeLegibility;
  font-weight: 400;
}

body {
  word-break: keep-all;
  margin: 0;
  padding: 0;
  

}

body .banner {
  align-items: center;
  display: flex;
  justify-content: center;
  gap: 0.5em;
  padding: 0.5em;
  margin-bottom: 1.6em;
  border-bottom: 1px solid #a6a6a6;
  text-decoration: none;
  color: #000;
}

body .banner img {
  height: 1.7em;
}

body .banner span {
  margin-top: 4px;
  font-size: 0.9em;
}

body .banner span b {
  font-weight: 700;
}



body.dialog-open {
  overflow: hidden;
}

body.settings-open #settings-underlay {
  display: block;
}

header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

h2 {
  margin: 0;
}

input[type="button"] {
  color: black;
  padding: .5em;
  border: 1px solid #666666;
  border-radius: 0.2em;
}

#menu {
  display: flex;
  column-gap: .5em;
}

#menu .dialog-close {
  background: transparent;
  color: black;
  padding: 0;
}

.overlay-button {
  position: relative;
  color: black;
  background: none;
  border: none;
  height: 2em;
  font-weight: bold;
  width: 2em;
}

.overlay-button svg {
  width: 70%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.dialog-underlay {
  background: rgba(0, 0, 0, .5);
  bottom: 0;
  display: none;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1;
}

.dialog {
  background: white;
  left: 2em;
  margin-bottom: 2em;
  margin-left: auto;
  margin-right: auto;
  max-width: 40em;
  overflow: hidden;
  position: fixed;
  right: 2em;
  top: 2em;
  z-index: 1;
  border-radius: .5em;
}

.dialog-close {
  position: absolute;
  background: none;
  border: none;
  padding: 0;
  color: black;
  font-size: 2em;
  height: 1em;
  line-height: 1em;
  right: .5em;
  top: .5em;
  width: 1em;
  z-index: 2;
}

.dialog-close svg {
  position: absolute;
  width: 70%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.dialog-content {
  max-height: calc(100vh - 4em);
  padding: 2em;
  overflow: auto;
}

.dialog-content>*:first-child {
  margin-top: 0;
}

.dialog-content>*:last-child {
  margin-bottom: 0;
}

#guess-wrapper {
  display: flex;
  margin: 20px 0;
  align-items: center;
}

#guess-wrapper input,
#give-up-btn {
  padding: .5em;
  background: #172336;
  color: #fff;
  border-radius: 8px;
}

#guesses {
  margin-bottom: 40px;
  position: relative;
  width: 100%;
}
#guesses th {text-align: center;}

#guess-wrapper #guess {
  color: black;
  background-color: #ffffff;
  width: 100%;
  /*border-top-right-radius: 0;
  border-bottom-right-radius: 0;*/
  border-radius: 8px;
  border: 1px solid #a8b0b6;
}

#guess-wrapper #guess-btn {
  /*color: black;*/
  /*background-color: #eeeeee;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;*/
  margin: 10px;
  width: 30%;
  background: #172336;
  color: #fff;
  border-radius: 8px;
}

/*#give-up-btn {
  color: black;
  background-color: #eeeeee;
}*/

th {
  padding-right: 3em;
  text-align: start;
}

th#chronoOrder,
th#alphaOrder,
th#similarityOrder,
input#give-up-btn,
input#guess-btn,
input#lower,
button {
  cursor: pointer;
}

.gaveup {
    border: 1px solid #c2caca;
    margin-bottom: 1em;
    padding: 1em;
    background-color: #f3ffee;
    border-radius: 10px;
}

.gaveup>*:first-child {
  margin-top: 0;
}

.close {
  text-align: left;
  display: flex;
  align-items: center;
}

.percentile,
.progress-container,
.progress-bar {
  display: inline-block;
}

.percentile {
  text-align: right;
  width: 2em;
}

.progress-container {
  background-color: #d5d5d5;
  width: 7em;
  height: 15px;

}

.progress-bar {
  background-color: #00b5ef;
  height: 15px;
}

.weirdWord {
  display: inline-block;
  border-bottom: 1px dotted black;
}

.weirdWord .tooltiptext {
  visibility: hidden;
  width: 20em;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 0.3ex 0;
  border-radius: 1ex;
  position: absolute;
  right: 0;
  z-index: 1;
  display: block;
  max-width: 100%;
}

.subtext {
  color: #666666;
}

ul {
  margin-top: -2.59em;
  padding-inline-start: 3em;
}

.weirdWord:hover .tooltiptext {
  visibility: visible;
}

.give-up-btn-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

.give-up-btn-wrapper .bottom-banner {
  display: block;
  width: 100%;
  margin-left: 8px;
  font-size: 0;
  text-decoration: none;
  background: url(/assets/banner-image.png) center no-repeat no-repeat;
  background-size: cover;
}

footer {
  margin-top: 5em;
}

#embedim--snow {
  display: none;
}
body .container {
 	max-width: 560px;
  	padding: 2em;
  	border: 1px solid #bfbfbf;
	  border-radius: 30px;
  	background: #fff;
}

@media only screen and (min-width: 641px) {
	body {
		background: url(../background.png) no-repeat center top fixed;
 		background-size: 100% 100dvh;
	}
	body .container {
  		margin: 80px auto;
	}
	.mobileImage{
		display: none;
	}
}

/* 모바일 */
@media only screen and (max-width: 640px) {
	.mobileImage {
		display: flex;
		justify-content: center;
		margin: 20px;
	}
	.mobileImage img {
		margin: 10px;
		height: 40px;
	}
	body {
		background: url(../background2.png) no-repeat center top fixed;
 		background-size: cover;
	}
	body .container {
  		margin: 0 20px;
	}

  body,
  input {
    font-size: 14px;
  }

  table {
    width: 100%;
  }

  th {
    padding-right: .5em;
  }

  .progress-container {
    width: 8em;
  }
}

/* Dark mode */
body.dark {
 /* background: none;*/
  color: #fafafa;
  color-scheme: dark;
}
body.dark .container{
	background: #111;
}
body.dark .banner {
  color: #ffffff;
}

body.dark input[type="button"] {
  color: #fafafa;
  border: 1px solid #333;
}

body.dark .dialog {
  background: #333;
}

body.dark .dialog-close {
  color: #fafafa;
}

body.dark .progress-container {
  background: #333;
}

body.dark .gaveup {
  background: #334;
}

body.dark .weirdWord {
  border-color: #fafafa;
}

body.dark .weirdWord .tooltiptext {
  background-color: #333;
}

body.dark .overlay-button {
  color: #fafafa;
  height: 2em;
  font-weight: bold;
  width: 2em;
}

body.dark #guess-wrapper #guess-btn {
  color: #fafafa;
  background-color: #333;
}

body.dark #guess-wrapper #guess {
  color: #fafafa;
  background-color: #333;
}

body.dark #give-up-btn {
  color: #fafafa;
  background-color: #333;
}

body.dark .subtext {
  color: #aaaaaa;
}

body.dark.snow #embedim--snow {
  display: block;
}
.progress-bar {
	background-color: #96f58d;
}
#notice{
	color: #1fe761;
}
#enter-event-btn {
	width: 100%;
    margin: 0 auto;
    padding: 10px;
    background: #96f58d;
    border: 1px solid #88df7f;
    border-radius: 8px;
}
.btn-wrapper{
	    margin: -10px 0 5px;
}
#em-submit{
	width: 100%;
    margin-top: 4px;
    background: #172336;
    color: #fff;
    border: 1px solid #172336;
    border-radius: 5px;
    padding: 6px;
}
#privacy{
	padding-inline-start: 23px;
	font-size: 11px;
}
.privacy-wrapper{
	background: #f1f0f0;
}
#energyInfo {
	margin: 10px 0;
    border-radius: 8px;
    background: #6eee99;
    border: 1px solid #44d976;
	
}
