* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body.light-theme {
    --app-bg: #ffffff;
    --text-main: #000000;
}
body.dark-theme {
    --app-bg: #000000;
    --text-main: #ffffff;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--app-bg);
    
    transition: 
        background-color 0.5s cubic-bezier(0.7, 0, 0.3, 1), 
        color 0.5s cubic-bezier(0.7, 0, 0.3, 1);
}

body.js-loading {
    opacity: 0;
    visibility: hidden;
}

.tween-target {
    opacity: 0;
    transform: translateY(25px);
    will-change: transform, opacity;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    gap: 16px;
    color: var(--text-main);
    width: 100%;
}

.icon-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    flex-direction: row;
    flex-wrap: nowrap;
}

.icon-grid img {
    height: 40px;
    width: auto;
}

body.light-theme .logo-lua,
body.light-theme .logo-luau,
body.light-theme .logo-python,
body.light-theme .logo-html5,
body.light-theme .logo-css3 {
    filter: none;
}

body.dark-theme .logo-lua, 
body.dark-theme .logo-luau, 
body.dark-theme .logo-python, 
body.dark-theme .logo-html5, 
body.dark-theme .logo-css3 {
    filter: brightness(0) invert(1);
}

#theme-toggle {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    outline: none;
}

.dark-theme .theme-icon {
    filter: brightness(0) invert(1);
}