
/* General page settings */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f6f8;
}

/* Top navigation bar */
.top-menu {
    display: flex;
    align-items: center;
    background: #243447;
    height: 50px;
    padding: 0 15px;
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* Main menu links and dropdown button */
.top-menu a,
.dropbtn {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px;
    font-size: 15px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Hover effect */
.top-menu a:hover,
.dropbtn:hover {
    background: #40566e;
}

/* Dropdown parent */
.dropdown {
    position: relative;
    height: 100%;
}

/* Submenu */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    box-shadow: 0 4px 8px #0004;
    z-index: 10000;
}

/* Submenu links */
.dropdown-content a {
    color: #243447;
    padding: 12px 15px;
    white-space: nowrap;
}

/* Submenu hover */
.dropdown-content a:hover {
    background: #eee;
}

/* Display submenu */
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

/* Main page content */
.page-content {
    padding: 25px;
}
 * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;            
            background: #f5f5f5;
            /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
            min-height: 100vh;
            padding: 10px;
        }    
        
        h1 {
            color: #333;
        }
        .lang {
             font-size:large; 
            /*height:35px; 
            width:28%;
            border:1px solid #859; 
            border-radius:7px;*/
            cursor: pointer;
            padding: 10px 20px; 

            
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-bottom: 15px;
            flex-wrap: wrap;
        }        
        .language-buttons {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
        }
        
        
        fieldset{
            text-align:center; 
            font-size:x-large; 
            font-weight:bold; 
            border:none;            
        }
        .icon-menu-grid {
            display: grid;
            width:62%; 
            margin-left:18%;            
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            background-color:#0002; 
            border-radius: 10px;  
            /*margin-top: 20px;*/
        }
        .icon-menu-grid button {
            width: 100%;
            aspect-ratio: 1;
            max-width:120px; /*kupa added*/
            padding: 15px;
            background: #077;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .icon-menu-grid button:hover {
            background: #0aa;
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.2);
            
        }
        button{
        margin:15%;
        font-size:large
        }
        
        button:hover {
            background-color: #0aa;
        }
        input[name='language_code']{
            display:none;
            /* background-color: red; */
        }
        
        .main-title {
            text-align: center;
            color: #003;
            font-size: 2.5rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
            padding: 10px;
        }
        
            /* Grid Areas */
        .header-area {
            grid-column: 1;
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 15px;
            align-items: center;
        }
        
        .qr-image-size {
            width: 100px;      /* Exact width */
            height: 100px;     /* Exact height */
            object-fit: contain; /* Keeps aspect ratio */
        }/* Responsive QR image */
        .qr-responsive {
            width: 100%;           /* Takes full width of container */
            max-width: 300px;      /* But never exceeds 300px */
            height: auto;          /* Maintain aspect ratio */
            justify-self: center;  /* Center in grid cell */
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            padding: 10px;
            background: white;
            box-shadow: 0 3px 8px rgba(0,0,0,0.1);
        }
        #menu_btn{
            background-color:#077;
            color:#fff; 
            font-size:large; 
            border-radius:7px; 
            height:40px; 
        }
        #menu_btn:hover{
            background:radial-gradient(#f00f, #000);
            transform: scale(1.3);
            cursor:pointer;
        }
        #system_title{
            place-items: center;
            border:1px solid #859; 
            width: 64%; 
            margin-left:18%; 
            text-align:center; 
            font-size:larger; 
            border-radius: 8px;
            /* background-color:#ff0 */
            padding:10px
        }
        
        .guide_line_zoom:hover{
            transform:scale(1.5);
            transition:3s;
        }
        .origin100perc:hover{
            transform-origin: 100%;
        }
        .origin0perc:hover{
            transform-origin: 0%;
        }
        
