:root {
  --border: #000;
  --fun: #6D28D9;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:helvetica;
  color:#333;
  background:#dbdbdb;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
a{text-decoration:none;color:#333}

.content a {
  color: #6D28D9 !important;
}


#distroller {
  display: none;
}
.menu{
  display:flex;
  align-items:stretch;
  flex-wrap:wrap;
  background:#e3e3e3;
  border-bottom:1px solid var(--border);
}
.logo{
  position:relative;
  color:white;
  background: var(--fun);
  font-weight:700;
  display:flex;
  align-items:center;
  align-self:stretch;
  padding:5px 11px;
  border-right:1px solid var(--border);
  font-size:14px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.items{
  display:flex;
  flex-wrap:wrap;
  margin:0;
  padding:0;
  list-style:none;
}
.items li{
  border-right:1px solid var(--border);
  font-size:14px;
  white-space:nowrap;
  font-family:courier;
}
.items a{
  display:block;
  padding:5px 11px;
  position:relative;
}
.items a.active::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:2px;
  background:#333;
}

.content{
  font-family: courier;
  font-size: 14px;
  padding:48px 64px 28px 64px;
}
h1{margin:0 0 20px;font-size:16px;color:#555}
p,li{line-height:1.7}
ol{padding-left:20px;margin:0}
.frame {
  width: min(800px, 95%);
  margin: 40px auto;
  background: #fff;
  border: 1px solid var(--border);
}

.footer {
  text-align: center;
  font-family: courier;
  font-size: 11px;
  color: #a3a3a3;
  padding-bottom: 10px;
}

#calendar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 9px;
  padding-bottom: 9px;
}

.today {
  text-decoration: underline;
}

.cal {
  border-collapse: collapse;
  font-family: courier;
  text-align: center;
  border: 1px solid #000;
  font-size: 14px;
}

.cal th, .cal td {
  border: 1px solid #000;
  padding: 9px;
  width: 14.28%;
  vertical-align: middle;
}

.cal td.red {
  background: var(--fun);
  color: #fff;
}

.cal th {
  background: #e5e5e5;
  font-weight: normal;
}

.cal td.red.today {
  text-decoration: underline;
  text-decoration-color: #fff;
}

@media (max-width: 500px) {
  .content {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .menu {
    flex-direction: column;
  }
  
  .logo {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  
  .items {
    width: 100%;
    background: #e3e3e3;
  }
  
  .items li {
    flex: 1;
  }
  
  .items li:last-child {
    border-right: none;
  }
}

/* Names style */
#name-box.name {
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 40px;
  text-align: center;
  color: var(--fun);
  font-style: normal;
}

/* System message style */
#name-box.message {
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 40px;
  text-align: center;
  color: red;
  font-style: italic;
}

#game-container {
  padding-top: 15px;
  padding-bottom: 15px;
}

#timer {
  text-align: center !important;
  position: relative;
}

#next-btn, #continue-btn {
  display: block;
  margin: 0 auto;
  border:1px solid #000;
  background:#6D28D9;
  color:white;
  font-size:13px;
  font-weight: 600;
  border-radius:0;
  padding: 6px 9px;
  cursor: pointer;
}

.crimson {
  background: #cc2d2d !important;
}

#captcha-input {
  width:200px;height:24px;
  border:2px solid #dbdbdb;
  border-radius:0;
  font-size:14px;
  font-family:'Courier New', serif;
  resize:none;
  color:#999;
}

.roulette-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 25px;
  padding-bottom: 25px;
}

.roulette-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.roulette-wrapper #spin {
  position: absolute;
  left: calc(50% + 100px);
  transform: translateX(0);
  display: block;
  border: 1px solid var(--border);
  background: var(--fun);
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: 0;
  padding: 8px 8px;
  cursor: pointer;
}

.roulette-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.roulette-inner .label.high {
  position: absolute;
  bottom: 100%;
  margin-bottom: 5px;
  font-family: courier;
  font-size: 15px;
  text-align: center;
  width: 150px;
}

.roulette-inner .label.low {
  position: absolute;
  top: 100%;
  margin-top: 5px;
  font-family: courier;
  font-size: 15px;
  text-align: center;
  width: 150px;
}

.roulette-inner #wheel {
  display: block;
  border: 1px solid var(--border);
}

.excel-cell a {
  text-decoration: underline !important;
}

.excel-grid {
  display:table;
  border-collapse:collapse;
  width:100%;
  margin-bottom:16px;
}
.excel-row{
  display:table-row;
}

.excel-cell {
  display:table-cell;
  border:1px solid #000;
  padding:2px 5px;
  vertical-align:top;
}

#game {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#envelope {
  width: 300px;
  height: 180px;
  background-color: #3498db;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 22px;
  user-select: none;
  position: relative;
  transition: background-color 0.2s, transform 0.2s;
}

#envelope::before {
  display: none;
}

#envelope.revealed {
  background-color: #2ecc71;
  transform: scale(1.05);
}

#playerNumbers {
  display: flex;
}

#playerSelector {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.playerNumber {
  width: 30px;
  height: 30px;
  background-color: #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-family: Courier, monospace;
  font-size: 15px;

  border-top: 1px solid black;
  border-left: 1px solid black;
  border-bottom: 1px solid black;
  margin: 0;
}

.playerNumber:last-child {
  border-right: 1px solid black;
}


.playerNumber.selected {
  background-color: var(--fun);
  color: white;
}

#tutorial {
  text-align: center;
}

.heart {
  position: fixed;
  font-size: 17px;
  pointer-events: none;
  z-index: 9999;
  animation: float 3s ease-out forwards;
  margin-left: -8.5px;
  margin-top: -8.5px;
}

@keyframes float {
  0% {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-200px) translateX(var(--drift)) scale(0.3);
  }
}