﻿@font-face {
    font-family: MainFont;
    src: url(../font/DMSans-Medium.ttf);
}

:root 
{
    /* Orange */
    /* --main-color: Orange;*/
    /* --main-hover-bg: rgba(255, 165, 0, 0.8);*/
    /* --main-hover-shadow: rgba(255, 165, 0, 0.3);*/
    
    /* Apple Green */
    --main-color: #8DB600;
    --main-hover-bg: rgba(141, 182, 0, 0.8); 
    --main-hover-shadow: rgba(141, 182, 0, 0.3); 
    
    --footer-hover-color: Orange;
    --background-opacity: rgba(0, 0, 0, 0.7);
}

* {
    margin: 0;
    padding: 0;
    font-family: MainFont, sans-serif;
    font-size: 16px;
    font-weight: normal;
    box-sizing: border-box;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    background: url('../images/Login_Background.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

.container {
    display: flex;
    align-items: center;
    gap: 50px;
    transform: translateY(-50px);
    animation: fadeUp 1s ease-in-out forwards;
}

.header img {
    height: 200px;
    animation: fadeUp 0.7s ease-in-out forwards;
    margin-top: 50px;
}

h2 {
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    width: 100%;
}

.icongroup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hris-icons {
    display: flex;
    gap: 10px;
}

.largeicon, .smallicon {
    background-color: white;
    width: 130px;
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease-in-out;
    cursor: pointer;
}

.largeicon img, .smallicon img {
    width: 80px;
    height: 80px;
    transition: transform 0.4s ease-in-out;
}

.largeicon:hover, .smallicon:hover {
    background: var(--main-hover-bg);
    transform: scale(1.1);
    box-shadow: 0 6px 15px var(--main-hover-shadow);
}

.largeicon:hover img, .smallicon:hover img {
    transform: scale(1.15);
}

.smallicon span {
    position: absolute;
    bottom: 10px;
    background: var(--background-opacity);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.smallicon:hover span {
    opacity: 1;
    visibility: visible;
}

footer {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeUp 1s ease-in-out forwards;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.footer-links a:hover {
    color: var(--footer-hover-color);
}

.footer-links img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease-in-out;
}

.footer-links img:hover {
    transform: scale(1.3);
}

@media screen and (max-width: 1000px) {
    .header img {
        height: 80px;
    }
    .largeicon, .smallicon {
        width: 100px;
        height: 100px;
    }
}

@media screen and (max-width: 600px) {
    .container {
        flex-direction: column;
        gap: 20px;
        margin-top: -100px;
    }
    .header img {
        height: 50px;
    }
    .hris-icons {
        flex-direction: column;
        gap: 10px;
    }
    .largeicon, .smallicon {
        width: 150px;
        height: 150px;
    }
    h2 {
        font-size: 20px;
    }
    footer {
        position: absolute;
        bottom: 10px;
        right: 10px;
        left: auto;
        text-align: right;
        padding: 10px;
    }
    .footer-links {
        flex-direction: row;
        gap: 10px;
    }
    .footer-links img {
        width: 20px;
        height: 20px;
    }
}
