@font-face {
    font-family: 'TR2N';
    src: url('./fonts/Tr2n.ttf') format('truetype'); /* Correct URL format */
    font-weight: normal;
    font-style: normal;
}

/* Basic styling for the body */
body {
    margin: 0;
    padding: 0;
    background: #0e0e0e; 
    color: #00fff6; /* Default text color */
    font-family: 'TR2N', 'Orbitron', sans-serif;
    height: 100vh; /* Full viewport height for centering */
}

/* Container for the Tron homepage */
.tron-container {
    box-sizing: border-box;  /* To include padding and border in the total width and height */
    position: relative;
    display: flex; /* Use flexbox for centering */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    height: 100vh; /* Full viewport height for centering */
    text-align: center; /* Center text */
    padding: 20px;
    overflow: hidden; /* Prevent overflow of elements */
}

/* Canvas should be behind the other elements */
#electricArcsCanvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; /* Lower z-index to push it behind */
    width: 100%;
    height: 100%;
}

/* Portals Container Styling */
.portals-container {
    position: relative;
    z-index: 2; /* Higher z-index to ensure it's above the canvas */
}

/* Portals Styling */
.portals {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 20px;
}
.portal {
    display: flex;
    flex-direction: column; /* Ensures the text is below the circle */
    align-items: center;
    background: #000000; /* Solid black background */
    padding: 20px;
    border-radius: 10px;
    position: relative;
    cursor: pointer;

}
.portal:hover {
    transform: scale(1.1);
}
.glow-circle {
    width: 150px;
    height: 150px;
    border: 2px solid #00fff6;
    border-radius: 50%;

    box-shadow: 0 0 20px 5px #00fff6, inset 0 0 15px 2px #00fff6;
    animation: pulse 2s infinite ease-in-out;
    overflow: hidden; /* Ensures images don't overflow the circle */
    margin-bottom: 10px; /* Add space between circle and text */
    filter: drop-shadow(-50 -50 100px rgba(0, 255, 255, 0.8)); /* Glowing effect */
}

.glow-circle img {
    width: 100%; /* Make image fill the circle */
    height: auto; /* Maintain aspect ratio */
}

/* Style for the Text Under the Circle */
.portal p {
    color: #ff4444;
    font-size: 1.2em;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.8); /* Adds a glowing red effect */
    font-family: 'TR2N', 'Orbitron', sans-serif;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.mariebrisson.fr/images/hex-grid.svg') repeat;
    opacity: 0.3;
    z-index: -1;
    animation: float 10s infinite linear;
}


/* Keyframe Animations */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 10px 2.5px #00fff6, inset 0 0 15px 2px #00fff6;
        border: 2px solid #00fff6;
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 15px 5px #ff4444, inset 0 0 20px 5px #ff4444;
        border: 2px solid #ff4444;
        transform: scale(1.1);
    }
}

@keyframes float {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* Responsive Design - Media Queries */

/* Adjust styles for tablets and smaller devices */
@media (max-width: 768px) {

    h1 {
        font-size: 2em;
    } 


    .portal {
        width: 120px; /* Smaller portals */
        align-items: center;
        height: 120px;
        font-size: 1em; /* Adjust text size */
    }

    .glow-circle {
        width: 120px;
        height: 120px;
    }

    .portal p {
        font-size: 1em; /* Smaller font size for labels */
        bottom: -30px; /* Adjust position */
    }
}

/* Adjust styles for mobile devices */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5em; 
        margin-bottom: 30px;
    }

    .portals {
        flex-direction: column; /* Stack portals vertically */
        align-items: center;
        gap: 30px; /* Less gap between portals */
    }

    .portal {
        width: 100px; /* Smaller portals */
        height: 100px;
        font-size: 0.9em; /* Adjust text size */
    }

    .glow-circle {
        width: 100px;
        height: 100px;
    }

    .portal p {
        font-size: 0.9em; /* Adjust text size */
        bottom: -25px; /* Adjust position */
    }
}
