:root {
    --bg-image: url("images/bg.png");
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
}

* {
    font-family: "Google Sans", sans-serif;
}

.main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    gap: 5px;
    z-index: 99999999;
    text-align: center;
    padding: 0 10px;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    margin: 0;
}

h2 {
    font-size: clamp(2rem, 1vw, 7rem);
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    margin: 0;
}

p {
    color: white;
    font-size: clamp(1rem, 3vw, 1.5rem);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.navigation-bar {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    backdrop-filter: blur(10px);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.4));
    width: 90%;
    max-width: 900px;
    display: flex;
    justify-content: space-between;
    text-align: center;
    color: white;
    padding: 10px 15px;
    z-index: 9999;
    border-radius: 100px;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.tabs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tabs img {
    width: clamp(28px, 5vw, 40px);
    height: auto;
    transition: transform 0.15s ease;
    cursor: pointer;
}

.tabs img:hover {
    transform: scale(1.15);
}

.logo img {
    width: clamp(28px, 5vw, 40px);
    height: auto;
    transition: transform 0.15s ease;
    cursor: pointer;
}

.navlogo:hover {
    transform: scale(1.1);
}

#message {
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease;
}

#message:hover {
    transform: scale(1.05);
}

#message:active {
    transform: scale(0.95);
}

#info {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.4));
    backdrop-filter: blur(10px);
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 90%;
    max-width: 600px;
    padding: 12px 25px;
    border-radius: 50px;
    color: white;
    z-index: 100;
}

.battery {
    display: flex;
    align-items: center;
    gap: 6px;
}

#battery-text {
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

#battery-icon {
    height: clamp(18px, 4vw, 25px);
    width: auto;
    display: block;
}

#info p {
    margin: 0;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    white-space: nowrap;
}

@media (max-width: 600px) {

    .navigation-bar {
        width: 95%;
        padding: 5px 10px;
    }

    .nav-list {
        gap: 5px;
    }

    .nav-list li {
        font-size: 14px;
        gap: 6px;
    }

    .tabs {
        gap: 5px;
    }

    h1 {
        text-align: center;
    }

    p {
        text-align: center;
    }

    #info {
        gap: 8px;
        padding: 10px 15px;
    }
}

@media (max-width: 1000px) {

    .navigation-bar {
        width: 80%;
    }

    .nav-list li {
        font-size: 16px;
    }
}

#btn {
    margin-top: 15px;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.45));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05), inset 0 0 10px rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    z-index: 999;
}

#btn:hover {
    transform: scale(1.05);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.45));
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.12), inset 0 0 12px rgba(255, 255, 255, 0.08);
}

#btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#btn:hover::before {
    opacity: 1;
}

.search-bar {
    width: 300px;
    max-width: 80%;
    padding: 14px 20px;
    font-size: 20px;
    border-radius: 50px;
    color: white;
    text-align: center;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.35));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.25), inset 0 0 10px rgba(255, 255, 255, 0.04);
    outline: none;
    transition: all 0.2s ease;
    z-index: 999;
}

.search-bar:hover {
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.08), inset 0 0 12px rgba(255, 255, 255, 0.06);
}

.search-bar:focus {
    width: 360px;
    transform: scale(1.05);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08),rgba(0, 0, 0, 0.25));
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.12), inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.msg-gif {
    max-width: 125px;
    max-height: 85px;
    margin-top: 15px;
    border-radius: 10px;
}


.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 3;
    border: 1px solid rgba(255,255,255,0.08);
}

.card h3 {
    margin: 0;
    font-size: 20px;
}

.card p {
    margin: 0;
    opacity: 0.7;
    font-size: 14px;
}

.btn-row {
    display: flex;
    gap: 10px;
}



input[type="range"] {
    width: 100%;
}

.setting-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

small {
    opacity: 0.6;
}

@media (max-width: 500px) {
    .settings-grid {
        padding: 15px;
        gap: 15px;
    }

    .card {
        padding: 15px;
    }
}

button {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.08);
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: rgba(255,255,255,0.15);
}

button.full {
    width: 100%;
}

select {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    color: white;
}

button.active {
    background: #ffffff;
    color: rgb(0, 0, 0);
}

canvas {
    pointer-events: none;
    transition: opacity 0.2s ease;
}

#info {
    transition: opacity 0.2s ease;
}

.bg-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
    width: 250px;
    height: 50px;
    border: 2px solid transparent;
    box-sizing: border-box;
}

.bg-container:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    border: 2px solid #ffffff;
    z-index: 10;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.bg-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 8px;
    font-weight: 800;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 2;
}

.bg-container:hover .bg-text {
    opacity: 1;
}

.custom-cursor {
    cursor: url("../images/cursors/cursor.png"), default;
}

.custom-cursor button,

.custom-cursor .tabs img,
.custom-cursor #btn,
.custom-cursor img,
.custom-cursor #message,
.custom-cursor .logo img
.custom-cursor .navlogo:hover
.custom-cursor .bg-container {
    cursor: url("../images/cursors/pointer.png"), pointer;
}

.custom-cursor .search-bar,
.custom-cursor input,
.custom-cursor textarea {
    cursor: url("../images/cursors/type.png"), text;
}

#cloakSelect {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.08);
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

#cloakSelect:hover {
    background: rgba(255,255,255,0.15);
}

#cloakSelect.full {
    width: 100%;
}

#cloakSelect option {
    background: #1e1e1e;
    color: white;
}