﻿
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: 120px;
    font-family: Arial, Helvetica, sans-serif;
    background-image: url('img/RisiperBack.jpg');   
    background-size: cover; /* Scales image to fill entire screen */
    background-position: center; /* Keeps it centered */
    background-repeat: no-repeat;
    width: 100vw;
    height: 100vh;
    background-attachment: fixed;
    scroll-behavior: smooth;
}
/*new menu*/

#navbar {
    overflow: hidden;
    background-color: rgba(0,104,187,0.8);
    padding: 40px 10px;
    transition: 0.4s;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 99;
    backdrop-filter: blur(5px);
    box-shadow: 0.5vw 0.5vw 0.8vw rgba(0, 0, 0, 0.8);
}

    #navbar a {
        float: left;
        color:white;
        text-align: center;
        padding: 12px;
        text-decoration: none;
        font-size: 18px;
        line-height: 25px;
        border-radius: 4px;
    }

#logo {
    font-size: 40px; /* Slightly larger text */
    font-weight: bold;
    color: white !important; /* White text */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Drop shadow effect */
    background-image: url('img/RisiperLogo.png'); /* Replace with your image path */
    background-size: 100%; /* Scales image a bit bigger */
    background-position: center;
    background-repeat: no-repeat;
    justify-content: center;
    text-align: center;
    align-items: center;
    border-radius: 12px;
    display: flex;
    position: absolute;
    width: 150px;
    height: 75px;
}

    #navbar #logo {
        font-size: 35px;
        font-weight: bold;
        transition: 0.4s;
    }

#navbar a:hover {
    color: black;
    box-shadow: 0 0 1vw rgba(255, 255, 255, 0.9); /* Soft centered glow */
    background-color: rgba(255,255,255,0.85);
    transform: scale(1.05); /* Slight zoom effect */
    text-shadow: 0.2vw 0.2vw 0.5vw rgba(0,0,0,0.2); /* Faint text depth */
    transition: all 0.3s ease-in-out;
}

    #navbar a.active {
        background-color: dodgerblue;
        color: white;
    }

#navbar-right {
    float: right;
}

@media screen and (max-width: 580px) {
    #navbar {
        padding: 20px 10px !important;
    }

        #navbar a {
            float: none;
            display: block;
            width: fit-content;
            text-align: right;
            font-size: 3vw;
            margin-left: auto;
            margin-right: 0;
        }

    #navbar-right {
        float: none;
    }
}


/*end new menu*/

section {
    scroll-margin-top: 120px; /* match navbar height or slightly more */
}

html {
    scroll-behavior: smooth;
}
 
    .tm-white-rect {
        display: inline-block; 
        width: 15px;
        height: 15px;
        background-color: white;
    }

.tm-intro {
    width: 70%;
    padding: 5%;
    /*margin-left: 200px;*/
    max-width: 80vw;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.2);
    text-align: right;
    font-family: BNazanin, Arial, sans-serif;
    font-size: x-large;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    text-justify: auto;
    font-size: 2vw;
}

    .tm-intro-legend {
        position: absolute;
        top: -30px;
        right: 15px; 
        background-color: rgba(153, 190, 253, 0.5); 
        font-weight: bold;        
        padding: 10px;         
        border-radius: 50px;
    }

    .tm-caption {
        position: absolute; 
        top: -10px; 
        left: 50%; 
        transform: translateX(-50%); 
        background-color: white; 
        padding: 0 5px; 
        font-family: BNazanin, Arial, sans-serif;
        font-size: 14px; 
        color: blue; 
    }

    .tm-parent {
        display: flex; 
        justify-content: center;
        align-items: center;
    }


    .container {
        display: flex; 
        justify-content: space-between; 
    }

    .box {
        max-height: 100px;
        text-align: center;
    }

    .rounded-image {
       /* width: 200px; */
        width:100%;
        height: auto; 
        border-radius: 20px; 
        border: 2px solid #ccc; 
    }

    .rounded-image-noborder {
        border-radius: 20px; 
        max-width: 500px;
        max-height: 500px;
        height: auto;
        box-shadow: 0px 0px 10px 20px rgba(0, 0, 0, 0.5); 
    }

    .rectangle {
        border: 2px solid #007BFF; 
        border-radius: 25px; 
        padding: 50px; 
        display: inline-block; 
        position: relative; 
        background-color: rgba(255,255,255,0.75);
    }

    .rectangle-legend {
        position: absolute;
        top: -20px; 
        right: 15px; 
        background-color: white; 
        font-weight: bold;
        color: #007BFF; 
        padding: 0 8px; 
        border: 2px solid #007BFF; 
        border-radius: 8px; 
    }

    .div1 {
        background-color: #f0f8ff; 
        padding: 20px; 
        margin-bottom: 30px; 
        border: 2px solid #007BFF; 
        visibility: hidden;
    }



.image-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-direction: row; /* Default: horizontal */
    flex-wrap: wrap; /* Allows wrapping if needed */
}

    .image-container img {
        border: 2px solid #ccc;
        border-radius: 8px;
        width: 200px;
        height: 200px;
    }


    /********************************/
 



    .containerc {
        display: flex;
        flex-direction: column;
        justify-content: flex-start; 
        align-items: center;
    }

    .boxc {
        width: 200px; 
        text-align: center;
    }




