body{
    font-family: Arial, serif;
    background-color: #121214;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#puzzle-parent {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main{
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center;     /* Centers vertically */
    height: 100vh;
    color: #818384;
    flex-direction: column;
    width: 100%;
}

#ads-parent{
    display: flex;
    height: 150px;
    width: 99%;
}

.ad{
    height: 100%;
    width:100%;

}

#puzzle-container {
    background-size: 100%;
    aspect-ratio: 1;
    position: relative;
    border: 2px solid #000;
    display: inline-block;
}

.tile {
    /*width: 100px;
    height: calc(100% / 3);*/
    aspect-ratio: 1;
    position: absolute;
    transition: transform 0.3s ease;
    box-sizing: border-box;
    /*background-size: 100% 100%;*/
    cursor: pointer;
}

.empty {
    background-color: white;
    cursor: default;
}

#controls {
    /*margin-top: 20px;*/
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

#steps-container {
    font-size: 24px;
    font-weight: bold;
}

#solve-btn {
    margin-top: 10px;
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
}

#reference-image {
    margin-top: 20px;
    border: 2px solid #000;
}

.empty {
    background-color: white; /* Visual distinction for the empty tile */
    cursor: default;
}

#puzzle-banner{
    margin-bottom: 15px;
    height:35px
}

#tapMe{
    margin-bottom: 0px;
}

.button{
    color: #121214;
    width: 250px;
    background-color: #216722;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: #216722;
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    border-radius: 3rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;

}

.button:hover{
    color: #121214;
    background-color: #218838;
    border-color: #1e7e34;
}

.copy-notification {
    display: none; /* Hidden by default */
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4caf50; /* Green background */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000; /* Make sure it’s above other content */
}

.copy-notification.show {
    display: block; /* Show when the class is added */
    opacity: 1;
}

#content-section{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar {
    width: 100%;
    border: solid #818384;
    border-width: 1px 0 1px 0;
    height: 56px;
    display: flex;
    justify-content: space-between; /* Places logo on the left and links on the right */
    align-items: center; /* Vertically centers items */
    padding:5px 0;
}

.logo {
    margin-left: 10px;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.nav-links {
    margin-right: 20px;
    list-style: none;
    display: flex;
    gap: 20px; /* Spacing between the links */
}

.nav-links li{
    margin-right: 10px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.nav-links li a:hover {
    text-decoration: underline;
}

.fa{
    font-size: 1.7rem;
}

/* Style for the pop-out box */
.popout-box {
    width: 85vw;
    /*height: 90vh;*/
    max-width: 400px;
    /*max-height: 450px;*/
    display: none;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: #121214;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Ensure it appears above other elements */
}

/* Dark overlay behind the pop-out box */
.overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Under the popout box */
}

.stats{
    display: flex;
    flex-direction: column;
}

.personal-stat{
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
}

.personal-stat h1{
    margin: 0;
}

.personal-stat p{
    margin: 0;
}

.world-stats{
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
}

.world-stats h1{
    margin: 0;
}

.world-stats p{
    margin: 0;
}

.personal-stat h1{
    color: white;
    text-shadow: 0 0 4px yellow;
}

#world-stats-block{
    flex-direction: column;
}

#top-solutions{
    display: flex;
}

#personal-stats{
    display: flex;
}

.popout-box{
    color: #cfcfcf;
}

#closeButton{
    position: absolute;
    right: 14px;
    top: 12px;
}

#popoutContent{
    width: 100%;
}

#popoutContent p{
    font-size: 13px;
    margin: 0;
}

#percentile h1{
    margin: 0;
    margin-top: 5px;
}

#percentile{
    margin-top: 24px;
    text-align: center;
}

#loginRegisterButtons{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

button {
    width: 100%;
    padding: 8px;
    color: #121214;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    background-color: #cfcfcf;
}

input {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: #fff;
    font-size: 16px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #b3b3b3;
    font-size: 14px;
}

.forgot-password {
    text-align: right;
    margin-bottom: 15px;
}

.forgot-password a {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.forgot-password a:hover {
    color: #cfcfcf;
}

.alert{
    border-radius: 3px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding: 5px;
}

.alert-success{
    background-color: #004f00;
}

.alert-danger{
    background-color: #690000;
}

.filler-shine {
    position: relative;
    overflow: hidden;
    display: inline-block;
    background: #444;
    color: white;
    padding: 1em 2em;
    border-radius: 3px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}

.filler-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
            120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    animation: shine-move 3s ease-in-out infinite;
}

@keyframes shine-move {
    0% {
        left: -75%;
    }
    20% {
        left: 125%;
    }
    100% {
        left: 125%;
    }
}

/*///////////////////////////////////////////////ADS/////////////////////////////////////////////*/