﻿@font-face {
    font-family: 'inconsolata';
    src: url('inconsolata.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'segoe';
    src: url('segoe-ui-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --main-bg-color: black;
    --bg-color-grey: #444;
    --main-txt-color: #aaaaaa; 
    --navbar-height: 66px;
    --navlink-height: 50px;
    --navlink-width: 74px;
    /* --default-font: Segoe; */
    --default-font: sans-serif;
    --telegram-logo-size: 19px;
}

body {
    margin: 0px;
    overflow: hidden;
    background-color: var(--main-bg-color);
    color:var(--main-txt-color);
    font-family: 'Open Sans', sans-serif;
    font-family: Segoe;
    font-size: 13px;
    font-weight: normal;

}

iframe {
    border:0;
    width:100%;
    height:100%;
}



.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                          supported by Chrome and Opera */
}

/* <section>
    <h1>Красиво выровнен по центру</h1>
    <p>Этот текстовый блок выровнен вертикально по центру.
    <p>И горизонтально, если окно достаточно широкое.
  </section> */
/* section {
    background: black;
    color: white;
    border-radius: 1em;
    padding: 1em;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%) 
} */

#logo {
    margin: 0;
    height: var(--navbar-height);
    width:155px;
    min-width: 155px;  
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center; 
    text-transform: uppercase;
}

#logocontent {
    color: var(--main-txt-color);
    font-family: var(--default-font);
    font-size: 14px;
    font-weight: normal;
}

#menu {
    height: var(--navbar-height);
    width: 100px;    

    font-family: var(--default-font);
    font-size: 11px;
    text-align: center;
    font-weight: normal;
    text-transform: uppercase;

    color: var(--main-txt-color);
    background-color: black;
    display: flex;
    justify-content: space-evenly;
    align-content: space-around;
    -webkit-flex-direction: column;
    flex-direction: column;
    margin-right: 8px;
}

.menubutton {
    width: 100px;
    height: 100%;    
    display: flex;    
    justify-content: start;
}

.menubutton_mob {
    display: none;
}

.menubutton div {
    padding-left: 15px;
    align-self: center;
    padding-bottom: 0px;
}

.menubutton:hover {
    cursor: pointer;
    color: #ffffff;
}

.menu_button_selected {
    background-color: var(--bg-color-grey);
    color: #ffffff;
    font-weight: 600;
}

#navbar {

	/* width: auto; */
	height: var(--navbar-height);
    /* overflow: hidden; */
    background-color: var(--bg-color-grey);

    display: flex;
    /* justify-content: flex-start; */
    justify-content: stretch;
    align-items: center;
}

#navlinksblock {
    display: flex;
    align-items: center;
    position: relative;
    overflow-x: auto ;
    overflow-y: hidden;
    width: auto;
    height: var(--navbar-height);
}

.navlinksblock_sub {
    margin-left: 0px;
    /* display: inline-flex; */

    flex-basis: auto;
    display: flex;
    flex-direction: row;
}

/* #navlinksblock_lab {
    display: flex;
}
#navlinksblock_projects {
    display: flex;
} */


#contact {
    right: 0px;
    width: 120px;
    height: 100%;
    /* background-color: #000; */
    margin-left: auto;
    min-width: 120px;
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    align-items: center;
    /* padding: 0px 5px; */
}

#contact div {
    width: 100%;
    margin: 10px 5px;
    text-align: center;
}
#contact #a {
    margin-left: 20px;
}
#contact #b {
    margin-right: 20px;
}

/* .contactExtend {
    width: 180px;
    min-width: 180px;
}

#contactsPane {
    display: none;    
    height: var(--navbar-height);
    z-index: 1;    
} */

.visible{
    display: block;  
}

/* .telegram {
  display: block;
  width: var(--telegram-logo-size);
  height: var(--telegram-logo-size);
  background: url(icons8-telegram-app.svg) no-repeat;
  background-size: var(--telegram-logo-size) var(--telegram-logo-size);

}

.telegram:hover {
    display: block;
    width: var(--telegram-logo-size);
    height: var(--telegram-logo-size);
    background: url(icons8-telegram-app_white.svg) no-repeat;
    background-size: var(--telegram-logo-size) var(--telegram-logo-size);

} */

.pointer:hover {
    cursor: pointer;
    color: #ffffff;
}

.highlight {
    background-color: #aaaaaa;
    color: #333333;
    cursor: text;
    
}

/* .ps__rail-x,
.ps__rail-y {
    opacity: 0.8;
} */

img {
    border:0;
    width:100%;
    height:100%;
    margin: 0px;
    padding: 0px;
}

.navlink {
    width: var(--navlink-width);
    height: var(--navlink-height);
	position: relative;
	float: left;
    margin-right: 4px;
    border: #444444;
    border-style: solid;
    border-width: 1px;
	cursor: pointer;
    overflow: hidden;
    background-color: #000;
    /* opacity: 1; */

    /* flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto; */
    /* transition: all 1s; */
}

.collapse {
    /* flex-grow: 0.001; */
    /* width: 0px; */
}

.navlink-shrink {
    max-width: 0px;
    transition: max-width 1s;
}
.navlink-expand {
    max-width: 80px;
    transition: max-width 1s;
}

.navlink img {
    opacity: 0.8;
}

.bgImage:hover {
    opacity: 1;
    transition: opacity 0.3s;
    border: #ffffff;
}

.navlink:hover {
    opacity: 1;
    border: #ffffff;
    border-style: solid;
    border-width: 1px;    
}

.opaque {
    opacity: 1 !important;
}

.selected {
    /* opacity: 1; */
    border: #ffffff;
    border-style: solid;
    border-width: 2px;
}
.selected:hover {
    /* opacity: 1; */
    border: #ffffff;
    border-style: solid;
    border-width: 2px;
}

.hidden {
    display: none;
}

#clipboardButton {
    cursor: pointer;
}

.navlink > div {
  opacity: .6;
  border: 1px solid #707070;
  transition: .3s opacity;
}

.navlink.selected > div {
  opacity: 1;
  border: 1px solid #fff;
}

.navlink:not(.selected) > div:hover {
  opacity: 1;
}

#mainview {
	position: absolute;
    width: 100%;    
	top: var(--navbar-height);
	bottom: 0px;
}

a {
    text-decoration: none;
  }

  a:link {
    color: #bbbbbb;
  }
  a:visited {
    color: #aaaaaa;
  }
  a:hover {
    color: #ffffff;
  }



.tooltip {
    /* position: relative;
    display: inline-block;
    border-bottom: 1px dotted black; */
}

.tooltiptext {
    font-family: var(--default-font);
    font-size: 11px;
    font-weight: regular;

    visibility: hidden;
    width: 120px;
    background-color: rgba(0, 0, 0, 0.3);    
    color: #fff;
    text-align: center;
    border-radius: 0px;
    padding: 2px 0;
    position: absolute;
    z-index: 100;
    top: 0%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

/* .tooltip  */
/* .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
} */

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.tooltip-active {
    visibility: visible;
    opacity: 1;
}

#minimizebutton {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 20px;
    z-index: 2;
}

@media all and ( max-width: 640px ) {	

    body {
        overflow: visible;
    }

    #navbar {
        background-color: #000;
    }

    #logo {
        width: 140px;
        min-width: 140px;
    }
    /* #logocontent {
        color: var(--main-txt-color);
        font-family: var(--default-font);
        font-size: 12px;
        font-weight: normal;
    } */

	#menu {
         width: 90px;
         margin-right: 0px;
         display: flex;
         flex-direction: row;
         justify-content: center;
         align-content: center;
         /* font-weight: 400; */
    }   

    .menubutton {
        /* width: 90px;   */
        display: flex;
        justify-content: center;
        padding: 0px 5px;
    }
    .menubutton div {
        align-self: center;
        padding-left: 0px;       
    }

    /* .menubutton_mob {
        display: block;
        height: 100%;    
        display: flex;    
        justify-content: start;
    }
    .menubutton_mob div {
        padding-left: 10px;
        padding-right: 10px;
        align-self: center;
        padding-bottom: 0px;
        font-size: 11px;
    } */

    #contact { 
        background-color: #000;
        width: 80px;
        min-width: 80px;
        /* margin: auto; */
    }
    #contact div {
        /* margin: auto; */
    }
    #contact #a {
        margin-left: 5px;
    }
    #contact #b {
        margin-right: 20px;
    }

    .collapsed { 
        display: none !important;
    }

    /* .menu_button_selected { 
        display: none !important;
    } */

    .hidden {
        display: none !important;
    } 
        
    /* #navlinksblock .hidden {
		display: none;
    } */

	#navlinksblock {
        display: flex;    
        flex-direction: column;
        flex-wrap:nowrap;
		position: absolute;
		background: rgba(0,0,0,0.85);
		top: 66px;
		bottom: 0px;
		height: 100%;
		overflow: visible;
		z-index: 2;
		width: 100vw;
    }
    
    .navlinksblock_sub {
        /* margin-left: 0px; */
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-content: flex-start;
        /* top: 0px; */
        overflow: visible;
        padding-top: 10px;

        /* height: 100%; */
    }

    /* #navlinksblock_lab {
        display: flex;
    }
    #navlinksblock_projects {
        display: flex;
    } */

	.navlink {
        width: var(--navlink-width);
        height: var(--navlink-height);
        /* position: relative; */
        /* float: left; */
        margin: 20px;
        border: #444444;
        border-style: solid;
        border-width: 1px;
        cursor: pointer;
        overflow: hidden;
        opacity: 0.7;    
        align-self: flex-start;
        /* flex: 1 1 auto;		 */
        /* z-index: 2; */
	}

    .selected {
        opacity: 1;
        border: #dddddd;
        border-style: solid;
        border-width: 1px;
    }

	/* #expand {
		display: block;
    }
    
    #expand span {
		display: block;
		} */

	/* #viewer {
		z-index: 1;
    } */
    

    .tooltiptext {            
        visibility: visible;        
        opacity: 1;
        /* font-size: 9px;
        font-weight: bold; */
        /* z-index: 10; */
    }

    .ps {
        overflow: visible ;
        /* overflow-anchor: */
        /* -ms-overflow-style:  */
        touch-action: auto;
        -ms-touch-action: auto;
      }
      
      /*
       * Scrollbar rail styles
       */
      .ps__rail-x {
        display: none;
        opacity: 0;
        transition: background-color .2s linear, opacity .2s linear;
        -webkit-transition: background-color .2s linear, opacity .2s linear;
        height: 6px;
        /* there must be 'bottom' or 'top' for ps__rail-x */
        bottom: 0px;
        /* please don't change 'position' */
        position: absolute;
      }
      
      .ps__rail-y {
        display: none;
        opacity: 0;
        transition: background-color .2s linear, opacity .2s linear;
        -webkit-transition: background-color .2s linear, opacity .2s linear;
        width: 6px;
        /* there must be 'right' or 'left' for ps__rail-y */
        right: 0;
        /* please don't change 'position' */
        position: absolute;
      }

}
