﻿@font-face {
    font-family: 'Consolas LF';
    src: url('/fonts/Consolas.otf') format('opentype');
    src: url('/fonts/Consolas Bold Italic.otf') format('opentype');
    src: url('/fonts/Consolas Bold.otf') format('opentype');
    src: url('/fonts/Consolas Italic.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/*Кнопкм навигации*/

/*Активная стр*/
.navButton-active {
    color: rgba(255, 255, 255, 0.644);
    font-size: 28px;
    font-weight: bold;
    padding: 10px;
    margin:0px;
    border: none;
    border-radius: 999px;
    width: min-content;
    height: 50px;
    touch-action:none;
    cursor:unset;
    transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/*Неактивная стр*/
.navButton{
    display:flex;
    justify-content:center;
	align-items: center;

    color: #3f3f3f79;
    font-size: 28px;
    font-weight: bold;
    padding: 15px;
    margin:0px;
    background: none;
    border: none;
    border-radius: 999px;

    width: min-content;
    height: 50px;
    transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.navButton:hover {
	color: rgba(255, 255, 255, 0.644);
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid #0000004b;
	text-decoration: none;
	cursor: pointer;
}

.navButton:hover::after, 
.navButton:hover::before{
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    pointer-events: none;
    transition: transform 0.3s;
    transition: box-shadow 0.3s;
}

/*Мини кнопки нав*/
.miniNavButton {
    display:none;
    justify-content:center;
	align-items: center;
    border: 1px solid #0000004b;
    font-size: 28px;
    font-weight: bold;
    border-radius: 999px;
    
    
    color: #3f3f3f79;
    font-size: 28px;
    font-weight: bold;
    padding: 15px;
    margin:0px;
    background: none;
    border: none;
    border-radius: 999px;

    width: 50px;
    height: 50px;

	outline: none;
    transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;

    &:hover,
    &:focus {
    	color: rgba(255, 255, 255, 0.644);
    	box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    	background: rgba(255, 255, 255, 0.2);
    	border: 1px solid #0000004b;
    	text-decoration: none;
    	cursor: pointer;
    }

    .miniNavButton:hover::after, 
    .miniNavButton:hover::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        opacity: 0.5;
        border-radius: 999px;
        width: 65px;
        height: 65px;
        background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.5));
        transform: translate(-50%, -50%) scale(0);
        transition: transform 0s 1.3s;
        z-index: 0;
    }
}

.navButtonEdit {
    display:flex;
    justify-content:center;
	align-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    margin:0px;
    border-radius: 50%;
    border: 1px solid #0000004b;
    background: rgba(255, 255, 255, 0.12);
    color: #3f3f3f79;
    outline: none;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.navButtonEdit img{
    width: 60%;
    height: 60%;
    pointer-events: none;
}

.navButtonEdit:hover,
.navButtonEdit:focus{
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
    transform: translateY(-1px);
}

.miniNavButton-active {
    display:none;
    justify-content:center;
	align-items: center;
    
    color: rgba(255, 255, 255, 0.644);
    font-size: 28px;
    font-weight: bold;
    padding: 10px;
    margin:0px;
    border: none;
    border-radius: 999px;
    
    font-size: 28px;
    font-weight: bold;
    padding: 15px;
    margin:0px;
    border-radius: 999px;

    width: 50px;
    height: 50px;

	outline: none;
    
    touch-action:none;
    cursor:unset;
    transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

body {
    display: grid;
    place-items: center;

    user-select: none;
    background-attachment: fixed;
    background-color: rgb(237, 237, 237);
    font-family: 'Consolas LF', arial;
}

.navBarMenu {
    position: fixed;

    top: 0px;

    left: 50%;
    transform: translateX(-50%);

    width: max-content;
    max-width: 100%; 
    padding: 5px 10px;

    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;

    border-radius: 999px;
    z-index: 99999;
    transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, backdrop-filter 0.35s ease;
}


.navBarMenuLogoSiteNavBar {
    display:flex;
    justify-content:center;
	align-items: center;
    perspective: 1000px;
    font-size: 28px;
    
    width: 140px;
    height: 50px;

    border-radius: 999px;
    backdrop-filter: blur(2px);
    background: rgba(85, 85, 85, 0.2);
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.708);
    border: 1px solid #888;
    color: #00000079;

    font: bold 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.navBarMenuButtons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    font-size: 28px;
    height: 50px;
    border-radius: 999px;
    backdrop-filter: blur(7px);
    background: rgba(85, 85, 85, 0.2);
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.708);
    color: #00000079;
    border: 1px solid #888;
    left: 0px;
    transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

/* Навбар на планшетах / телефонах */
@media (max-width:850px) {

    .navBarMenu {
        left:50%;
        font-size: 22px;
        gap: 10px;
    }

    .navBarMenuButtons {
        gap: 8px;
    }
    .navBarMenuLogoSiteNavBar {
        display:flex;
    }

	.navBarMenu {
		left: 50%;
		top: -0px;
	}
    .navBarMenu {
        left:50%;
        font-size: 22px;
        gap: 10px;
    }

    .navBarMenuButtons {
        gap: 8px;
    }
    .navButton{
        display:none;
    }
    .navButton-active{
        display: none;
    }
    .miniNavButton{
        display: flex;
    }
    .miniNavButton-active{
        display: flex;
    }
}
@media (max-width:550px) {
    .navBarMenuLogoSiteNavBar {
        display:none;
    }
}

/* плавный переход при навигации */
#navFadeOverlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 99998;
}
body.nav-fade-active #navFadeOverlay{
    opacity: 1;
}
