/*! -----------------------------------------------------------------
[Modern Stylesheet]

Project:     D20 Modern
Version:     1.0.0
Primary use: Modern game library template

------------------------------------------------------------------
[Custom Variables]
*/
:root {
  --brand-primary: #161650;
  --brand-secondary: #857dd5;
  --brand-accent: #e9d9b7;
  --brand-dark: #222222;
  --brand-light: #ffffff;
  --link-color: #60a5fa;
  --header-height: 120px;
  --header-height-with-message: 170px;
  --font-primary: Verdana, Geneva, sans-serif;
  --font-secondary: "Roboto Slab", Arial, serif;
}

/*------------------------------------------------------------------
[Base Styles - Tailwind Customization]
*/
@layer base {
  body {
    background-color: #e9d9b7;
    font-family: var(--font-primary);
    line-height: 1.8;
    font-size: 14px;
    color: #6b7280;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -ms-overflow-style: scrollbar;
    overflow-x: hidden;
  }
  img {
    @apply max-w-full h-auto;
  }
  iframe {
    @apply border-0;
  }
  ::-moz-selection {
    background: var(--brand-primary);
    color: #fff !important;
  }
  ::-webkit-selection {
    background: var(--brand-primary);
    color: #fff !important;
  }
  ::selection {
    background: var(--brand-primary);
    color: #fff !important;
  }
  h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-family: var(--font-secondary);
    @apply leading-tight font-normal;
    color: var(--brand-dark);
  }
  a {
    @apply transition-colors duration-200;
    color: var(--brand-primary);
  }
  a:hover, a:focus {
    @apply outline-none;
    text-decoration: none;
    color: var(--brand-secondary);
  }
}
/*------------------------------------------------------------------
[Component Styles - Tailwind Components]
*/
@layer components {
  .bg-brand {
    background-color: var(--brand-primary);
  }
  .text-brand {
    color: var(--brand-primary);
  }
  .text-brand-secondary {
    color: var(--brand-secondary) !important;
  }
  .link-color a {
    color: var(--link-color) !important;
  }
  .brand {
    color: var(--brand-primary);
  }
  .module,
  .module-sm,
  .module-xs {
    @apply bg-white rounded-lg shadow-md p-6;
  }
  .bg-white .module,
  .bg-white .module-sm,
  .bg-white .module-xs {
    @apply bg-white;
  }
  .header {
    height: var(--header-height);
  }
  .header.with-message {
    height: var(--header-height-with-message);
  }
  .header.header-dark {
    background-color: var(--brand-primary);
  }
  .footer,
  .footer-bottom {
    @apply bg-brand text-white;
  }
  .darken::before {
    content: "";
    @apply block absolute inset-0 bg-black opacity-50;
    width: 100%;
    height: 100%;
  }
  .disable-hover {
    @apply pointer-events-none;
  }
  @media (max-width: 375px) {
    .hidden-xxs {
      @apply hidden;
    }
  }
  .navigation-headroom {
    @apply transition-transform duration-300 ease-in-out;
  }
  .navigation-headroom.headroom--pinned {
    transform: translateY(0);
  }
  .navigation-headroom.headroom--unpinned {
    transform: translateY(-100%);
  }
  .mobile-collapse {
    @apply transition-all duration-300 ease-in-out;
  }
  .dropdown-menu {
    @apply transform transition-all duration-200 ease-out origin-top;
  }
  .dropdown-menu.show {
    @apply scale-100 opacity-100;
  }
  .dropdown-menu:not(.show) {
    @apply scale-95 opacity-0;
  }
  .game-card {
    @apply bg-white rounded-lg shadow-md hover:shadow-lg transition-all duration-200 ease-in-out;
  }
  .game-card:hover {
    transform: translateY(-2px);
  }
  .stat-card {
    @apply bg-white p-4 rounded-lg shadow-sm border border-gray-200;
  }
  .badge {
    @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
  }
  .badge-primary {
    @apply bg-blue-100 text-blue-800;
  }
  .badge-dark {
    @apply bg-gray-800 text-white;
    background-color: #333333;
    color: white;
  }
  .badge-secondary {
    @apply bg-gray-100 text-gray-800;
    background-color: #9782e8;
    color: white;
  }
  .badge-success {
    @apply bg-green-100 text-green-800;
  }
  .badge-warning {
    @apply bg-yellow-100 text-yellow-800;
  }
  .badge-danger {
    @apply bg-red-100 text-red-800;
  }
  .badge-info {
    @apply bg-cyan-100 text-cyan-800;
  }
  .btn {
    @apply inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2;
  }
  .btn-primary {
    @apply bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500;
  }
  .btn-secondary {
    @apply bg-gray-600 text-white hover:bg-gray-700 focus:ring-gray-500;
  }
  .btn-outline {
    @apply border-gray-300 text-gray-700 bg-white hover:bg-gray-50 focus:ring-blue-500;
  }
  .btn-sm {
    @apply px-3 py-1.5 text-xs;
  }
  .form-input {
    @apply block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm;
  }
  .form-label {
    @apply block text-sm font-medium text-gray-700 mb-1;
  }
  .page-loader {
    @apply fixed inset-0 bg-white z-50 flex items-center justify-center;
  }
  .search-form {
    @apply relative;
  }
  .search-form input {
    @apply pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent;
  }
  .search-form .search-icon {
    @apply absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400;
  }
  .breadcrumb {
    @apply flex items-center space-x-2 text-sm text-gray-500;
  }
  .breadcrumb a {
    @apply hover:text-gray-700 transition-colors;
  }
  .breadcrumb .separator {
    @apply text-gray-400;
  }
  .alert {
    @apply p-4 rounded-md;
  }
  .alert.alert-success {
    @apply bg-green-50 text-green-800 border border-green-200;
  }
  .alert.alert-error {
    @apply bg-red-50 text-red-800 border border-red-200;
  }
  .alert.alert-warning {
    @apply bg-yellow-50 text-yellow-800 border border-yellow-200;
  }
  .alert.alert-info {
    @apply bg-blue-50 text-blue-800 border border-blue-200;
  }
  .table {
    @apply min-w-full divide-y divide-gray-200;
  }
  .table th {
    @apply px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider bg-gray-50;
  }
  .table td {
    @apply px-6 py-4 whitespace-nowrap text-sm text-gray-900;
  }
  .table .striped tbody tr:nth-child(even) {
    @apply bg-gray-50;
  }
  .modal {
    @apply fixed inset-0 z-50 overflow-y-auto;
  }
  .modal .modal-overlay {
    @apply fixed inset-0 bg-black bg-opacity-50 transition-opacity;
  }
  .modal .modal-content {
    @apply relative bg-white rounded-lg shadow-xl max-w-lg mx-auto mt-20;
  }
  .modal .modal-header {
    @apply px-6 py-4 border-b border-gray-200;
  }
  .modal .modal-body {
    @apply px-6 py-4;
  }
  .modal .modal-footer {
    @apply px-6 py-4 border-t border-gray-200 bg-gray-50 rounded-b-lg;
  }
  .tooltip {
    @apply absolute z-50 px-2 py-1 text-xs text-white bg-gray-900 rounded shadow-lg;
  }
  .tooltip.tooltip-top {
    @apply bottom-full left-1/2 transform -translate-x-1/2 mb-2;
  }
  .tooltip.tooltip-bottom {
    @apply top-full left-1/2 transform -translate-x-1/2 mt-2;
  }
  .pagination {
    @apply flex items-center justify-center space-x-2;
  }
  .pagination .page-link {
    @apply px-3 py-2 text-sm text-gray-500 bg-white border border-gray-300 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500;
  }
  .pagination .page-link.active {
    @apply bg-blue-600 text-white border-blue-600;
  }
  .pagination .page-link.disabled {
    @apply opacity-50 cursor-not-allowed;
  }
}
/*------------------------------------------------------------------
[Utility Styles - Tailwind Utilities]
*/
@layer utilities {
  .text-brand-secondary {
    color: var(--brand-secondary);
  }
  .text-brand-accent {
    color: var(--brand-accent);
  }
  .bg-brand-accent {
    background-color: var(--brand-accent);
  }
  .shadow-brand {
    box-shadow: 0 4px 6px -1px rgba(22, 22, 80, 0.1), 0 2px 4px -1px rgba(22, 22, 80, 0.06);
  }
  .space-y-2 > * + * {
    @apply mt-2;
  }
  .space-y-4 > * + * {
    @apply mt-4;
  }
  .animate-fade-in {
    @apply opacity-0 animate-pulse;
    animation: fadeIn 0.3s ease-in-out forwards;
  }
  .animate-slide-up {
    @apply transform translate-y-4 opacity-0;
    animation: slideUp 0.3s ease-out forwards;
  }
  .animate-slide-down {
    @apply transform -translate-y-4 opacity-0;
    animation: slideDown 0.3s ease-out forwards;
  }
}
/*------------------------------------------------------------------
[Keyframe Animations]
*/
@keyframes fadeIn {
  to {
    @apply opacity-100;
  }
}
@keyframes slideUp {
  to {
    @apply transform translate-y-0 opacity-100;
  }
}
@keyframes slideDown {
  to {
    @apply transform translate-y-0 opacity-100;
  }
}
/*------------------------------------------------------------------
[Print Styles]
*/
@media print {
  .no-print {
    @apply hidden;
  }
  .print-only {
    @apply block;
  }
  body {
    @apply text-black bg-white;
  }
  a {
    @apply text-black no-underline;
  }
  a::after {
    content: " (" attr(href) ")";
    @apply text-xs text-gray-600;
  }
}
/*------------------------------------------------------------------
[Dark Mode Support]
*/
@media (prefers-color-scheme: dark) {
  .dark-mode {
    @apply bg-gray-900 text-gray-100;
  }
  .dark-mode .module,
  .dark-mode .module-sm,
  .dark-mode .module-xs {
    @apply bg-gray-800 text-gray-100;
  }
  .dark-mode .form-input {
    @apply bg-gray-800 border-gray-700 text-gray-100;
  }
}
/*------------------------------------------------------------------
[Accessibility]
*/
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.focus-visible:focus {
  @apply outline-none ring-2 ring-blue-500 ring-offset-2;
}

.sr-only {
  @apply absolute w-px h-px p-0 -m-px overflow-hidden whitespace-nowrap border-0;
}

.skip-to-content {
  @apply absolute -top-full left-0 bg-blue-600 text-white px-4 py-2 z-50 focus:top-4;
}

/* Search box width */
.twitter-typeahead {
  width: 100% !important;
}

/* Twitter Typeahead styling */
.twitter-typeahead .tt-query,
.twitter-typeahead .tt-hint {
  width: 100%;
  height: 40px;
  padding: 0.5rem 1rem 0.5rem 3rem;
  border: 1px solid #4b5563;
  border-radius: 0.5rem;
  background-color: #1f2937;
  color: white;
  font-size: 0.875rem;
}

.twitter-typeahead .tt-query {
  background-color: #1f2937;
  color: white;
}

.twitter-typeahead .tt-hint {
  color: #9ca3af;
}

.twitter-typeahead .tt-query:focus {
  outline: 0;
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.5);
}

.twitter-typeahead input {
  color: #ffffff;
}

.twitter-typeahead .tt-input {
  height: 40px;
}

/* Dropdown results styling */
.twitter-typeahead .tt-menu {
  width: 100%;
  margin-top: 0.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  max-height: 300px;
  overflow-y: auto;
}

/* Individual result items */
.twitter-typeahead .tt-suggestion {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background-color 0.2s ease;
  background: white;
}

.twitter-typeahead .tt-suggestion:last-child {
  border-bottom: none;
}

/* Result text styling */
.twitter-typeahead .tt-suggestion p {
  margin: 0;
  color: #111827;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Hover state for results */
.twitter-typeahead .tt-suggestion:hover,
.twitter-typeahead .tt-suggestion.tt-cursor {
  background-color: #f3f4f6;
}

.twitter-typeahead .tt-suggestion:hover p,
.twitter-typeahead .tt-suggestion.tt-cursor p {
  color: #111827;
}

/* No results message */
.twitter-typeahead .tt-suggestion.tt-no-results {
  padding: 1rem;
  text-align: center;
  color: #6b7280;
  font-style: italic;
}

/* Loading state */
.twitter-typeahead .tt-suggestion.tt-loading {
  padding: 1rem;
  text-align: center;
  color: #6b7280;
}

/* Search icon positioning with typeahead */
.twitter-typeahead-wrapper {
  position: relative;
}

.twitter-typeahead-wrapper .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #d1d5db;
  z-index: 10;
  pointer-events: none;
}

/* Mobile search adjustments */
@media (max-width: 1023px) {
  .twitter-typeahead .tt-menu {
    max-height: 200px;
  }
  /* Mobile search specific styling */
  .lg:hidden .twitter-typeahead .tt-query,
  .lg:hidden .twitter-typeahead .tt-hint {
    width: 100%;
    padding: 0.5rem 0.5rem 0.25rem 2rem;
    font-size: 0.75rem;
    height: 2rem;
    background-color: white;
    color: #111827;
    border-color: #d1d5db;
  }
  .lg:hidden .twitter-typeahead .tt-query:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5);
  }
  .lg:hidden .twitter-typeahead-wrapper .search-icon {
    color: #9ca3af;
  }
  .lg:hidden .form-control {
    padding-left: 1.75rem;
  }
  /* Mobile dropdown wider than input */
  .lg:hidden .twitter-typeahead .tt-menu {
    width: 100% !important;
    min-width: 280px;
    left: 0;
    right: auto;
  }
  /* Position dropdown to extend beyond input on mobile */
  .lg:hidden .twitter-typeahead {
    position: relative;
  }
  .lg:hidden .twitter-typeahead .tt-menu {
    position: absolute;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }
}
/*------------------------------------------------------------------
[Footer Styles - Combined from site.css and template.css]
*/
/* Footer base styles from site.css */
.footer,
.footer-bottom {
  background: var(--brand-primary);
  color: white;
}

/* Footer styles from template.css */
.footer,
.footer-bottom {
  position: relative;
}

.footer a,
.footer-bottom a {
  color: #ffffff;
}
.footer a:hover, .footer a:focus,
.footer-bottom a:hover,
.footer-bottom a:focus {
  color: var(--brand-primary);
}

.footer {
  padding: 90px 0 40px;
}
.footer h1, .footer .h1,
.footer h2, .footer .h2,
.footer h3, .footer .h3,
.footer h4, .footer .h4,
.footer h5, .footer .h5,
.footer h6, .footer .h6 {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px 0;
}
.footer-bottom p, .footer-bottom ul {
  margin: 0;
}
.footer-bottom .widget {
  margin: 10px 0;
}

/* Widget styles from template.css */
.widget {
  margin: 0 0 50px;
  padding: 0 45px;
}
.widget > *:last-child {
  margin-bottom: 0;
}
.widget .widget-title {
  margin: 0 0 20px;
}

/* Social Icons styles from template.css */
.social-icons {
  list-style: none;
  padding: 20px 0;
  margin: 0;
}
.social-icons > li {
  display: inline-block;
}
.social-icons > li > a {
  background: none;
  margin: 0 20px 15px 0;
  color: #898989;
  opacity: 0.7;
}
.social-icons > li > a:hover, .social-icons > li > a:focus {
  opacity: 1;
}
.social-icons > li > a:hover > .fa-facebook, .social-icons > li > a:focus > .fa-facebook {
  color: #3b5998 !important;
}
.social-icons > li > a:hover > .fa-twitter, .social-icons > li > a:focus > .fa-twitter {
  color: #00aced !important;
}
.social-icons > li > a:hover > .fa-google-plus, .social-icons > li > a:focus > .fa-google-plus {
  color: #dd4b39 !important;
}
.social-icons > li > a:hover > .fa-linkedin, .social-icons > li > a:focus > .fa-linkedin {
  color: #007bb6 !important;
}
.social-icons > li > a:hover > .fa-instagram, .social-icons > li > a:focus > .fa-instagram {
  color: #517fa4 !important;
}
.social-icons > li > a:hover > .fa-vk, .social-icons > li > a:focus > .fa-vk {
  color: #2b587a !important;
}
.social-icons > li > a:hover > .fa-discord, .social-icons > li > a:focus > .fa-discord {
  color: #7289da !important;
}

/* Footer bottom social icons specific styling */
.footer-bottom .social-icons {
  text-align: right;
  padding: 0;
}
.footer-bottom .social-icons > li > a {
  margin: 0 20px 0 0;
  opacity: 0.5;
}
.footer-bottom .social-icons > li > a:hover, .footer-bottom .social-icons > li > a:focus {
  opacity: 1;
}

/* Widget links and latest posts */
.widget-links ul,
.widget-latest-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget-links ul > li,
.widget-latest-posts ul > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 0;
}
.widget-links ul > li:first-child,
.widget-latest-posts ul > li:first-child {
  padding-top: 0;
}
.widget-links ul > li:last-child,
.widget-latest-posts ul > li:last-child {
  border: 0;
  padding-bottom: 0;
}
.widget-links ul > li > a,
.widget-latest-posts ul > li > a {
  display: block;
}

.widget-latest-posts ul > li > span {
  opacity: 0.7;
}

/* Footer logo */
.footerLogo {
  max-height: 60px;
  margin-bottom: 1rem;
}

/* Footer responsive adjustments */
@media (max-width: 991px) {
  .footer-bottom .widget,
  .footer-bottom .social-icons {
    text-align: center;
  }
  .footer {
    padding: 60px 0 30px;
  }
  .widget {
    padding: 0 20px;
    margin-bottom: 30px;
  }
}
@media (max-width: 767px) {
  .footer {
    padding: 40px 0 20px;
  }
  .widget {
    padding: 0 15px;
    margin-bottom: 25px;
  }
  .social-icons {
    text-align: center;
  }
  .social-icons > li > a {
    margin: 0 10px 10px 0;
  }
}
/*------------------------------------------------------------------
[Index Page Specific Styles]
*/
.text-gradient {
  background: linear-gradient(135deg, #161650, #9782e8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  .hero-section {
    height: 70vh;
  }
  .hero-video {
    width: 100%;
    height: auto;
    min-height: 100%;
    min-width: auto;
    transform: none;
    top: 0;
    left: 0;
  }
}
.feature-section {
  padding: 80px 0;
}

.feature-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.feature-image-top {
  object-position: top;
}

.game-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  padding: 0 24px;
}

.game-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
  opacity: 1;
}

.game-title {
  color: white;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.game-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.counter-section {
  background: linear-gradient(135deg, #161650 0%, #2a2a7a 100%);
  color: white;
  padding: 80px 0;
}

.counter {
  text-align: center;
}

.counter-number {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
}

.counter-label {
  font-size: 18px;
  opacity: 0.9;
}

.community-section {
  padding: 60px 0;
  text-align: center;
}

.community-logo {
  height: 80px;
  margin-bottom: 24px;
}

.feature-section.bg-white {
  background-color: #e9d9b7 !important;
}
.feature-section.bg-gray-50 {
  background-color: #d4c5a3 !important;
}

.community-section.bg-white {
  background-color: #e9d9b7 !important;
}
.community-section.bg-gray-50 {
  background-color: #d4c5a3 !important;
}

/*------------------------------------------------------------------
[Page Loading Dice Animation]
*/
:root {
  --face-size: 70px;
  --dot-size: calc(var(--face-size) * 0.225);
}

.page-loader {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.9;
}

/* Set perspective in wrapper */
#perspective {
  position: absolute;
  perspective: 2000px;
  width: 140px;
}

/* Create spin animation */
@keyframes spin {
  from {
    transform: rotateX(0deg) rotateY(0deg);
  }
  to {
    transform: rotateX(360deg) rotateY(720deg);
  }
}
/* Position dice on page */
#die-1 {
  left: 0;
  top: 0;
}

#die-2 {
  left: 70px;
  top: 50px;
  animation-direction: reverse;
}

/* Set die style */
.die {
  position: absolute;
  width: var(--face-size);
  height: var(--face-size);
  transform-style: preserve-3d;
  animation: spin 5s linear 0s infinite;
}

/* Set die face style */
.face {
  position: absolute;
  font-size: 40px;
  width: var(--face-size);
  height: var(--face-size);
  text-align: center;
  line-height: var(--face-size);
  border: 1px solid white;
  border-radius: 8px;
  transform-style: preserve-3d;
  background-color: var(--brand-primary);
}

/* Position face 1 and dots */
.face-1 {
  transform: translateZ(calc(var(--face-size) / -2)) rotateY(180deg);
}

.face-1 > .dot {
  left: 50%;
  top: 50%;
}

/* Position face 2 and dots */
.face-2 {
  transform: translateY(50%) rotateX(90deg);
}

.face-2 > .dot:nth-child(1) {
  left: 25%;
  top: 50%;
}

.face-2 > .dot:nth-child(2) {
  left: 75%;
  top: 50%;
}

/* Position face 3 and dots */
.face-3 {
  transform: translateX(-50%) rotateY(-90deg);
}

.face-3 > .dot:nth-child(1) {
  left: 25%;
  top: 25%;
}

.face-3 > .dot:nth-child(2) {
  left: 50%;
  top: 50%;
}

.face-3 > .dot:nth-child(3) {
  left: 75%;
  top: 75%;
}

/* Position face 4 and dots */
.face-4 {
  transform: translateX(50%) rotateY(90deg);
}

.face-4 > .dot:nth-child(1) {
  left: 25%;
  top: 25%;
}

.face-4 > .dot:nth-child(2) {
  left: 75%;
  top: 25%;
}

.face-4 > .dot:nth-child(3) {
  left: 25%;
  top: 75%;
}

.face-4 > .dot:nth-child(4) {
  left: 75%;
  top: 75%;
}

/* Position face 5 and dots */
.face-5 {
  transform: translateY(-50%) rotateX(-90deg);
}

.face-5 > .dot:nth-child(1) {
  left: 25%;
  top: 25%;
}

.face-5 > .dot:nth-child(2) {
  left: 75%;
  top: 25%;
}

.face-5 > .dot:nth-child(3) {
  left: 25%;
  top: 75%;
}

.face-5 > .dot:nth-child(4) {
  left: 75%;
  top: 75%;
}

.face-5 > .dot:nth-child(5) {
  left: 50%;
  top: 50%;
}

/* Position face 6 and dots */
.face-6 {
  transform: translateZ(calc(var(--face-size) / 2));
}

.face-6 > .dot:nth-child(1) {
  left: 25%;
  top: 25%;
}

.face-6 > .dot:nth-child(2) {
  left: 75%;
  top: 25%;
}

.face-6 > .dot:nth-child(3) {
  left: 25%;
  top: 50%;
}

.face-6 > .dot:nth-child(4) {
  left: 75%;
  top: 50%;
}

.face-6 > .dot:nth-child(5) {
  left: 25%;
  top: 75%;
}

.face-6 > .dot:nth-child(6) {
  left: 75%;
  top: 75%;
}

/* Set dot style */
.dot {
  position: absolute;
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background-color: white;
  transform: translate(-50%, -50%);
}

.page-loader {
  background: #e9d9b7;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 9998;
}

.loader {
  position: absolute;
  width: 50px;
  height: 50px;
  top: 50%;
  left: 50%;
  margin: -25px 0 0 -25px;
  text-indent: -9999em;
  background-color: transparent;
  border: 2px solid #eeeeee;
  border-radius: 50%;
}

.loader:after {
  position: absolute;
  content: "";
  top: 0px;
  left: 0px;
  width: 46px;
  height: 46px;
  padding: 2px;
  border-width: 2px;
  border-style: solid;
  border-color: #161650 transparent transparent transparent;
  border-radius: 50%;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  animation: ringrotate 0.8s infinite cubic-bezier(0.5, 0.49, 0.49, 0.49);
  -webkit-animation: ringrotate 0.8s infinite cubic-bezier(0.5, 0.49, 0.49, 0.49);
}

@keyframes ringrotate {
  0% {
    transform: rotateZ(0deg);
  }
  100% {
    transform: rotateZ(360deg);
  }
}
@-webkit-keyframes ringrotate {
  0% {
    transform: rotateZ(0deg);
  }
  100% {
    transform: rotateZ(360deg);
  }
}

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