/* Import the Noto Sans font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap');

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

body, html {
    height: 100%;
    font-family: 'Noto Sans', sans-serif;
}

body {
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    transition: background-image 0.5s ease-in-out;
    position: relative;
}

/* Extra classes for the Bing background effects */

/* Background overlay (applies effect only to background) */
body::before {
    content: "";
    position: fixed;  /* Covers entire screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit; /* Matches body's background */
    z-index: -1; /* Ensures it's behind all content */
    transition: filter 0.5s ease-in-out, opacity 0.5s ease-in-out;
    pointer-events: none; /* Prevents interactions */
}

/* Apply effect only to the background */
body.bing-bg::before {
    filter: brightness(0.6) saturate(0.8); /* Darken + reduce saturation */
}

/* When user disables the effect */
body.no-effect::before {
    filter: none;
}

/* Background controls */
.background-controls {
    position: absolute;
    top: 10px;
    right: 20px;
    display: flex;
    gap: 15px;
    font-size: 1.5em;
}

.background-controls i {
    cursor: pointer;
    color: white;
    transition: color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.background-controls i:hover {
    transform: scale(1.1);
    color: #f4c542;
}

.background-controls i.active {
    color: #ff9800;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .background-controls,
    #footer-copyright,
    .tooltip-container#footer-copyright,
    #download-btn,
    .tooltip-container#download-btn,
    .footer-wallpaper-download {
        display: none !important;
    }
    
    body {
        background-image: url('background.jpg') !important;
    }
}

/* // Extra classes for the Bing background effects */

@media (min-height: 768px) {
    body {
        justify-content: space-between;
    }

    .footer {
        margin-top: auto; /* Pushes the footer to the bottom on larger screens */
    }
}

.container {
    max-width: 1200px;
    margin-bottom: 50px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: transparent;
    color: #fff;
}

.logo {
    font-size: 1.5em;
    width: 70px;
    height: 70px;
}

.title-group {
    text-align: left;
    flex-grow: 1;
    padding-left: 10px;
    font-weight: 100;
}

.title {
    font-size: 2em;
    font-weight: 100;
}

.subtitle {
    font-size: 0.875em;
    font-weight: 100;
}

.email-button {
    display: inline-block;
    padding: 5px 10px;
    background-color: #53aec9;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    margin-left: auto;
}

.email-button:hover {
    background-color: #0056b3;
}

.email-button.revealed {
    background-color: #28a745;
}

.main-content {
    flex: 1 0 auto;
    margin-bottom: 40px;
    width: 100%;
    padding: 20px;
}

.welcome-card {
    border-radius: 10px;
    margin-bottom: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.welcome-header {
    background-color: #3c6899;
    font-size: 1.125em;
    font-weight: bold;
    margin: 0;
    padding: 20px;
    color: white;
}

.welcome-body {
    background-color: #E0F7FA;
    font-size: 1em;
    color: black;
    padding: 20px;
}


.applications {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
}

.app-card {
    display: flex;
    flex: 1 1 350px;
    min-width: 350px;
    max-width: 350px;
    background-color: rgba(224, 247, 250, 0.7);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease-in-out, 
                box-shadow 0.3s ease-in-out, 
                background 0.3s ease-in-out;
}

.app-card:hover {
    transform: translateY(-3px) scale(1.02);  /* Slight floating effect */
    box-shadow: 
        0px 8px 20px rgba(50, 150, 200, 0.6), /* Soft cyan glow */
        0px 0px 40px rgba(50, 180, 220, 0.4); /* Subtle blue spread */
    background: rgba(224, 247, 250, 0.9); /* Slightly more opaque on hover */
}

.app-card-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.app-icon {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.app-info {
    display: flex;
    font-size: 14px;
    flex-direction: column;
    margin-left: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.app-info h3 {
    color: black ;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
}

.footer {
    width: 100%;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    bottom: 0;
    color: #bbb;
    display: flex;
    font-size: 0.875em;
    justify-content: center;
    align-items: center;
}

.my-precious {
    color: gold;
    text-shadow: 0 0 5px orange, 0 0 15px gold, 0 0 20px yellow;
    font-size: 20px;
    margin-left: 10px; 
    margin-right: 10px; 
}

#current-year {
    margin-left: 5px;
    margin-right: 5px;
}

/* Container for the animal image */
.animal-peek {
    position: fixed;
    top: 30%; /* Adjust as needed */
    left: -150px; /* Initially off-screen */
    width: 140px; /* Adjust size as needed */
    height: auto;
    transition: transform 0.3s ease-in-out;
}

/* Slide in when hovering over the logo */
.logo:hover + .animal-peek {
    transform: translateX(150px); /* Adjust to move it into view */
}

/* Media Query for Mobile Devices */
@media (max-width: 768px) {
    .header {
        display: flex;
        flex-wrap: wrap; /* Allows items to wrap when needed */
        align-items: center; /* Ensures vertical alignment */
    }

    .logo {
        width: 50px; /* Adjust size if necessary */
        height: 50px;
    }

    .title-group {
        flex-grow: 1; /* Takes up available space next to the logo */
        display: flex;
        flex-direction: column;
    }

    .email-button {
        background-color: #b4e1c2;
        width: fit-content;
        margin-top: 10px;
        align-self: flex-start;
        flex-basis: 100%; /* Forces button to move to the next row */
        text-align: center;
        color: grey;
    }
    
    .email-button.revealed {
		color: white;
	}
}

/* Tooltip Container */
.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin: 0 5px;
}

/* Make all icons in tooltip containers inherit color, including links */
.tooltip-container i,
.tooltip-container a i,
.tooltip-container .fa-tree {
    color: #bbb;  /* Match the footer text color */
    transition: color 0.3s ease-in-out, filter 0.3s ease-in-out;
}

/* Specific hover effects for each icon */
.tooltip-container:hover i.fa-copyright {
    color: #53aec9; /* Blueish color */
    filter: drop-shadow(0 0 2px #53aec9) 
           drop-shadow(0 0 4px #53aec9);
}

.tooltip-container:hover i.fa-camera-retro {
    color: #f4c542; /* Yellowish color */
    filter: drop-shadow(0 0 2px #f4c542)
           drop-shadow(0 0 4px #f4c542);
}

.tooltip-container:hover i.fa-leaf {
    color: #4CAF50; /* Greenish color */
    filter: drop-shadow(0 0 2px #4CAF50) 
           drop-shadow(0 0 4px #4CAF50);
}

/* Tooltip Text (Hidden by Default) */
.tooltip-text {
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    position: absolute;
    bottom: 125%; /* Position above the icon */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s ease-in-out;
    font-size: 0.85em;
}

/* Show Tooltip on Hover */
.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    text-decoration: none;
}

/* Reset link colors in tooltip containers */
.tooltip-container a {
    color: inherit;
    text-decoration: none;
}

#download-btn:visited {
    color: inherit !important; /* Keep the default color */
}

/* Style the Creative Commons License */
.cc-license img {
    height: 18px; /* Adjust size */
    margin-left: 3px;
    vertical-align: middle;
    transition: opacity 0.3s ease-in-out;
    opacity: 0.7;
}

.cc-license:hover img {
    opacity: 1; /* Slight transparency on hover */
}
