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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    height: 100vh;
    margin: 0;
    padding: 0;
}

#canvas3d {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
}

#canvas3d:active {
    cursor: grabbing;
}

.nucleus {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.4s ease;
    pointer-events: auto;
    background: transparent;
}

.nucleus:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.nucleus.layer-2:hover {
}

#nucleusText {
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    margin: 10vh auto;
    width: 90%;
    max-width: 500px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.1);
    transform: rotate(90deg);
}

.modal-body {
    color: #fff;
}

.modal-body h2 {
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
    color: #fff;
}

.user-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 500;
}

.user-button {
    padding: 12px 20px;
    border-radius: 8px;
    background: rgba(0,0,0,0.8);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(0,0,0,0.9);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    min-width: 150px;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
}

.user-dropdown a:hover {
    background: rgba(255,255,255,0.1);
}

.add-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 12px 20px;
    border-radius: 8px;
    background: rgba(0,0,0,0.8);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 500;
}

.add-button:hover {
    background: rgba(0,0,0,0.9);
}

#momentForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#momentForm input {
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s;
}

#momentForm input:focus {
    outline: none;
    border-color: #4a90e2;
    background: rgba(255,255,255,0.1);
}

#momentForm input::placeholder {
    color: rgba(255,255,255,0.5);
}

#momentForm input[type="file"] {
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

#momentForm input[type="file"]:hover {
    border-color: #4a90e2;
    background: rgba(255,255,255,0.1);
}

#momentForm input[type="file"]::file-selector-button {
    padding: 8px 15px;
    background: rgba(74, 144, 226, 0.3);
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    margin-right: 10px;
}

#momentForm input[type="file"]::file-selector-button:hover {
    background: rgba(74, 144, 226, 0.5);
}

#momentForm button {
    padding: 15px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

#momentForm button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.5);
}

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

#photoForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#photoForm input,
#photoForm textarea {
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s;
    font-family: inherit;
}

#photoForm input:focus,
#photoForm textarea:focus {
    outline: none;
    border-color: #4a90e2;
    background: rgba(255,255,255,0.1);
}

#photoForm input::placeholder,
#photoForm textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

#photoForm input[type="file"] {
    padding: 10px;
    border: 2px dashed rgba(255,255,255,0.3);
    cursor: pointer;
}

#photoForm input[type="file"]:hover {
    border-color: #4a90e2;
    background: rgba(255,255,255,0.1);
}

#photoForm button {
    padding: 15px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

#photoForm button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.5);
}

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

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5vh auto;
        padding: 20px;
    }
    
    .user-menu {
        top: 10px;
        right: 10px;
    }
    
    .user-button {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .add-button {
        bottom: 20px;
        right: 20px;
        padding: 10px 18px;
        font-size: 24px;
    }
    
    #momentForm input,
    #momentForm button,
    #photoForm input,
    #photoForm textarea,
    #photoForm button {
        padding: 12px;
        font-size: 14px;
    }
    
    .modal-body h2 {
        font-size: 20px;
    }
}
