

*{
    margin: 0;
    padding: 0;
}

.nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.dir {
    display: grid;
    grid-template-areas:
        ". N ."
        "W . E"
        ". S .";
    gap: 10px;
}

.dir > div {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.N { grid-area: N; }
.S { grid-area: S; }
.E { grid-area: E; }
.W { grid-area: W; }

.arrow {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 15px solid #333;
}

/* Rotate arrows for different directions */
.N .arrow {
    transform: rotate(0deg);
}

.E .arrow {
    transform: rotate(90deg);
}

.W .arrow {
    transform: rotate(-90deg);
}

.S .arrow {
    transform: rotate(180deg);
}

/* Hover effect */
.dir > div:hover {
    background-color: rgba(255, 255, 255, 0.9);
}


.controls {
    position: fixed;
    top: 20px;  /* Changed from bottom to top */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.controls button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.controls button:hover {
    background-color: rgba(255, 255, 255, 0.95);
}

/* Hide the file input */
#imageLoader {
    display: none;
}

#saveBtn {
    padding: 5px 10px;  /* Reduced padding */
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;    /* Smaller font size */
    margin: 5px;
    width: 100px;
}


/* Add this to your style.css file */

canvas {
    border: 35px solid #2b2b2b;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    box-shadow: 
        inset 0 0 50px rgba(0,0,0,0.6),
        0 0 50px rgba(0,0,0,0.5);
    background-color: #a5d8ff;
    z-index: 1; /* Add this */
}

/* Add individual bolt holes */
.porthole-frame {
    position: fixed;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    /* transform: translate(-50%, -50%);*/
    width: 570px;
    height: 570px;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}


/* Fix the water effect */
.water-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(45deg, rgba(0,149,255,0.2), rgba(0,149,255,0));
    animation: waterEffect 8s infinite ease-in-out;
}

@keyframes waterEffect {
    0% { 
        opacity: 0.3;
        background: linear-gradient(45deg, rgba(0,149,255,0.2), rgba(0,149,255,0));
    }
    50% { 
        opacity: 0.5;
        background: linear-gradient(45deg, rgba(0,149,255,0.4), rgba(0,149,255,0.1));
    }
    100% { 
        opacity: 0.3;
        background: linear-gradient(45deg, rgba(0,149,255,0.2), rgba(0,149,255,0));
    }
}


.bolt {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #1a1a1a;
    border-radius: 50%;
    border: 3px solid #4a4a4a;
    box-shadow: 
        inset 0 0 5px rgba(0,0,0,0.8),
        0 0 2px rgba(255,255,255,0.1);
    z-index: 4;
}

/* Position the bolts evenly around the circle */
.bolt:nth-child(1) { top: 0; left: 50%; transform: translate(-50%, 0); }
.bolt:nth-child(2) { top: 10%; right: 20%; }
.bolt:nth-child(3) { top: 25%; right: 6%; }
.bolt:nth-child(4) { top: 50%; right: 0; transform: translate(0, -50%); }
.bolt:nth-child(5) { bottom: 25%; right: 6%; }
.bolt:nth-child(6) { bottom: 10%; right: 20%; }
.bolt:nth-child(7) { bottom: 0; left: 50%; transform: translate(-50%, 0); }
.bolt:nth-child(8) { bottom: 10%; left: 20%; }
.bolt:nth-child(9) { bottom: 25%; left: 6%; }
.bolt:nth-child(10) { top: 50%; left: 0; transform: translate(0, -50%); }
.bolt:nth-child(11) { top: 25%; left: 6%; }
.bolt:nth-child(12) { top: 10%; left: 20%; }




.zoom-controls {
    position: absolute;
    left: 10px;
    top: 120px;
}

.zoom-button {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 2px solid #000;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    margin: 5px;
    user-select: none;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: black;
}

.grid-container {
    width: 100%;
    max-width: 1200px; /* Adjust this value as needed */
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

#imageGrid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 1px;
    justify-content: center;
}

#imageGrid img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}


