* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #fff;
    font-family: "UnifrakturMaguntia", cursive;
    font-weight: 400;
    font-style: normal;
    overflow-x: hidden;
    position: relative;
    letter-spacing: 1px;
}

/* Vibration effect */
@keyframes vibration {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-1px) translateY(1px); }
    50% { transform: translateX(1px) translateY(-1px); }
    75% { transform: translateX(-1px) translateY(-1px); }
    100% { transform: translateX(0) translateY(0); }
}


/* Glitch effect for all hoverable elements */
@keyframes glitch {
    0% {
        filter: brightness(1.2) contrast(1.2) hue-rotate(0deg);
        transform: translateX(0);
    }
    20% {
        filter: brightness(1.5) contrast(1.5) hue-rotate(5deg);
        transform: translateX(-2px);
    }
    40% {
        filter: brightness(1.3) contrast(1.3) hue-rotate(-5deg);
        transform: translateX(2px);
    }
    60% {
        filter: brightness(1.6) contrast(1) hue-rotate(10deg);
        transform: translateX(-1px) translateY(1px);
    }
    80% {
        filter: brightness(1.4) contrast(1.4) hue-rotate(-10deg);
        transform: translateX(1px) translateY(-1px);
    }
    100% {
        filter: brightness(1.2) contrast(1.2) hue-rotate(0deg);
        transform: translateX(0);
    }
}

/* Apply glitch effect on hover to all interactive elements */
.nav-link:hover,
.logo-nav:hover .nav-logo,
.copy-btn:hover,
.music-btn:hover,
.action-btn:hover,
.durag-option:hover,
.close-modal:hover,
.logo-container:hover .logo-img,
.control-slider:hover {
    animation: glitch 0.3s infinite;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: "UnifrakturMaguntia", cursive;
}

.nav-left .nav-logo {
    height: 30px;
    width: auto;
    transition: transform 0.3s ease;
    filter: brightness(1.2);
}

.nav-left .nav-logo:hover {
    transform: scale(1.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.contract-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contract-text {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.copy-btn {
    background: none;
    border: 1px solid #fff;
    color: #fff;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main content */
.main-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

.container {
    position: relative;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Pick your durag text */
.pick-durag-text {
    margin-bottom: 20px;
    text-align: center;
    z-index: 10;
}

.pick-durag-text p {
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

/* Logo container */
.logo-container {
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
    transition: transform 0.5s ease;
}

.logo-img {
    width: 500px;
    max-width: 90vw;
    height: auto;
    filter: brightness(1.1);
    transition: transform 0.5s ease;
}

/* Durag container */
.durag-container {
    position: relative;
    z-index: 20;
    margin-bottom: -50px;
    cursor: pointer;
}

.durag-img {
    width: 300px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transition: filter 0.2s ease;
}

/* Durag glitch effect */
.durag-img:hover {
    animation: glitch 0.3s infinite;
}

/* Noise effect for durag */
.durag-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjc0IiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxwYXRoIGQ9Ik0wIDBoMzAwdjMwMEgweiIgZmlsdGVyPSJ1cmwoI2EpIiBvcGFjaXR5PSIuMDUiLz48L3N2Zz4=');
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 21;
}

.durag-container:hover::before {
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #000;
    border: 1px solid #fff;
    width: 90%;
    max-width: 900px;
    padding: 30px;
    position: relative;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    font-family: "UnifrakturMaguntia", cursive;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #fff;
}

.modal-title {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
}

.close-modal {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.editor-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 768px) {
    .editor-container {
        flex-direction: row;
    }
}

.canvas-container {
    flex: 1;
    border: 1px solid #fff;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#pfp-canvas {
    max-width: 100%;
    max-height: 100%;
    display: none;
}

.canvas-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "UnifrakturMaguntia", cursive;
}

.canvas-placeholder:hover {
    color: #fff;
}

.canvas-placeholder i {
    font-size: 60px;
    margin-bottom: 20px;
}

.canvas-placeholder p {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
}

.controls-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.section-title {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

.durag-options {
    display: flex;
    gap: 15px;
}

.durag-option {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.durag-option.active {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.durag-option img {
    width: 80px;
    height: auto;
}

.durag-option span {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Transform controls */
.transform-controls {
    margin: 20px 0;
}

.control-group {
    margin-bottom: 20px;
}

.control-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 1px;
}

.control-label span:first-child {
}

.control-label span:last-child {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.control-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: 1px solid #000;
    transition: all 0.3s ease;
}

.control-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: 1px solid #000;
    transition: all 0.3s ease;
}

.control-slider:hover {
    background: rgba(255, 255, 255, 0.2);
}

.control-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    background: #f0f0f0;
}

.control-slider:hover::-moz-range-thumb {
    transform: scale(1.2);
    background: #f0f0f0;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: 1px solid #fff;
    color: #fff;
    font-weight: 400;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "UnifrakturMaguntia", cursive;
    font-size: 16px;
}

.save-btn {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Music player */
.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: 0;
    border: 1px solid #fff;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-text {
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .nav-right {
        gap: 15px;
    }
    
    .nav-text {
        font-size: 14px;
    }
    
    .contract-text {
        font-size: 10px;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .pick-durag-text p {
        font-size: 10px;
    }
    
    .logo-img {
        width: 300px;
    }
    
    .durag-img {
        width: 200px;
    }
    
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .editor-container {
        flex-direction: column;
    }
    
    .durag-options {
        flex-direction: column;
    }
    
    .control-label {
        font-size: 12px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .footer {
        padding: 10px 15px;
    }
    
    .footer-text {
        font-size: 10px;
    }
}