/* Global font setting */
body {
    background-color: #e3e5da;
    font-family: 'gt_pressura_monoregular', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh; /* Ensure the body takes up the full height of the viewport */
    display: flex;
    flex-direction: column;
}

/* Global styles for HTML and body */
html, body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

a {
    text-decoration: none;
    color: white;
}

:root {
    color-scheme: only light;
  }

  @font-face {
    font-family: 'gt_pressuraregular';
    src: url('gt-pressura/gt-pressura-regular-webfont.woff2') format('woff2'),
         url('gt-pressura/gt-pressura-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'gt_pressura_monoregular';
    src: url('gt-pressura/gt-pressura-mono-regular-webfont.woff2') format('woff2'),
         url('gt-pressura/gt-pressura-mono-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

/* Fullscreen preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e3e5da;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1.5s ease;
}

/* Centered loader */
.loader {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease;
}

.loader .logo {
    position: absolute;
    width: 80px;
    height: 80px;
}

/* Circular loading animation */
.loader-circle {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 5px solid rgba(3, 23, 140, 0.3);
    border-top-color: #03178c;
    border-radius: 50%;
    animation: spin 2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

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

/* Header container styles */
#header-container {
    position: relative;
    padding-right: 90px; /* Add padding to the right to accommodate the image */
    left: 40px; /* Ensure the header maintains its left padding */
    transform: translateY(30px);
    width: auto;
    opacity: 0;
    transition: top 1.5s ease, transform 1.5s ease, opacity 1.5s ease;
    z-index: 1000;
}

/* Container for the header content */
#header-content {
    display: inline-block; /* Keep the text content inline */
    text-align: left; /* Ensure text remains left-aligned */
}

/* Style for the AI mascot image */
#mascot-img {
    width: 50px; /* Adjust the size as needed */
    height: 50px; /* Match width to make it a perfect circle */
    border: 3px solid #03178c;
    border-radius: 50%; /* Make the image a circle */
    position: absolute; /* Use absolute positioning */
    right: 100px; /* Position the image within the page margin */
    top: 50%; /* Align the image vertically with the text */
    transform: translateY(-50%); /* Center the image vertically */
}

/* Hover effect */
#mascot-img:hover {
    transform: translateY(-50%) scale(1.1); /* Slightly scale up the image */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
}

/* Welcome text */
#welcome-text {
    font-size: 1.5em;
    color: #555;
    margin: 0;
    padding-left: 40px; /* Ensure padding is consistent */
}

/* Header text */
#header-text {
    font-size: 3em;
    font-weight: bold;
    color: #03178c;
    background-color: #ffb800;
    margin: 0;
    margin-left: 40px; /* Ensure padding is consistent */
    padding: 3px;
}

/* Content container */
#content {
    display: flex;
    justify-content: center; /* Center the content horizontally */
    align-items: center; /* Center the content vertically */
    padding: 20px;
    box-sizing: border-box;
    flex-grow: 1; /* Allow content to grow and take up available space */
    overflow: hidden; /* Prevent any overflow within the content */
}

/* Option box styling */
.option {
    flex: 1;
    margin: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
    max-width: 400px; /* Limit the maximum width */
}

/* Card styles with fixed size */
.card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: space-between;
    width: 300px;
    height: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card p{
    margin: 0;
    padding: 0;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-header {
    font-size: 1.8em;
    font-weight: bold;
    color: #03178c;
    margin-bottom: 15px;
    text-align: left;
}

.card-text {
    font-family: "gt_pressuraregular";
    font-weight: 400;
    line-height: 23px;
    font-size: 1.12em;
    color: #03178c;
    text-align: left;
    margin-bottom: 20px;
}

#sub-header{
    color: darkred;
    font-weight: bold;
}

/* Button styling */
.card-button {
    background-color: #03178c;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    font-family: "gt_pressuraregular";
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease; /* Smooth transition for background color */
    position: relative; /* Ensure relative positioning for child elements */
    text-align: center; /* Center the text */
    display: flex; /* Use flexbox for centering content */
    align-items: center; /* Center the text vertically */
    justify-content: center; /* Center the text horizontally */
    overflow: hidden; /* Hide any overflow for a clean slide-in effect */
}

/* Hidden icon/emoji by default */
.card-button .hidden-icon {
    opacity: 0; /* Hide the icon */
    margin-left: 5px; /* Space between text and icon */
    transform: translateX(-100%); /* Start the icon hidden within the text */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transition for both opacity and transform */
    position: absolute; /* Position the emoji absolutely so it doesn't affect text centering */
    right: 20px; /* Position it just outside the button */
}

/* Text within the button */
.card-button .button-text {
    transition: transform 0.3s ease; /* Smooth transition for text movement */
}

/* Show and slide the icon/emoji on hover */
.card-button:hover .hidden-icon {
    opacity: 1; /* Fade in the icon */
    transform: translateX(0); /* Slide the icon into view */
}

/* Adjust text padding and position on hover */
.card-button:hover .button-text {
    transform: translateX(-10px); /* Slightly move the text to the left */
}

.card-button:hover {
    background-color: #1f34ac; /* Existing hover color */
    padding-right: 40px; /* Add padding to the right to make room for the icon */
}

/* Animation for option visibility */
.option {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.option.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer styles */
#footer {
    background-color: #03178c;
    color: white;
    text-align: left;
    padding: 20px 20px; /* Adjust this value to change the height of the footer */
    position: fixed; /* Fixed position to ensure it spans the full width */
    bottom: 0;
    left: 0;
    width: 100%; /* Ensure the footer always spans the full width of the page */
    box-sizing: border-box; /* Include padding in the width calculation */
    z-index: 1000; /* Ensure it stays on top of other elements */
    display: none; /* Initially hide the footer */
    opacity: 0; /* Start with opacity 0 */
    transition: opacity 1.5s ease; /* Transition for fade-in effect */
}

#footer-logo{
    
    width: 100px;
    height: auto;
}

/* Responsive Design: Stacking cards and resizing text on smaller screens */
@media (max-width: 768px) {
    /* Stack the cards vertically */
    #content {
        flex-direction: column;
        align-items: center;
    }

    /* Resize header text */
    #header-container {
        left: 20px;
        top: 0;
        transform: translateY(20px); /* Smaller slide-in distance on mobile */
        text-align: left;
    }

    #header-text{
        font-size: 0.5em;
        margin: 10px 0px;
        background-color: transparent;
    }

    #mascot-img{
        right: 35px;
    }

    #welcome-text {
        font-size: 1em; /* Even smaller for mobile screens */
        padding-left: 20px; /* Adjust padding for smaller screens */
    }

    #header-text {
        font-size: 2em; /* Reduced further for mobile */
        padding-left: 20px; /* Adjust padding for smaller screens */
    }

    /* Adjust card size for smaller screens */
    .card {
        width: 100%;
        max-width: 325px; /* Ensure the cards don't get too wide */
    }

    /* Adjust footer padding for smaller screens */
    #footer {
        padding: 15px 15px; /* Slightly smaller padding for mobile */
        position: relative;
    }
}
