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

body {
    font-family: 'Arial', sans-serif;
    background-color: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

nav.topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 56px;
    background-color: #050225;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    width: 100%;
}
 
.nav-brand {
    color: rgba(245, 244, 248, 0.895);
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.03em;
}
 
.nav-links {
    display: flex;
    gap: 4px;
}
 
.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: rgba(241, 241, 241, 0.45);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
 
.nav-link:hover {
    color: #f1f1f1;
    background: rgba(255, 255, 255, 0.08);
}
 
.nav-link.active-link {
    color: #d4d1fd;
    background: rgba(212, 209, 253, 0.12);
}




#canvas-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

#controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(203, 158, 228, 0.2);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    max-width: 300px;
    text-align: center;
}

button {
    background-color: rgba(1, 0, 12, 0.895);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 5px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 104, 104, 0.3);
}

button:active {
    transform: translateY(0);
}

#fileInput {
    margin-top: 10px;
    padding: 6px;
    background: #ffffff;
    border-radius: 6px;
    cursor: pointer;
}

label {
    color: white;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

#info {
    color: white;
    margin-top: 15px;
    font-size: 14px;
}

#emotion-display {
    color: white;
    margin-top: 10px;
    font-size: 13px;
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 8px;
}

.emotion-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 3px;
    font-size: 12px;
    font-weight: bold;
}

/*settings css*/
.settings-container{
    width: 90%;
    max-width: 500px;
    margin: 40px auto;
}

/* each settings row */

.setting-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

/* text */

.setting-text h2{
    margin: 0;
    font-size: 20px;
}

.setting-text p{
    margin: 4px 0 0 0;
    font-size: 14px;
    opacity: 0.7;
}

/* toggle switch */

.switch{
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input{
    opacity: 0;
    width: 0;
    height: 0;
}

.slider{
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555;
    transition: .3s;
    border-radius: 26px;
}

.slider:before{
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider{
    background-color: #4CAF50;
}

input:checked + .slider:before{
    transform: translateX(24px);
}
