footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
}

.square-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.square {
    width: 150px;
    height: 150px;
    background-color: #555;
    color: white !important;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.lightmode .square {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.square a {
    color: white;
    font-size: 16px;
}

.square:hover {
    transform: scale(1.1);
    background-color: #777;
}

.square.animator {
    background-color: #f71e1e;
}

.square:hover.animator {
    background-color: #ec7070;
}

.square.app-js {
    background-color: #F7DF1E;
}

.square:hover.app-js {
    background-color: #ecde70;
}

.square.looptime {
    background-color: #00cc44;
}

.square:hover.looptime {
    background-color: #4bdb7b;
}

.square.spritesheet {
    background-color: #0050e6;
}

.square:hover.spritesheet {
    background-color: #4e85ec;
}

.title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.title {
    margin: 0;
}

.title {
    font-family: 'Allan', sans-serif;
    font-weight: normal;
    font-size: 70px;
    margin-top: 20px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.lightmode .title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.sub-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 25px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.lightmode .sub-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#version-icon .spin-group {
    animation: spin 6s linear infinite;
    transform-origin: 50% 50%;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.github-icon {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    z-index: 1000;
}

.github-icon svg {
    width: 100%;
    height: 100%;
    fill: white;
    transition: fill 0.3s;
}

.lightmode .github-icon svg {
    fill: black;
}

.github-icon:hover svg {
    fill: gray;
}

.changelog-icon {
    position: fixed;
    cursor: pointer;
    top: 10px;
    right: 60px;
    width: 40px;
    height: 40px;
    z-index: 1000;
}

.changelog-icon svg {
    width: 100%;
    height: 100%;
    fill: white;
    transition: fill 0.3s;
}

.lightmode .changelog-icon svg {
    fill: black;
}

.changelog-icon:hover svg {
    fill: gray;
}

.changelog-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.changelog-content {
    background: #fff;
    color: #333;
    margin: 5% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    font-family: inherit;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    max-height: 80vh;
}

.changelog-content h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
}

.changelog-content h2 {
    margin-top: 20px;
    font-size: 22px;
    border-bottom: 2px solid #eee;
    padding-bottom: 4px;
}

.changelog-content h3 {
    margin-top: 12px;
    font-size: 18px;
    color: #C38500;
}

.changelog-content ul {
    list-style: disc inside;
    padding-left: 0;
    margin-left: 0;
}

.changelog-content li {
    margin: 2px 0;
}

.close-btn {
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.latest-badge {
    display: inline-block;
    background: #C38500;
    color: #fff;
    font-family: "Urbanist";
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    margin-left: 8px;
    border-radius: 6px;
    position: relative;
    top: -4px;
}