/* Custom styling for Serer Divination Web App */

:root {
    --red-primary: #ff0000;
    --red-dark: #cc0000;
    --gray-light: #cccccc;
    --gray-medium: #808080;
    --gray-dark: #333333;
}

/* Global Styles */
body {
    font-family: 'Workbench', monospace;
    letter-spacing: 0.05em;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

main {
    height: 100vh;
    overflow: hidden;
}

/* Geometric Visualization */
.geometric-group {
    transform-origin: center;
    transition: transform 0.3s ease-out;
}

#geometric-container:hover .geometric-group {
    transform: scale(1.05);
}

.vertex {
    cursor: pointer;
    transition: r 0.2s ease-out, opacity 0.2s ease-out;
}

.vertex:hover {
    r: 12;
    opacity: 1;
}

/* Make SVG responsive */
#geometric-shape {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    #geometric-shape {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 480px) {
    #geometric-shape {
        width: 300px;
        height: 300px;
    }
}

/* Red Blob Styling */
.red-blob {
    width: 200px;
    height: 100px;
    background-color: var(--red-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    flex-shrink: 0;
}

.blob-text {
    color: var(--gray-light);
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .red-blob {
        width: 160px;
        height: 80px;
    }
    
    .blob-text {
        font-size: 20px;
    }
}

/* Divination Section */
.divination-section {
    margin-bottom: 3rem;
}

.divination-text {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-left: 4px solid var(--red-primary);
    line-height: 1.8;
    font-size: 16px;
    color: var(--gray-dark);
}

@media (max-width: 768px) {
    .divination-text {
        font-size: 14px;
        padding: 1rem;
    }
}

/* Action Buttons */
.action-button {
    background-color: var(--red-primary);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    font-family: 'Workbench', monospace;
    font-size: 14px;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    text-transform: uppercase;
}

.action-button:hover {
    background-color: var(--red-dark);
    transform: translateY(-2px);
}

.action-button:active {
    transform: translateY(0);
}

/* Loading Spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-light);
    border-top: 4px solid var(--red-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-glow {
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Smooth transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header and Footer styling */
header {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
}

footer {
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

/* Responsive text */
@media (max-width: 640px) {
    header, footer {
        font-size: 10px;
    }
    
    header div, footer div {
        font-size: 10px;
    }
}

/* SVG styling */
svg {
    height: 100vh;
}

/* Video background styling */
video {
    z-index: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Video overlay gradient for better foreground visibility */
.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    pointer-events: none;
}

/* Hide fallback image by default when video is present */
.video-fallback {
    z-index: -1;
}

/* Moon and Sun hover effects */

#moon, #sun, #okiin, #maam, #roog{
    transition: transform 0.3s ease;
    transform-origin: center;
    transform-box: fill-box;
}

#moon {
    transform: translate(0px, 255px);
  }
  
  #moon:hover {
    transform: translate(0px, 255px) scale(1.5);
  }
  
  #sun {
    transform: translate(520px, 180px);
  }
  
  #sun:hover {
    transform: translate(520px, 180px) scale(1.5);
  }

  #okiin{
    transform: translate(263px, 230px);
  }

  #okiin:hover{
    transform: translate(263px, 230px) scale(1.2);
  }


  #maam{
    transform: translate(255px, 610px);
  }

  #maam:hover{
    transform: translate(255px, 610px) scale(1.2);
  }

  #roog{
    transform: translate(287px, 0px);
  }

  #roog:hover{
    transform: translate(287px, 0px) scale(1.2);
  }

/* Vertex Tooltip Styling */
.vertex-tooltip {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    max-width: 300px;
}

.vertex-tooltip.visible {
    opacity: 1;
}

.tooltip-content {
    background-color: rgba(0, 0, 0, 0.9);
    color: var(--red-primary);
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid var(--red-primary);
    font-family: 'Workbench', monospace;
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .vertex-tooltip {
        max-width: 250px;
    }
    
    .tooltip-content {
        font-size: 12px;
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .vertex-tooltip {
        max-width: 200px;
    }
    
    .tooltip-content {
        font-size: 11px;
        padding: 8px 12px;
    }
}


