/* Author: Kgosietsile Mekgoe */

/* General Reset */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column; /* Makes the body a column container */
    height: webkit-fill-available;
}

 /* High Contrast Mode */
 @media (-ms-high-contrast: active) {
    body {
        background-color: black;
        color: white;
    }

    header {
        color: yellow;
    }

    .map-container {
        border-color: yellow;
    }

    .toggle-btn {
        background-color: yellow;
        color: black;
    }

    .toggle-btn:hover {
        background-color: orange;
    }
}

@media (-ms-high-contrast: none) {
    body {
        -ms-high-contrast-adjust: none;
    }
}

/* Header */
header {
    text-align: center;
    padding: 7px 0;
    margin-bottom: 0px;
    color: #fefefe;
}

header h4 {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 11px;
    font-style: italic;
    font-weight:bold;
    margin-bottom: 10px;  
}

header h1{
    height: 20vh;
    size: 10px;
    padding: 0; /* Prevents extra padding around the header */
    display: inline-block; /* Shrinks the header to fit its content */
}

#header-logo {
    position: relative;
    top: -45px; /* Moves the logo upwards */
    width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
    padding: 8px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth animation for hover effects */
}

#header-logo:hover {
    transform: scale(1.07); /* Slightly enlarges the image */
    box-shadow: 0px 8px 15px rgba(0, 0, 0, -1); /* Adds a shadow for emphasis */
    cursor: pointer; /* Changes cursor to pointer to indicate it's clickable */
}


/* Video Background */
#bg-video, #mobile-bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover; /* Ensures video scales properly to fill screen */
    z-index: -1; /* Places video behind other content */
}

/* Desktop Video (Hidden on Mobile) */
#bg-video {
    display: block;
}

/* Mobile Video (Hidden by Default) */
#mobile-bg-video {
    display: none;
}

/* Ensure content appears above the video */
body, header, main, footer {
    position: relative;
    z-index: 1;
}

/* Main Content */
main {
    flex: 1; /* Ensures the main section takes up all available space */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #e1e1e1;
    width: 100%;
}

/* Footer */
footer {
    height: -200px;
    text-align: right;
    font-size: 8.5px;
    color: rgb(10, 10, 10);
    background: none;
    margin-top: auto; /* Pushes footer to the bottom */
    margin-left: 50px;
    padding-bottom: 20px 0; /* Adds space below the footer */
}

body #footer-section {
    text-align: left; /* Aligns the content to the left */
    margin-left: 50px; /* Adjust incrementally for fine-tuning */
    padding-bottom: 20px 0; /* Optional: Add spacing if needed */
}

#footer-section footer {
    font-size: 8.5px; /* Keeps the font size small */
    color: rgb(10, 10, 10); /* Adjust text color */
    background: none; /* No background for transparency */
}

/* Social Media Icons Styling */
.social-media-icons {
    position: fixed; /* Keeps the icons in place as you scroll */ 
    top: 80%; /* Vertically centers the icons */
    right: 15px; /* Adjust to place on the left side of the screen */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px; /* Space between icons */
    z-index: 100; /* Ensures icons are above other elements */
}

.social-media-icons a img {
    width: 20px; /* Adjust the size of icons */
    height: 20px;
   /* border-radius: 100%;  Makes the icons circular */
    transition: transform 0.3s; /* Smooth animation on hover */
}

.social-media-icons a img:hover {
    transform: scale(1.2); /* Enlarges icons slightly on hover */
    cursor: pointer; /* Changes cursor to pointer */
}

/* Style for Linktree Logo */
.linktree-logo {
    width: 24px; /* Matches the size of the other icons */
    height: 24px;
    border-radius: 70%; /* Makes the logo circular */
    object-fit: cover; /* Ensures the image fits within the circular crop */
    transition: transform 0.3s; /* Smooth animation on hover */
    backdrop-filter: 70%;
    background-color: #fbfbfb;
    background: linear-gradient(45deg, #61ffab, #26d7ff); /* Gradient effect */
    background-size: 30%;
    box-shadow: 0 4px 10px rgba(22, 244, 151, 0.3); /* Adds a shadow on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
    iframe {
        height: 700vh;
    }
}

.icon-container {
    display: inline-block; /* Ensures the container wraps tightly around the icon */
    border-radius: 50%; /* Makes the background circular */
    padding: 5px; /* Adds some space around the icon */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}

.navigate-icon {
    width: 24px; /* Adjust to desired size */
    height: 24px;
    vertical-align: middle; /* Aligns icon with text if any */
    transition: transform 0.3s ease; /* Smooth hover effect */
    backdrop-filter: 70%;
    border-radius: 5px;
    margin-left: 8px;
    background: none; /* Gradient effect */
    background-size: 30%;
    box-shadow: 0 4px 10px rgba(22, 244, 151, 0.3); /* Adds a shadow on hover */

}

#main-link:hover .navigate-icon {
    transform: scale(1.2); /* Slightly enlarges the icon on hover */
    box-shadow: 0 4px 10px rgba(0, 255, 149, 0.3); /* Adds a shadow on hover */
}

/* Map Styling */
iframe {
    height: 53vh; /* Adjust height; vh ensures responsiveness */
    border: none;
    border-radius: 10px;
    margin: 5px 0; /* Add some spacing around the map */
    transform: translateY(-45px); /* Moves the map up by 20px */
}

/*QR Code canvas*/
.qr-section canvas{
    border-radius: 10px;
}

.qr-section {
    text-align: center; /* Center aligns the content */
    margin-top: -250px; /* Move the section up by 10px */
    position: relative; /* Allows precise positioning */
}

.qr-section h2 {
    font-size: 14px; /* Adjust the size as needed */
    text-align: center; /* Optional: Centers the text */
    font: bold;
    font-style: italic;
    color: #fbfbfb; /* Optional: Adjust the color if needed */
}

.qr-section a {
    color: green;
    font-size: 15px; /* Adjust the size as needed */
    font-weight: bold;
    text-align: center; /* Optional: Centers the text */
    text-decoration: solid;
    font: bold;
    font-style: italic;
}

.qr-section p {
    color: rgb(255, 255, 255);
    font-size: 14px; /* Adjust the size as needed */
    font-weight: bold;
    text-align: center; /* Optional: Centers the text */
    text-decoration:wavy;
    font: bold;
    font-style: italic;
    
}

#qr-section p:hover{
    transform: scale(1.1); /* Slightly enlarges the image */
    box-shadow: 0px 8px 15px rgba(0, 0, 0, -1); /* Adds a shadow for emphasis */
    cursor: pointer; /* Changes cursor to pointer to indicate it's clickable */
}

.main-link{
    filter: blur(1.2rem);

}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.qr-section::after, 
.qr-section::before{
    content: '';
    will-change: transform;
    position: absolute;
    height: 79%;
    width: 100%;
    background-image: conic-gradient(from var(--angle), transparent 95%, rgb(10, 224, 124), rgb(48, 185, 223));
    top: 48%;
    left: 50%;
    translate: -50% -50% ;
    z-index: -1;
    padding: 3px;
    border-radius: 10px;
    animation: 6s spin linear infinite;
    margin: 0 auto; /* Center the animation horizontally */
    display: flex;
    justify-content: center;
    align-items: center;
}

    /* Blur effect */
    .qr-section::before{
        filter: blur(1rem);
        opacity: 0.8;
}

    /*create spin animation using @keyframes*/
    @keyframes spin{
        from{
            --angle: 0deg
        }
        to{
            --angle: 360deg 
        }
}

/* +++++ Mobile View Optimization +++++ */

/* Flexible Grids and Images */
img {
    max-width: 100%;
    height: auto;
}
.grid-container {
    display: flex;
    flex-wrap: wrap;
}
.grid-item {
    flex: 1 1 100%; /* Full width on smaller screens */
}

/* General mobile styles */
@media only screen and (max-width: 768px) {
    body {
        font-size: 14px; /* Adjust font size for better readability */
        padding: 10px;
    }
    .header, .footer {
        padding: 15px;
        text-align: center;
    }
    .container {
        flex-direction: column;
        padding: 10px;
    }
}

/* For smaller devices */
@media only screen and (max-width: 680px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .content {
        padding: 5px;
    }
}

@media (max-width: 768px) {
    #bg-video {
        width: 100%; /* Make video adjust to screen width */
        height: auto; /* Preserve aspect ratio */
    }
}

/* Hide desktop video and show mobile video on smaller screens */
@media only screen and (max-width: 768px) {
    #bg-video {
        display: none;  
    }

    #mobile-bg-video {
        display: block;
        width:100%; 
        height: relative; /* Ensures the video adjusts to screen height */
        object-fit:fill; /* Keeps aspect ratio while covering the screen */
    }

    #Mobile-View{
        display: none;
    }
}

/* relative Mobile view for animation  */
@media (max-width: 768px) {
    .qr-code-animation {
        width: calc(100% - 20px); /* Smaller width on small screens */
        padding: 10px;
    }
}




