/* General Styles */
/* Remove default margins and paddings */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Instead of fixed width */
.container {
    width: 80%; /* or use max-width for better responsiveness */
    max-width: 1200px; /* Prevents it from getting too wide on large screens */
    margin: 0 auto; /* Center the container */
    padding: 20px;
}


/* Default styles for small screens (mobile) */
h1 {
    font-size: 2em; /* Scales with screen size */
    line-height: 1.2; /* Ensures readability */
}

img {
    max-width: 100%; /* Prevents images from being wider than their container */
    height: auto; /* Maintains aspect ratio */
}

/* Default styles Flex */
.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.item {
    flex: 1 1 100%; /* Full width on small screens */
}

@media (min-width: 768px) {
    .item {
        flex: 1 1 calc(50% - 20px); /* Two columns on medium screens */
    }
}

@media (min-width: 1024px) {
    .item {
        flex: 1 1 calc(25% - 20px); /* Four columns on large screens */
    }
}




/* Large screens (desktops) */
@media (min-width: 1024px) {
    body {
        font-size: 20px;
        padding: 30px;
    }

    .container {
        width: 60%;
    }
}


/* END NEW CODE*/

/* Background Image Styles */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/background.jpg'); /* Your background image */
    background-size: cover;
    background-position: center;
    z-index: -1; /* Ensure it stays behind the map */
}

.map-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: transparent;
    z-index: 1;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* Transparent Green Circular Markers */
.location-marker {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 255, 0, 0.5);  /* Transparent green border */
    border-radius: 50%;
    background-color: rgba(0, 255, 0, 0.1);  /* Transparent green background */
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.location-marker:hover {
    transform: scale(1.2);
    background-color: rgba(0, 255, 0, 0.3);
}

/* Location Name Styling */
.location-marker .location-name {
    color: white;
    font-size: 12px;
    position: absolute;
    top: -20px; /* Move the name above the marker */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap; /* Ensure two words are in one line */
    text-transform: uppercase;
    font-weight: bold;
    font-family: pirulen;
    src: url(https://deltafuze.com/font/pirulen.ttf);pop
}

/* Popup Styling */
.popup {
    position: fixed;  /* Centering popup using fixed positioning */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Align to center */
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    color: white; /* Ensure popup text is white */
}

.popup.hidden {
    display: none;
}

#close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    color: #ff0000;
    font-weight: bold;
    font-size: 18px;
}

.popup-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Visit Now Button */
.visit-button {
    background-color: #1e8230;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.visit-button:hover {
    background-color: #145e20;
}

/* Font Faces */
@font-face {
    font-family: pirulen;
    src: url(https://raw.githubusercontent.com/th3knigh7/css-design/black-bg/pirulen.ttf);
}

@font-face {
    font-family: destructob;
    src: url(https://raw.githubusercontent.com/th3knigh7/css-design/black-bg/destructob.ttf);
}

/* Body Background */


/* Navigation */
nav {
    position: absolute; /* Position absolute to overlay on the background */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10; /* Ensure it sits above the background */
    background-color: transparent; /* Ensure there's no background color */
}

nav li a:hover {
    letter-spacing: 2px;
}

/* Circle Animation */
.circle_main {
    font-family: pirulen;
    font-size: 10px;
    color: white;
    position: relative;
    margin: 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(15, 94, 110, .1);
    transition: width 1s, height 1s;
    z-index: 1;
}

.change .circle_main {
    width: 110px;
    height: 110px;
}

.circle_main:hover {
    animation: vibrate .5s infinite ease-out;
}

.bar_left {
    position: absolute;
    top: 35px;
    right: 43px;
    width: 4px;
    height: 33px;
    border-radius: 2px;
    box-shadow: 0 0 13px 3px rgba(0, 131, 177, 0.77);
    transition: transform 1s, width 1s;
    z-index: -2;
}

.change .bar_left {
    width: 240px;
    transform: skewX(20deg);
    animation: op 1s;
}

.bar_right {
    position: absolute;
    top: 35px;
    left: 43px;
    width: 4px;
    height: 33px;
    border-radius: 2px;
    box-shadow: 0 0 13px 3px rgba(0, 131, 177, 0.77);
    transition: transform 1s, width 1s;
    z-index: -1;
}

.change .bar_right {
    width: 240px;
    transform: skewX(-20deg);
    animation: op 1s;
}

/* Keyframes for Animations */
@keyframes op {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.arc1 {
    content: "";
    position: absolute;
    width: 90%;
    height: 90%;
    left: 4.92%;
    top: 4.92%;
    border-radius: 50%;
    box-sizing: border-box;
    animation: rotate 4s linear infinite;
    text-align: center;
    line-height: 129px;
}

.line1, .line2, .line3, .line4 {
    border: 2px solid white;
    border-left: 1px solid transparent;
    animation: rotate 5s linear infinite;
}

/* Reactor Animation */
.reactor {
    position: absolute;
    background: #fff;
    width: 30%;
    height: 30%;
    border-radius: 50%;
    border: 5px solid rgba(2, 255, 255, 0.15);
    margin: 30%;
    cursor: pointer;
}

.change .reactor {
    animation: flicker .2s infinite;
}

.reacttext {
    opacity: 0;
    position: absolute;
    top: 25%;
    margin: 0 auto;
    color: rgba(0, 0, 0, 1);
    font-size: 14px;
    font-weight: 900;
    font-family: destructob;
    transition: opacity 1s;
}

.change .reacttext {
    opacity: 1;
}

/* Ham Style */
.hamContainer {
    position: absolute;
    top: -6%;
    transition: opacity 1s;
}

.hbar1, .hbar2, .hbar3, .hbar4, .hbar5 {
    height: 2px;
    background-color: black;
    border-radius: 4px;
    margin: 4px auto;
}

.hbar1 {
    width: 15px;
    animation: a 1s infinite;
    animation-delay: .5s;
}

.hbar2 {
    width: 20px;
    animation: a 1s infinite;
    animation-delay: .5s;
}

.hbar3 {
    width: 30px;
    animation: a 1s infinite;
    animation-delay: .5s;
}

.hbar4 {
    width: 20px;
    animation: a 1s infinite;
    animation-delay: .5s;
}

.hbar5 {
    width: 15px;
    animation: a 1s infinite;
    animation-delay: .5s;
}

.change .hamContainer {
    opacity: 0;
}

/* Animations */
@keyframes flicker {
    0%, 40%, 60%, 100% {
        box-shadow: 0px 0px 60px 25px rgba(150, 255, 255, 0.5), inset 0px 1px 4px 2px rgba(21, 211, 233, 0.3);
    }
    50% {
        box-shadow: 0px 0px 50px 17px rgba(150, 255, 255, 0.5), inset 0px 1px 100px 2px rgba(21, 211, 233, 0.3);
    }
}

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

@keyframes rotate_anti {
    0% {
        transform: rotateZ(360deg);
    }
    100% {
        transform: rotateZ(0deg);
    }
}

@keyframes a {
    0% {
        transform: scaleX(1) skewX(10deg);
    }
    50% {
        transform: scaleX(.7) skewX(20deg);
    }
    100% {
        transform: scaleX(1) skewX(30deg);
    }
}
