* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Basic body styles */
body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  
    background-image:
        url("https://onekomputer.com/images/.jpeg") ,
        linear-gradient(to right, rgb(44, 62, 80), rgb(52, 152, 219));
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important;
    -webkit-focus-ring-color: rgba(255, 255, 255, 0) !important;
    outline: none !important;
    overflow:hidden;
}

input,
textarea {
    caret-color: transparent;
    /* Hide the cursor completely */
}

.icon {
    display: none;
}

/* This only works with JavaScript, 
if it's not present, don't show loader */
.no-js #loader {
    display: none;
}

.js #loader {
    display: block;
    position: absolute;
    left: 100px;
    top: 0;
}

.se-pre-con {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: url(https://images2.imgbox.com/c6/f8/jzEiaRO4_o.gif) center no-repeat #f3f3f4;
}


/* Header (Nav Bar) styles */
header {
    background-color: rgba(0, 0, 0, 0.644);
    color: white;
    padding: 10px 0px;
    text-align: center;
    z-index: 1000;
    position: relative;
    height: auto; /* or 60px if you still want to fix it */
}

.navbar ul {
    list-style-type: none;
    padding: 1rem;
    margin: 0;
    display: flex;
    float: left;
    font-size: 1.5rem;
    line-height: 2.5rem;
}

.navbar ul li {
    margin: 0 15px;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    font-size: 22px;
    transition: color 0.3s ease-in-out, font-size 0.3s ease-in-out;
}

.navbar ul li a:hover {
    color: orange;
    font-size: 1.55rem;
    transition: 0.3s ease-in-out;
}

/* Main content section styles */
main {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items at the top */
    flex: 1; /* This makes the main content take up available space */
    padding: 20px;
    text-align: center;
    margin-top: 50px; /* Add margin-top to space out from the header */
}

.container {
    text-align: center;
    perspective: 1000px;
    transition: transform 0.3s;
    margin-top: 30px; /* Add top margin to ensure it doesn't stick too close to the header */
}

.container:hover {
    transform: rotateX(0deg) rotateY(0deg) scale(1.02);
    /* Slightly enlarge on hover */
}

h1 {
    margin-bottom: 20px;
    font-size: 35px;
    color: whitesmoke;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px #aaa;
    letter-spacing: 2px;
}

/* Flag button adjustments */
.flag-button {
    width: 250px;
    height: 130px;
    background-image: url('https://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg');
    background-size: cover;
    border: 2px solid white;
    cursor: pointer;
    border-radius: 100px;
    margin-top: 20px; /* Space out the button from the heading */
}

.flag-button:hover {
    opacity: 0.8;
}

footer {
    background-color: rgba(0, 0, 0, 0.644); 
    font-size: 1rem;
    color: white;
    text-align: center;
    padding: 20px 20px;
    position: fixed;
    bottom:0;
    width: 100%;
}

@media screen and (max-width: 1600px) and (max-height: 900px) {
    h1 {
        font-size: 30px;
    }

    .flag-button {
        width: 240px;
        height: 125px;
    }
}

@media screen and (max-width: 1366px) {
    header {
        height:60px;
    }
    .navbar ul {
        list-style-type: none;
        padding-bottom: 8px;
        margin: 0;
        display: flex;
        /* Hide menu items initially using height */
        flex-direction: column;
        width: 100%;
        text-align: center;
        position: absolute;
        top: 100%;;
        /* Position the menu right below the hamburger icon */
        left: 0;
        background-color: rgba(0, 0, 0, 0.644);
        overflow: hidden;
        /* Hide overflow during transition */
        max-height: 0;
        /* Start with a height of 0 for transition */
        opacity: 0;
        /* Initially hide with opacity */
        transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
        /* Smooth transition for roll-down */
        backdrop-filter: blur(5px);
        /* Adds a blur effect */
    }

    .navbar ul li a:hover {
        color: orange;
        font-size: 20px;
        transition: 0.3s ease-in-out;
    }

    .navbar ul.active {
        display: flex;
        /* Show menu items when active */
    }

    .navbar ul li a {
        padding: 10px 20px;
        /* Adjust padding for mobile view */
        font-size: 20px;
        /* Adjust font size for mobile view */
    }

    .icon {
        display: block;
        /* Show the toggle icon on small screens */
        float: right;
        width: 40px;
        /* Set the width of the icon */
        text-align: center;
        /* Center the icon horizontally */
        cursor: pointer;
        color: white;
        /* Set color for the icon link */
        font-size: 32px;
        /* Set font size for the icon */
        transition: color 0.3s;
        /* Smooth color transition */
        position: relative;
        /* Ensure the icon has relative positioning */
        right: 2.5%;
        top: 2px;
        /* Position from the top edge of its container */

    }

    .icon:hover {
        color: orange;
        /* Change color on hover */
    }

    .navbar ul.active {
        max-height: 500px;
        /* Adjust based on the height needed for the menu */
        opacity: 1;
        /* Fade in when active */
    }

    .navbar ul li a:focus,
    .navbar ul li a:active {
        text-decoration: underline;
        /* Underline the link when tapped */
    }

    .icon a {
        color: inherit;
        /* Ensure the link color is inherited */
        display: block;
        /* Ensure the link takes up the full area of the icon */
        width: 100%;
        /* Full width to cover the area */
        height: 100%;
        /* Full height to cover the area */
        line-height: inherit;
        /* Ensure the line height is inherited */
    }

    .icon a i {
        color: inherit;
        /* Ensure the Font Awesome icon color is inherited */
    }

h1 {
    font-size: 25px;
}

/* Flag button adjustments */
.flag-button {
    width: 210px;
    height: 110px;
}

footer {
    padding: 15px;
    font-size: 0.8rem;
    }
}

@media screen and (width: 1280px) and (max-height: 800px){
    .navbar ul li a {
        font-size: 18px;
    }

    .navbar ul li a:hover {
        color: orange;
        font-size: 18px;
        transition: 0.3s ease-in-out;
    }
}

@media screen and (max-width: 1280px) and (max-height: 720px) {
    h1 {
        font-size: 24px;
    }
    
    /* Flag button adjustments */
    .flag-button {
        width: 190px;
        height: 100px;
    }
}

@media screen and (max-width: 1280px) and (max-height: 600px) {
    
    h1 {
        font-size: 22px;
    }
    
    /* Flag button adjustments */
    .flag-button {
        width: 150px;
        height: 80px;
    }
}
@media (max-width: 800px) and (max-height: 600px){  
    .navbar ul li a {
        font-size: 15px;
    }

    .navbar ul li a:hover {
        font-size: 15px;
    }

h1 {
    font-size: 20px;
}

/* Flag button adjustments */
.flag-button {
    width: 150px;
    height: 80px;
    }
    
    footer {
        padding: 10px;
        font-size: 0.7rem;
    }
}

@media (max-width: 768px){  
    .flag-button {
        width: 150px;
        height: 80px;
        }
}