@font-face {
    font-family: 'Rokkitt';
    src: url('/styles/fonts/Rokkitt-VariableFont_wght.ttf');
}

@font-face {
  font-family: "Rokkitt";
  src: url("/styles/fonts/Rokkitt-Regular.ttf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Rokkitt";
  src: url("/styles/fonts/Rokkitt-Bold.ttf");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Rokkitt";
  src: url("/styles/fonts/Rokkitt-Light.ttf");
  font-weight: normal;
  font-style: italic;
}

/* ============================================================================
   COLOR PALETTE - Matching index.css gradient theme
   ============================================================================ */
:root {
    --primary-purple: #667eea;
    --primary-purple-hover: #5568d3;
    --primary-purple-light: #764ba2;
    --purple-gradient-1: #667eea;
    --purple-gradient-2: #764ba2;
    --purple-gradient-3: #f093fb;
    --blue-gradient-1: #4facfe;
    --blue-gradient-2: #00f2fe;
    --dark-bg: rgba(30, 30, 40, 0.95);
    --dark-bg-secondary: rgba(40, 40, 55, 0.95);
    --dark-bg-tertiary: rgba(50, 50, 65, 0.95);
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --text-muted: #9ca3af;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-dark: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(102, 126, 234, 0.2);
    --shadow-lg: 0 8px 24px rgba(102, 126, 234, 0.3);
}

/* width */
::-webkit-scrollbar {
    width: 8px;
}
/* Track */
::-webkit-scrollbar-track {
    background: var(--dark-bg-secondary); 
} 
/* Handle */
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-light) 100%); 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-purple-hover) 0%, var(--primary-purple) 100%);
}
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: var(--text-muted);
  font-weight:300;
  font-size:16px;
}
::-moz-placeholder { /* Firefox 19+ */
  color: var(--text-muted);
  font-weight:300;
}
:-moz-placeholder { /* Firefox 18- */
  color: var(--text-muted);
  font-weight:300;
}
a:link{
color: var(--primary-purple);
text-decoration:none;
transition: color 0.3s ease;
-webkit-transition: color 0.3s ease;
}
a:visited {
color: var(--primary-purple);
text-decoration:none;
transition: color 0.3s ease;
-webkit-transition: color 0.3s ease;
}
a:hover{
color: var(--primary-purple-hover);
text-decoration:underline;
}
a:active{
color: var(--primary-purple-hover);
text-decoration:underline;
}

a.alt:link{
color: var(--text-muted);
text-decoration:none;
transition: color 0.3s ease;
-webkit-transition: color 0.3s ease;
}
a.alt:visited {
color: var(--text-muted);
text-decoration:none;
transition: color 0.3s ease;
-webkit-transition: color 0.3s ease;
}
a.alt:active{
color: var(--text-dark);
}
a.alt:hover {
color: var(--text-dark);
}
html,
body {
margin:0;
padding:0;
height:100%;
}
body{
background-color: var(--white);
text-align:center;
font-family: 'Rokkitt', sans-serif;
font-size:18px;
color: var(--text-dark);
margin-bottom: 150px;
}
h1 {
    font-weight: 700;
    font-size: 32px;
    color: var(--text-dark);
    text-align: center;
    margin: 25px auto 40px auto;
    border-bottom: 3px solid var(--primary-purple);
    padding: 15px 10px 12px 10px;
    box-shadow: none;
    letter-spacing: 1px;
    text-shadow: none;
    max-width: 600px;
    font-family: 'Rokkitt', sans-serif;
}

h2, h3 {
    text-align: center;
    color: var(--text-dark);
}

h4 {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text-dark);
    margin: 30px 0 20px 0;
    padding: 15px 0;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    text-align: center;
    letter-spacing: -0.3px;
}
img, video{
	max-width:100%
}

/*-----------------------------------------------------------------------------------*/
/* MENU STYLES */
/*-----------------------------------------------------------------------------------*/
#burgermenu {
    position: fixed;
    right: 15px;
    top: 15px;
    display: none;
    cursor: pointer;
    z-index: 11;
    border-bottom-left-radius: 6px;
    background: var(--dark-bg-secondary);
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    object-fit: contain;
}

#burgermenu:hover {
    background: var(--dark-bg-tertiary);
    transform: scale(1.05);
}
#leftmenu {
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--dark-bg-secondary);
    z-index: 9;
    box-shadow: var(--shadow-md);
    max-height: 100vh;
    overflow-y: auto;
    padding-right: 5px;
}
    #leftmenu-logo {
     width: 80%;
     max-width: 170px;
        margin-top: 20px;
        transition: all 0.3s ease;
        opacity: 1;
    }
    
    #leftmenu-logo:hover {
        opacity: 0.9;
        transform: scale(1.05);
    }
	#menuiskalnik{
		width: 20px;
		display: block;
		cursor: pointer;
		margin-left: 5px;
		opacity: 0.5;
	}
    .leftmenu-element{
    	display: block;
        margin: 7px 6px;
        padding: 8px;
        font-size: 17px;
        font-weight: 400;
        text-align: left;
        color: var(--white);
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    .leftmenu-element a {
        color: var(--white) !important;
    }
    .leftmenu-element:hover {
        background-color: var(--dark-bg-tertiary);
        color: var(--primary-purple);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    }
    .leftmenu-element:hover a {
        color: var(--primary-purple) !important;
    }
    .menielement {
        padding: 8px;
        margin: 5px;
        text-align: left;
        color: var(--white);
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    .menielement:hover {
        background-color: var(--dark-bg-tertiary);
        color: var(--primary-purple);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    }
    /* Make all links inside menu white */
    #leftmenu a.alt {
        color: var(--white) !important;
    }
    #leftmenu a.alt:hover {
        color: var(--primary-purple) !important;
    }
    #leftmenu a.alt:visited {
        color: var(--white) !important;
    }
    #leftmenu a.alt:active {
        color: var(--primary-purple) !important;
    }
    .menielement-skrit{
    	display:none;
        margin: 4px 4px;
        padding: 4px;
        font-size: 15px;
        font-weight: 400;
        text-align: left;
        color: var(--white);
    }
    .menielement-skrit a.alt {
        color: var(--white) !important;
    }
    .menielement-skrit a.alt:hover {
        color: var(--primary-purple) !important;
    }
    .triangle{
        display: inline;
        transition: transform 0.3s ease;
        color: rgba(255, 255, 255, 0.6);
    }
    
    .menielement-vec:hover .triangle {
        transform: rotate(90deg);
        color: rgba(255, 255, 255, 1);
    }

.iskalnikholder {
    display: block;
    line-height: 28px;
    align-items: center;
    position: relative;
    max-width: 230px;
    margin: 15px 10px;
}

.iskalnik {
    width: 100%;
    height: 40px;
    line-height: 28px;
    padding: 0 1rem;
    padding-left: 10px;
    border: 2px solid transparent;
    border-radius: 8px;
    outline: none;
    background-color: var(--dark-bg-tertiary);
    color: var(--white);
    transition: all 0.3s ease;
}

.iskalnik::placeholder {
 color: var(--text-muted);
}

.iskalnik:focus, input:hover {
 outline: none;
 border-color: var(--primary-purple);
 background-color: var(--dark-bg-tertiary);
 box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

#leftmenu::-webkit-scrollbar {
    width: 6px;
}

#leftmenu::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

#leftmenu::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-light) 100%);
    border-radius: 3px;
}

/*-----------------------------------------------------------------------------------*/
/* FOOTER */
/*-----------------------------------------------------------------------------------*/
#footer.local{
    background-color: rgb(0, 170, 255) !important;
}
#footer.staging{
    background-color: rgb(0, 255, 89) !important;
}
#footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--dark-bg);
    color: var(--white);
    vertical-align: middle;
    padding: 10px;
    padding-left: 6%;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

/*-----------------------------------------------------------------------------------*/
/* MAIN SCREEN */
/*-----------------------------------------------------------------------------------*/
#mainscreen {
    max-width: 1400px;
    width: 90%;
    margin: auto;
    margin-left: 20%;
    text-align: center;
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
}

@media screen and (max-width: 1700px) {
    #mainscreen {
        width: 75%;
        margin-left: 20%;
    }
}
@media screen and (max-width: 1400px) {
    #mainscreen {
        width: 79%;
        margin-left: 20%;
    }
}
@media screen and (max-width: 1250px) {
    #mainscreen {
        width: 75%;
        margin-left: 24%;
    }
}
@media screen and (max-width: 1045px) {
    #mainscreen {
        width: 70%;
        margin-left: 27%;
    }
}
@media screen and (max-width: 980px) {
    h4{
        text-align: center;
    }
	h1 {
        text-align: center;
        border-bottom: 3px solid var(--primary-purple);
        margin: 20px auto;
        max-width: 90%;
        padding-bottom: 20px;
	}
    #leftmenu-logo {
        max-width: 100px;
        margin-top: 10px;
    }
    #burgermenu {
        display: block !important;
    }
    #mainscreen {
        margin: auto;
        width: 95%;
        max-width: 100vw;
        overflow-x: hidden;
        margin-left: 0 !important;
    }
    #leftmenu {
        width: 270px;
        left: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 10;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }
    #leftmenu.active {
        transform: translateX(0);
    }
    
    /* Overlay when menu is open */
    #leftmenu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    .menielement{
        padding: 8px;
    }
 
    #footer {
        padding-left: 0;
		font-size: 12px;
    }
    
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Ensure all content stays within viewport */
    * {
        box-sizing: border-box;
    }
}
