@font-face {
    font-family: "VotV";
    src: url('assets/fonts/ShareTechMono-Regular.ttf') format(truetype);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'VotV', 'Share Tech Mono';
    box-sizing: border-box;
}

a {
    color: rgba(111, 247, 219)
}

.body {
    background-color: gray;
    min-height: 100vh;
    padding: 4rem 0;
    background-position: center;
}

#title-container {
    text-align: center;
    font-size: 5em;
    color: #ffffff;
    margin: 20px;
    text-shadow: #8a8a8a 1.3px 1.3px 8px, #8a8a8a -1.3px -1.3px 8px;
    margin-bottom: 8vh;
}

#content-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 3rem;
}

#description-container {
    display: flex;
    flex-direction: column;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.705);
    width: 30%;
    border-radius: 20px;
    padding: 1rem;
}

#description-container #section {
    margin-bottom: 0.5rem;
}

#description-container h1 {
    font-size: 3em;
    font-size: 1;
    padding-left: 3%;
    padding-top: 0%;
    text-shadow: #04AA6D 1.3px 1.3px 8px, #04AA6D -1.3px -1.3px 8px;
}

#description-container p {
    font-size: 1.03em;
    padding-top: 1%;
    padding-left: 3%;
    padding-bottom: 3%;
    max-width: 100%;
}

p {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}

#links-container {
    display: flex;
    flex-direction: column;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.705);
    width: 30%;
    border-radius: 20px;
    padding: 1rem;
    align-items: center;
}

#links-container h1 {
    text-align: center;
    font-size: 3em;
    padding: 0 3% 5% 3%;
    text-shadow: #04AA6D 1.3px 1.3px 8px, #04AA6D -1.3px -1.3px 8px;
}

.sections-container {
    display: flex;
    gap: 5px;
    width: 100%;
    justify-content: center;
}

#links-container .section {
    padding: 0rem;
    flex: 1;
    margin-bottom: 1rem;
}

#links-container p {
    font-size: 1.03em;
    padding-top: 1%;
    padding-left: 3%;
    padding-bottom: 3%;
    max-width: 100%;
}

#links-container .button {
    transition: cubic-bezier(0.075, 0.82, 0.165, 1);
    transition-duration: 0.3s;
    border: 2px solid #04AA6D;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    margin: 10px auto;
    width: 80%;
    font-size: 16px;
}

#links-container .button:hover {
    background-color: #006842;
}

#image-container {
    background-color: rgba(0, 0, 0, 0.705);
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 180px;
    gap: 1rem;
    width: 30%;
    max-width: 100%;
}

#image-container img {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    object-fit: cover;
}

#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10000;
}

#overlay.active {
    visibility: visible;
    opacity: 1;
}

.overlay-modal {
    background: rgba(0, 0, 0, 0.705);
    border: 2px solid #04AA6D;
    border-radius: 00px;
    padding: 2rem 3rem;
    width: 90%;
    max-width: 420px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    color: #fff;
    text-align: center;
}

.overlay-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.overlay-links .button {
    transition: cubic-bezier(0.075, 0.82, 0.165, 1);
    transition-duration: 0.3s;
    border: 2px solid #04AA6D;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    margin: 10px auto;
    width: 100%;
    font-size: 16px;
}

.overlay-links .button:hover {
    background-color: #006842;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.705);
    padding: 1rem 2rem;
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    font-family: 'VotV';
    height: 4rem;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.navbar .logo-image {
    padding: 0;
    width: 3rem;
    height: 3rem;
    background-color: inherit;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.navbar .nav-links a {
    transition: cubic-bezier(0.075, 0.82, 0.165, 1);
    transition-duration: 0.3s;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    width: 100px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #04AA6D;
    box-sizing: border-box;
    padding: 0;
    overflow: hidden;
    text-align: center;
}

.navbar .nav-links a:hover {
    color: #ddd;
    background-color: #006842;
}

.navbar .nav-links button {
    transition: cubic-bezier(0.075, 0.82, 0.165, 1);
    transition-duration: 0.3s;
    background-color: #000000;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    width: 100px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #04AA6D;
    box-sizing: border-box;
    padding: 0;
    overflow: hidden;
    text-align: center;
}

.navbar .nav-links button:hover {
    color: #ddd;
    background-color: #006842;
}

.navbar .hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

@media (max-width: 1700px) {
    #content-wrapper {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: 2rem;
    }

    #image-container {
        background-color: rgba(0, 0, 0, 0.705);
        border-radius: 10px;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 2fr));
        grid-auto-rows: 80px;
        gap: 0.2rem;
        width: 20%;
        max-width: 100%;
        padding-bottom: 0;
    }

    #image-container img {
        width: 100%;
        height: 80px;
        border-radius: 10px;
        object-fit: cover;
    }

    #description-container {
        display: flex;
        flex-direction: column;
        color: #ffffff;
        background-color: rgba(0, 0, 0, 0.705);
        width: 40%;
        border-radius: 20px;
        padding-bottom: 0rem;
    }

    #links-container {
        display: flex;
        flex-direction: column;
        color: #ffffff;
        background-color: rgba(0, 0, 0, 0.705);
        width: 30%;
        border-radius: 20px;
        padding: 0rem;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .body {
        background-position: 80% center;
    }

    #content-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: unset;
        justify-content: unset;
        gap: 1.5rem;
    }

    #title-container {
        text-align: center;
        font-size: 2.5rem;
        color: #ffffff;
        margin: 20px;

    }

    #description-container {
        display: flex;
        flex-direction: column;
        color: #ffffff;
        background-color: rgba(0, 0, 0, 0.705);
        width: 100%;
        margin-top: 3%;
        border-radius: 20px;
        padding-top: 0.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 1rem;
    }

    #description-container #section {
        margin-bottom: 1rem;
    }

    #description-container h1 {
        font-size: 2em;
        font-size: 1;
        padding-left: 3%;
        padding-top: 0%;
        text-shadow: #04AA6D 1.3px 1.3px 8px, #04AA6D -1.3px -1.3px 8px;
    }

    #description-container p {
        font-size: 1.03em;
        padding-top: 1%;
        padding-left: 3%;
        padding-bottom: 3%;
        max-width: 100%;
    }

    #links-container {
        display: flex;
        flex-direction: column;
        color: #ffffff;
        background-color: rgba(0, 0, 0, 0.705);
        width: 100%;
        border-radius: 20px;
        padding-top: 0.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 1rem;
        align-items: center;
    }

    #links-container .section {
        padding: 0rem;
        flex: 1;
        margin-bottom: 1rem;
    }

    #links-container p {
        font-size: 1.03em;
        padding-top: 1%;
        padding-left: 3%;
        padding-bottom: 3%;
        max-width: 100%;
    }

    #links-container .button {
        transition: cubic-bezier(0.075, 0.82, 0.165, 1);
        transition-duration: 0.3s;
        border: 2px solid #04AA6D;
        color: white;
        padding: 15px 32px;
        text-align: center;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        margin: 10px auto;
        width: 80%;
        font-size: 16px;
    }

    #links-container .button:hover {
        background-color: #006842;
    }

    #image-container {
        width: 95%;
        gap: 10px;
        max-width: 100%;
        margin: 0 auto;
    }

    #image-container img {
        width: 100%;
        border-radius: 10px;
        object-fit: cover;
    }

    .navbar .nav-links {
        display: flex;
        align-items: center;
        flex-direction: column;
        width: 200px;
        position: fixed;
        top: 0;
        right: -200px;
        height: 100%;
        transition: right 0.3s ease;
        margin-top: 4rem;
        padding-top: 2rem;
        background-color: rgba(0, 0, 0, 0.869);
    }

    .navbar .nav-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 150px;
        height: 50px;
        padding: 0;
        overflow: hidden;
        margin-bottom: 1rem;
        color: white;
        text-align: center;
        font-size: 1rem;
    }

    .navbar .nav-links.active {
        right: 0;
    }

    .navbar .hamburger {
        display: block;
    }
}


.app {
    width: 940px;
    max-width: calc(100% - 3rem);
    margin: 0 auto;
    color: #fff;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.controls {
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.grid-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(0, 0, 0, 0.25);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    user-select: none;
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s;
}

.circle.on {
    background: linear-gradient(#8ae28b, #00a64a);
    border-color: #046b2b;
    color: white;
}

.circle.off {
    background: linear-gradient(#ffb3b3, #ff4d4d);
    border-color: #7a1a1a;
    color: black;
}

.step-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0;
    opacity: 0.95;
}

.step-row .circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(#8a8a8a, #4f4f4f);
    border: 3px solid #303030;
    cursor: default;
    box-shadow: none;
    color: white;
    opacity: 0.9;
}

.step-row .circle.next {
    background: linear-gradient(#fff79a, #ffd12d);
    border: 3px solid #c08b00;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    color: black;
}

.circle .idx {
    font-size: 0.9rem;
    font-weight: 700;
}

.btn {
    background: transparent;
    border: 2px solid #04AA6D;
    padding: 10px 18px;
    color: white;
    border-radius: 0px;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn:hover {
    background: #006842;
}

.help {
    text-align: center;
    margin-top: 1rem;
    color: #dcdcdc;
    font-size: 0.95rem;
}

.solution-area {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 0px;
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    .circle {
        width: 46px;
        height: 46px;
    }

    .step-row .circle {
        width: 34px;
        height: 34px;
    }
}