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

/* Typography */
h1 {
   color: #ffffff;
}

h2 {
    color: #00cc66;
    text-decoration: underline;
}

.bold-text {
    font-weight: bold;
}

/* General styles */
body {
    font-family: Arial, sans-serif;
    background: #f8f8f8;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input, textarea {
    padding: 10px;
    font-size: 16px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #00cc66;
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #007b5e;
}

/* Header (Horizontal Menu) */
.header {
    background: #1a1aff;
    color: #00264d;
    text-align: center;
    padding: 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.horizontal-menu {
    margin-top: 10px;
    background: #00cc66;
    text-align: center;
}

.horizontal-menu a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
}

.horizontal-menu a:hover {
    background-color: #007b5e;
    border-radius: 5px;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background: #1a1aff;
    color: white;
    padding: 20px;
    height: calc(100vh - 100px);
    position: fixed;
    left: 0;
    top: 100px;
}

.logo img {
    width: 90%;
    display: block;
    margin: 5px auto 25px;
}

.vertical-menu a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
    background: #333;
    text-align: center;
    border-radius: 5px;
}

.vertical-menu a:hover {
    background: #444;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 120px auto 0 auto; /* fixed margin */
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

/* Main Content */
.main-content {
    margin-left: 240px;
    padding: 20px;
    flex-grow: 1;
    position: relative;
}

/* Content Blocks */
.contain-block, .contain, .content-block {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    display: flex;
    flex-direction: column;
}

.content-block {
    background: white;
    padding: 40px;
    margin-bottom: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Section Background Colors */
#home { background: #f4f4f4; }
#about { background: #e2e2e2; }
#services { background: #f4f4f4; }
#contact { background: #e2e2e2; }
#section1 { background: #f4f4f4; }
#section2 { background: #e2e2e2; }
#section3 { background: #f4f4f4; }
#section4 { background: #e2e2e2; }

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 15px;
    width: 100%;
    position: relative;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Scroll Target Decoration */
.scroll-target {
    position: relative;
}

.scroll-target::before {
    content: "";
    display: block;
    height: 65px;
    width: 100%;
    background: linear-gradient(to bottom, green, blue, darkgreen);
}


.hardware-banner {
    width: 100%;
    max-width: 1200px;
    height: 125px;
    margin: 0 auto;
    overflow: hidden;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.hardware-banner img {
    height: 100%;
    width: auto;
    object-fit: contain;
}


/* Language Switcher */
.language-switcher {
    display: flex;
    position: absolute;
    top: 1px;
    right: 20px;
}

.language-switcher img {
    width: 30px;
    height: 20px;
    margin: 30px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.language-switcher img:hover {
    border-color: green;
}

/* Sidebar Menu */
.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    padding: 10px;
    cursor: pointer;
}

.sidebar ul li:hover {
    background: #444;
}

/* Calendar Section */
#calendar-section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

#calendar {
    width: 100%;
    min-height: 600px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}

/* Calendar Header */
.fc-toolbar {
    background: #007bff;
    color: white;
    border-radius: 8px;
    padding: 10px;
}

.fc-button {
    background: #007bff !important;
    border: none !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 5px !important;
}

.fc-button:hover {
    background: #0056b3 !important;
}

/* Default: hidden on desktop */
.mobile-language-footer {
    display: none;}

/* Tablet screens */
@media screen and (max-width: 1024px) {
    .contain-block, .maincontain {
        width: 95%;
        flex-direction: column;
    }
}


/* Mobile screens */
@media screen and (max-width: 768px) {
    .header {
        padding: 10px; /* Reduce padding */
        height: auto;
    }
    
     /* Adjust the horizontal menu margin (optional if needed) */
     .horizontal-menu {
        margin-top: 5px;
    }

    .language-switcher {
        display: none;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        margin: auto;
        width: 100%;
        flex-grow: 1;
        position: relative;
    }

    .content-block {
        width: 100%;
        padding: 15px;
    }

    .horizontal-menu {
        text-align: center;
    }

    .mobile-language-footer {
        display: flex;
        justify-content: center;
        align-items: center;
        background: #1a1aff; /* same background as main footer */
        padding: 10px;
        width: 100%;
        position: relative;
    }

    .mobile-language-footer img {
        width: 30px;
        height: 20px;
        margin: 0 5px; /* little gap between flags */
        border: 1px solid #ccc;
        border-radius: 3px;
        background: transparent;
    }

    .mobile-language-footer img:hover {
        border-color: green;
    }
    
    .footer {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    #calendar {
        min-height: 400px;
    }
}