* { box-sizing: border-box; }

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    font-family: "Pusab", sans-serif;
    color: white;
    -webkit-text-stroke: 1px black;
    font-size: 30px;
}

.titleImage {
    width: 800px;
}



/* tool card stuff */
.toolName {
    font-size: 34px;
    margin: 0 0 0 64px;
    transition: all 0.15s ease-in-out;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 500px));
    justify-content: center;
    gap: 40px 24px;
    width: calc(100% - 32px);
}

.card-slot {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 150px;
}

.toolIcon {
    position: absolute;
    left: 20px;
    top: 50%;
    width: 80px;
    transform: translateY(-50%);
}

.card-heading {
    position: absolute;
    inset: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    padding: 12px 20px;
}

.desc {
    color: #dfdfdf;
    font-size: 20px;
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
}

.card {
    position: absolute;
    inset: 0 auto auto 0;
    height: 150px;
    width: 100%;
    gap: 26px;
    padding: 12px 44px;
    box-sizing: border-box;
    border-image: url("https://geometrydash.com/assets/GJ_square01.png") 25 fill / 12px;
    filter: drop-shadow(rgba(0, 0, 0, 0.5) 0 4px 20px);
    z-index: 2;
    overflow: hidden;
    transition: height 350ms ease;
}

.card:hover,
.card:focus-visible {
    height: 180px;
    cursor: pointer;
}

.card:hover .desc,
.card:focus-visible .desc {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

@media (max-width: 850px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0, 300px)); }
}

@media (max-width: 560px) {
    .card-grid { grid-template-columns: minmax(0, 300px); }
}

/* end of tool card stuff :( */







.background-track {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: -1;
    display: flex;
    width: max-content;
    height: 100vh;
    animation: scroll-background 60s linear infinite;
    pointer-events: none;
}

.background-track img {
    display: block;
    width: auto;
    min-width: 100vw;
    height: 100%;
    object-fit: cover;
}
.background-track img:nth-child(even) { transform: scaleX(-1); }

@keyframes scroll-background {
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .background-track { animation: none; }
    .card,
    .desc { transition: none; }
}



h1 {
    margin: 0;
    font-family: "Pusab", sans-serif;
    font-size: 64px;
    text-align: center;
    -webkit-text-stroke: 3px #111;
    margin-bottom: 60px;
}



input[type="text"] {
    flex: 1;
    height: 60px;
    box-sizing: border-box;
    background-color: transparent;
    border: 12px solid transparent;
    border-radius: 20px;
    border-image: url("https://i.ibb.co/WN397RZs/227162-2-removebg-preview.png") 25 fill / 12px;
    color: rgb(255, 255, 255);
    font-family: "Pusab", sans-serif;
    font-size: 22px;
    text-align: center;
    outline: none;
    -webkit-text-stroke: 1.2px rgb(0, 0, 0);
}


button {
    position: relative;
    isolation: isolate;
    height: 60px;
    padding: 0 30px;
    border: 12px solid transparent;
    border-radius: 20px;
    border-image: url("https://i.ibb.co/KxHjKSgp/227162-1-removebg-preview.png") 25 fill / 12px;
    color: white;
    font-family: "Pusab", sans-serif;
    font-size: 22px;
    cursor: pointer;
    -webkit-text-stroke: 1px #111;
    background: transparent;
}

dialog {
    width: min(440px, calc(100vw - 32px));
    padding: 28px;
    border: 12px solid transparent;
    border-image: url("https://geometrydash.com/assets/GJ_square01.png") 25 fill / 12px;
    background: rgba(24, 29, 39, 0.98);
    color: white;
    text-align: center;
    font-size: 18px;
    line-height: 1.4;
    transform-origin: center;
    -webkit-text-stroke: 0.5px #111;
}

dialog h2 {
    margin: 0 0 12px;
    font-size: 30px;
    -webkit-text-stroke: 1px #111;
}
.dialog-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 22px;
}
.dialog-actions button {
    flex: 1 1 0;
    min-width: 0;
    height: auto;
    min-height: 48px;
    padding: 8px 12px;
    font-size: 23px;
}


.title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    text-align: center;
}



a {
    color: #4ca3ff;
    font-family: "Pusab", sans-serif;
    font-size: 18px;
    text-decoration: none;
    -webkit-text-stroke: 1px #111;
}
a:hover { color: #a3d0ff; }

.corner {
    position: fixed;
    bottom: 0;
    height: 180px;
    pointer-events: none;
    z-index: 1;
}
.corner-left { left: 0; }
.corner-right { right: 0; transform: scaleX(-1); }

.backButton {
    position: static;
    object-fit: contain;
    cursor: pointer;
}
