@charset "UTF-8";
/* settings/_variables.scss */
footer {
  width: 100%;
  text-align: center;
  background-color: white;
}

.sidebar {
  height: 100vh;
  position: absolute;
  background-color: #f8f9fa;
}
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
}

#title {
  font-size: 24px;
}

body {
  background-color: #f8f9fa;
  height: 100vh;
}

.tradingview-widget-container {
  max-width: 100%;
  height: auto;
}
.tradingview-widget-container #tradingview_chart {
  width: 100%;
  height: 500px;
}
.tradingview-widget-container #tradingview_chart > div {
  width: auto !important;
  max-width: 800px;
}

#suggestList {
  list-style: none;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
}
#suggestList:focus {
  border: 1px solid #ccc;
}
#suggestList .suggest-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #dadce0;
}
#suggestList .suggest-item:hover {
  background-color: #dadce0;
}

.alert-dismissible {
  padding-right: 1rem;
}

.alert-dismissible .btn-close {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 1rem;
  z-index: 2;
  padding: initial;
}

.img-x-logo {
  width: 16px;
  height: 16px;
  margin-left: 5px;
  background-color: black;
  padding: 2px;
}

img .rounded {
  border-radius: 50%;
}
img.reflection {
  width: 300px;
  height: 150px;
  position: relative;
  overflow: hidden;
  background-color: #666;
}
img.reflection::after {
  content: "";
  display: block;
  width: 30px;
  height: 100%;
  position: absolute;
  top: -180px;
  left: 0;
  background-color: #FFF;
  opacity: 0;
  transform: rotate(45deg);
  animation: reflect 2s ease-in-out infinite;
  -webkit-transform: rotate(45deg);
  -webkit-animation: reflect 2s ease-in-out infinite;
}
@keyframes reflect {
  0% {
    transform: scale(0) rotate(45deg);
    opacity: 0;
  }
  80% {
    transform: scale(0) rotate(45deg);
    opacity: 0.5;
  }
  81% {
    transform: scale(4) rotate(45deg);
    opacity: 1;
  }
  100% {
    transform: scale(50) rotate(45deg);
    opacity: 0;
  }
}
@-webkit-keyframes reflect {
  0% {
    transform: scale(0) rotate(45deg);
    opacity: 0;
  }
  80% {
    transform: scale(0) rotate(45deg);
    opacity: 0.5;
  }
  81% {
    transform: scale(4) rotate(45deg);
    opacity: 1;
  }
  100% {
    transform: scale(50) rotate(45deg);
    opacity: 0;
  }
}

table th {
  white-space: nowrap;
}
table.table-sm td {
  padding: 0.5rem 0.5rem;
}

.predictions .prediction-item {
  margin-top: 1rem;
}
.predictions .prediction-item .selectedCandidate {
  display: none;
}
.predictions .prediction-item .selectedCandidate.active {
  display: block;
}

table#oddsTable thead th {
  white-space: nowrap;
  padding: 3px;
  text-align: center;
  font-weight: bold;
}
table#oddsTable tbody td {
  text-align: center;
}

/* settings/_variables.scss */
#rankingView {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.rankingViewDetailRank {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}
.rankingViewDetailRank .rank {
  width: 100px;
}
.rankingViewDetailRank .rank span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  color: white;
  font-size: 22px;
  width: 70px;
}
.rankingViewDetailRank .rank span.rank1 {
  background-color: #F5C616;
}
.rankingViewDetailRank .rank span.rank2 {
  background-color: #9D9D9D;
}
.rankingViewDetailRank .rank span.rank3 {
  background-color: #CD8152;
}
.rankingViewDetailRank .userWrap {
  width: 140px;
  text-decoration: none;
}
.rankingViewDetailRank .userWrap .name {
  color: black;
  white-space: nowrap;
}
.rankingViewDetailRank .userWrap .thumbnail {
  width: 100%;
  max-width: 100px;
}

.myScore {
  font-size: 24px;
  font-weight: bold;
  color: red;
}

#scrollToMyScoreTr {
  cursor: pointer;
}

* .rounded {
  border-radius: 50%;
}
*.reflection {
  position: relative;
  overflow: hidden;
  background-color: #666;
}
*.reflection::after {
  content: "";
  display: block;
  width: 10px;
  height: 100%;
  position: absolute;
  top: -180px;
  left: 0;
  background-color: #FFF;
  opacity: 0;
  transform: rotate(45deg);
  animation: reflect 3s ease-in-out infinite;
  -webkit-transform: rotate(45deg);
  -webkit-animation: reflect 3s ease-in-out infinite;
}
@keyframes reflect {
  0% {
    transform: scale(0) rotate(45deg);
    opacity: 0;
  }
  80% {
    transform: scale(0) rotate(45deg);
    opacity: 0.5;
  }
  81% {
    transform: scale(4) rotate(45deg);
    opacity: 1;
  }
  100% {
    transform: scale(50) rotate(45deg);
    opacity: 0;
  }
}
@-webkit-keyframes reflect {
  0% {
    transform: scale(0) rotate(45deg);
    opacity: 0;
  }
  80% {
    transform: scale(0) rotate(45deg);
    opacity: 0.5;
  }
  81% {
    transform: scale(4) rotate(45deg);
    opacity: 1;
  }
  100% {
    transform: scale(50) rotate(45deg);
    opacity: 0;
  }
}

/* フレックスボックスで横に広がる（PC向け） */
.candidate-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 10px;
}

/* 各候補者カード */
.candidate-card {
  background: #f8f9fa;
  text-align: center;
  padding: 3px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
  min-width: 108px;
  flex: 1 1 calc(30% - 10px);
  max-width: 150px;
  word-wrap: break-word;
  /* 選択状態のハイライト */
}
.candidate-card:hover {
  background: #e2e6ea;
}
.candidate-card.selected {
  background: #007bff;
  color: white;
  font-weight: bold;
}
.candidate-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.candidate-card .card-body {
  padding: 5px;
}
.candidate-card .card-body p {
  margin-bottom: 2px;
}
.candidate-card .card-body .candidate-img {
  width: 100%;
}
.candidate-card .card-body .candidate-name {
  font-size: 12px;
}
.candidate-card .card-body .candidate-twitter_id {
  font-size: 8px;
  color: gray;
}
.candidate-card .card-body .candidate-odds {
  font-size: 12px;
}

/* スマホ時（3×3グリッドに近い配置） */
@media screen and (max-width: 768px) {
  .candidate-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3列配置 */
  }

  .candidate-card {
    flex: none;
  }
}
main {
  height: 100%;
  background-color: white;
}
@media (max-width: 768px) {
  main {
    width: 100%;
    margin-left: 0;
  }
}

p {
  font-size: 15px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

span.minus {
  color: red;
}
span.plus {
  color: green;
}

/*# sourceMappingURL=app.css.map */
