body {
    background-image: var(--bg-main);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    user-select: none;
    font-family: 'Pixeboy', sans-serif;
    overflow: auto;
}

.page-header {
    background-image: var(--bg-header);
    background-repeat: repeat;
    background-position: center;
    width: 100%;
    height: 70px;
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: solid 4px var(--quinary);
    z-index: 50;
    box-sizing: border-box;
}

.logo {
    height: auto;
    width: 220px;
    max-width: 100%;
    transform: translateY(-1px);
    pointer-events: none;
    filter:
        drop-shadow(-2px 0px 0 var(--quinary)) drop-shadow(0px -2px 0 var(--quinary)) drop-shadow(2px 0px 0 var(--quinary)) drop-shadow(0px 2px 0 var(--quinary)) drop-shadow(0px 0px 0 var(--quinary)) drop-shadow(0px 3px 0px #000000) drop-shadow(0px 2px 3px #25252590)
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    aspect-ratio: 1/1;
    filter: blur(1.5px);
}

button.start {
    position: relative;
    width: 220px;
    height: 68px;
    background: var(--primary);
    border: 5.4px solid var(--quinary);
    cursor: pointer;
    transform-style: preserve-3d;
    transition: .15s cubic-bezier(0, 0, .6, 1);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.button-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-width: 50px;
}

.icon-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-width: 50px;
}

.icon svg {
    width: 28px;
    height: 28px;
}

.start-icon {
    width: 106px;
    height: 24px;
    background-image: var(--icon-start);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

button.start::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-start3d);
    box-shadow: 0 0 0 5px var(--quinary), 0 9px 11px 4px #00000055;
    transform: translate3d(0, 16px, -1px);
    transition: .15s cubic-bezier(0, 0, .6, 1);
}

button.start:hover {
    transform: translate(0, 6px);
}

button.start:hover::before {
    box-shadow: 0 0 0 5px var(--quinary), 0 4px 11px 4px #00000055;
    transform: translate3d(0, 10px, -1px);
}

button.start:active {
    transform: translate(0, 16px);
}

button.start:active::before {
    box-shadow: 0 0 0 2px #252525, 0 0;
    transform: translate3d(0, 0, -1px);
}

.theme-toggle {
    position: fixed;
    bottom: 36px;
    left: 36px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    outline: 4px solid var(--quinary);
    transform-style: preserve-3d;
}

.theme-toggle:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #959595;
  box-shadow: 0 0 0 4px var(--quinary), 0 9px 11px 2px #00000045;
  transform: translate3d(0, 8px, -1px);
  transition: .15s cubic-bezier(0, 0, .6, 1);
  pointer-events: none;
}

.toggle-checkbox {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.toggle-slider {
    display: flex;
    align-items: center;
    position: relative;
    width: 72px;
    height: 36px;
    box-shadow: inset 0 0 4px 2px rgb(0, 0, 0, 0.25);
    background-color: var(--bg-instructions);
    transition: background-color 0.4s linear;
    z-index: 1;
}

.toggle-checkbox:checked + .toggle-slider {
    background-color: var(--bg-instructions);
}

.toggle-button {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 4px;
    width: 28px;
    height: 28px;
    background-color: var(--accent-wb);
    box-shadow:
        inset 0 -1px 1px 1px rgba(0, 0, 0, 0.1),
        inset 0 -2px 2px 0.5px rgba(0, 0, 0, 0.1),
        inset 0 3px 1px rgba(255, 255, 255, 0.1),
        0 4px 2px 1px rgba(0, 0, 0, 0.12);
    transition: left 0.4s;
    z-index: 2;
}

.toggle-checkbox:checked + .toggle-slider > .toggle-button {
    left: 40px;
}

.light-icon, .dark-icon {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}

.light-icon svg, .dark-icon svg {
    width: 16px;
    height: auto;
}

.dark-icon {
    right: 15%;
}

.light-icon {
    left: 15%;
}

#icon-container {
    width: 38px;
    height: 38px;
    outline: 4px solid var(--quinary);
    outline-offset: 0;
    background: var(--bg-instructions);
    position: fixed;
    bottom: 36px;
    right: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    box-sizing: border-box;
    cursor: pointer;
    z-index: 10;
    transform-style: preserve-3d;
    transition: .15s cubic-bezier(0, 0, .6, 1);
    border: none;
    box-shadow: inset 0 0 4px 2px rgb(0, 0, 0, 0.15);

}

#icon-container:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #959595;
  box-shadow: 0 0 0 4px var(--quinary), 0 4px 12px 4px #00000065;
  transform: translate3d(0, 8px, -1px);
  transition: .15s cubic-bezier(0, 0, .6, 1);
  pointer-events: none;
}

#icon-container:hover {
  transform: translate(0, 2px);
}

#icon-container:hover::before {
  box-shadow: 0 0 0 4px var(--quinary), 0 2px 12px 2px #00000065;
  transform: translate3d(0, 6px, -1px);
}

#icon-container:active,
#icon-container.pressed {
  transform: translate(0, 8px) !important;
}

#icon-container:active::before,
#icon-container.pressed::before {
  box-shadow: 0 0 0 2px #252525, 0 0;
  transform: translate3d(0, 0, -1px);
}

#go-back-icon {
  width: 100%;
  height: 100%;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1006;
    left: 0;
    top: 70px;
    width: 100%;
    height: calc(100% - 70px);
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: #AAAAAA;
    border: 6px solid var(--quinary);
    width: 600px;
    max-height: 600px;
    overflow-y: auto;
    padding: 15px;
    box-shadow:
        inset 0 0 11px 1px rgba(0, 0, 0, 0.3),
        0 4px 5px 0px rgba(0, 0, 0, 0.25);
    scrollbar-color: var(--quinary) var(--shadow-gray);
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.instruction-text {
    color: var(--quinary);
    font-size: 24px;
    display: block;
    font-family: 'Pixeboy', sans-serif;
}

.instruction-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: instruction-counter;
}

.instruction-list li {
    position: relative;
    padding-left: 35px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.instruction-list li::before {
    content: counter(instruction-counter) ".";
    counter-increment: instruction-counter;
    position: absolute;
    left: 10px;
    text-align: left;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.instruction-list li:nth-child(n+10)::before {
    left: 2px;
}

.notification-modal-content {
    width: 400px;
    max-width: 90%;
    padding: 30px;
    text-align: center;
}

.notification-text {
    color: var(--quinary);
    font-size: 24px;
    font-family: 'Pixeboy', sans-serif;
    margin-bottom: 20px;
    line-height: 1.3;
}

.notification-close-btn {
    width: 120px;
    height: 45px;
    background: #EABE4D;
    border: 4px solid var(--quinary);
    cursor: pointer;
    font-family: 'Pixeboy', sans-serif;
    font-size: 28px;
    color: #F3F3FA;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notification-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.notification-close-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}