@font-face {
  font-family: IRANSansX;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../wp-content/themes/akharinkhodro/assets/fonts/iransansx/IRANSansX-DemiBold.woff")
      format("woff"),
    url("../wp-content/themes/akharinkhodro/assets/fonts/iransansx/IRANSansX-DemiBold.woff2")
      format("woff2");
}
@font-face {
  font-family: IRANSansX;
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url("../wp-content/themes/akharinkhodro/assets/fonts/iransansx/IRANSansX-Regular.woff")
      format("woff"),
    url("../wp-content/themes/akharinkhodro/assets/fonts/iransansx/IRANSansX-Regular.woff2")
      format("woff2");
}

:root {
  --color-accent: #0000ff;
  --color-accent-dark: #000066;
  --color-accent-light: #00ffff;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: IRANSansX !important;
  font-size: 1em;
  line-height: 1;
  direction: rtl;
  background-color: #fdaf17;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
  padding: 1em;
}
h1,
h2,
h3,
h4,
input,
textarea,
select,
option,
button {
  font-family: IRANSansX !important;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  border-spacing: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}

:hover {
  transition: all 0.3s ease;
}
img {
  max-width: 100%;
  height: auto;
}
p {
  line-height: 2;
  text-align: justify;
}

h1 {
  width: 100%;
  max-width: 850px;
  background-color: #27235e;
  padding: 0.75em;
  font-size: 1.4em;
  text-align: center;
  box-shadow: 8px 8px 0 #ffffff;
  border-radius: 0.5em;
  line-height: 1.5;
}

.tcGame {
  background-color: #27235e;
  color: #ffffff;
  padding: 1.5em;
  border-radius: 0.5em;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 850px;
  box-shadow: 8px 8px 0 #ffffff;
}
.tcGame > div {
  display: flex;
  flex-direction: column;
  gap: 2em;
}
.tcGameHide {
  display: none !important;
}
.tcGame div > strong,
#tcGameRes strong {
  font-size: 1.5em;
  text-align: center;
  line-height: 1.5;
  color: #00ffff;
}
.tcGame p strong {
  color: #00ffff;
}
#tcGameRole div {
  display: flex;
  flex-direction: column;
  gap: 2em;
  justify-content: center;
}
#tcGameRole div a {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0.5em 1em;
  border-radius: 0.5em;
  color: #ffffff;
  font-weight: 600;
  border: 3px solid #ffffff;
}
#tcGameRole div a:hover {
  background-color: #fdaf17;
  color: #000000;
}
#tcGameRole div a img {
  width: 2em;
  background-color: #ffffff;
  border-radius: 50%;
  padding: 0.2em;
}
.tcGame input,
.tcGame button {
  padding: 1em 0.5em;
  text-align: center;
  border: none;
  outline: none;
  border-radius: 0.5em;
  background-color: #ffffff;
  font-size: 1em;
}
.tcGame button {
  background-color: #fdaf17;
  font-weight: bold;
  cursor: pointer;
}
.tcGame > span {
  margin-top: 1em;
  text-align: center;
  padding: 1em;
  background-color: #00ffff;
  color: #000000;
  border-radius: 0.5em;
  line-height: 1.5;
}
#tcGameStep2 > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5em;
}
#tcGameStep2 input {
  display: none;
}
#tcGameStep2 label {
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 1em;
  align-items: center;
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5em;
  cursor: pointer;
  text-align: center;
  line-height: 1.5;
}
#tcGameStep2 img {
  width: 100%;
  background-color: #fff;
  border-radius: 0.5em;
}
#tcGameStep2 input[type="radio"]:checked + label {
  background-color: #fdaf17;
  color: #000;
}

#tcGameRes {
  gap: 0.25em;
  background-color: #27235e;
  color: #ffffff;
  padding: 2em;
  border-radius: 0.5em;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 850px;
  box-shadow: 8px 8px 0 #ffffff;
}
#tcGameRes strong {
  margin-bottom: 1em;
}
.tcGameResult {
  display: flex;
  align-items: center;
  padding: 1em;
  border-radius: 0.5em;
  gap: 1em;
}
.tcGameResult:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.2);
}
.tcGameResultName {
  width: 12em;
  flex: unset;
}
.tcGameResultPerc {
  text-align: center;
  width: 8em;
}
.tcGameResultBar {
  display: none;
  flex: 1;
  height: 0.5em;
}
.tcGameResultBar div {
  min-width: 0.5em;
  height: 100%;
  background-color: var(--color-accent-light);
  border-radius: 1em;
}

#showRes,
#showGame {
  background-color: #27235e;
  padding: 1em 1.5em;
  box-shadow: 6px 6px 0 #ffffff;
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline;
  border-radius: 0.5em;
}

table {
  width: 100%;
  max-width: 850px;
  background-color: #27235e;
  padding: 1em 1.5em;
  box-shadow: 8px 8px 0 #ffffff;
  color: #ffffff;
  text-align: center;
  border-radius: 0.5em;
}
table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.2);
}
table th,
table td {
  padding: 1em;
}
table th {
  padding: 2em 1em;
  color: #00ffff;
}
table td {
  direction: ltr;
}
table td:last-child {
  direction: rtl;
}

#lottery {
  background-color: #fdaf17;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 2;
  font-size: 2em;
  gap: 2em;
}
#lottery div {
  background-color: #27235e;
  padding: 1em 1.5em;
  box-shadow: 6px 6px 0 #ffffff;
  border-radius: 0.5em;
}
#lottery span {
  display: flex;
  gap: 1em;
}
#lottery img {
  background-color: #ffffff;
  padding: 1em;
  border-radius: 0.5em;
  box-shadow: 6px 6px 0 #27235e;
}
#winner,
#back {
  background-color: #27235e;
  padding: 1em 1.5em;
  box-shadow: 6px 6px 0 #ffffff;
  border-radius: 0.5em;
  cursor: pointer;
  position: fixed;
  right: 3em;
  bottom: 3em;
}

@media only screen and (min-width: 850px) {
  body {
    padding: 2em;
  }
  h1 {
    padding: 1.5em;
  }
  .tcGame {
    padding: 2em;
  }
  #tcGameRole div {
    flex-direction: row;
  }
  .tcGameResultBar {
    display: unset;
  }
  #tcGameStep2 > div {
    grid-template-columns: repeat(5, 1fr);
    gap: 1em;
  }
}
