@font-face {
    font-family: 'PPMondwest';
    src: url(01_images/01_theme/PPMondwest-Regular.otf) format('opentype');
}

@font-face {
    font-family: 'PixelOperator';
    src: url(01_images/01_theme/PixelOperator.otf) format('opentype');
    font-weight: normal;
    font-style: normal;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}



body {
    cursor: url('01_images/01_theme/vista.cur'), default !important;
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(01_images/01_theme/bg_cloud.png);
    background-size: cover;
    background-position: top center;
    background-attachment: fixed;
    background-repeat: repeat;
}

a, ul, div {cursor: url('01_images/01_theme/vista.cur'), default}
li {cursor: url('01_images/01_theme/pointer.cur'), pointer}

.page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    padding-top: 10px;
}

.page-header {
    width: 1400px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    font-family: PPMondwest, sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
    box-sizing: border-box;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    width: 60px;
    height: auto;
}

.header-title {
    font-size: 1.2em;
    color: #333;
    margin: 0;
}

.container {
    width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2%;
    background: rgba(255, 255, 255, 0.32);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: -0.5em;
    position: relative;
    z-index: 2;
    padding: 20px;
    height: auto;
    overflow-y: auto;
    max-height: 1200px;
}

.main-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content-window {
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

.sidebar {
    width: 20%;
    display: flex;
    flex-direction: column;
}

.sidebar.left .sidebar-logo {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto 1em auto;
    padding-top: 0.5em;
}

.sidebar.left {

}

.sidebar .window {
    width: 100%;
    margin-bottom: 1em;
}

.content-iframe {
    width: 100%;
    height: 600px;
    display: block;
}

#tree {
    z-index: 2;
    position: fixed;
    right: 2%;
    bottom: 6%;
}

.site-title {
    position: relative;
    margin-bottom: 10%;
}

.button {
    font-family: PPMondwest;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    color: transparent;
    display: inline-block;
    padding: 9px 16px;
    border-radius: 100px;
    position: relative;
    z-index: 0;
    background-image: linear-gradient(-180deg, #799FD4 0%, #748695 100%);
    box-shadow: 0 5px 2px -3px rgba(14, 97, 192, 0.19), 0 1px 1px 0 rgba(14, 97, 192, 0.19), 0 3px 9px 0 rgba(0, 128, 161, 0.33);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background-image 0.2s;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 10px -5px rgba(14, 97, 192, 0.3), 0 4px 4px 0 rgba(14, 97, 192, 0.4), 0 8px 15px 0 rgba(0, 128, 161, 0.6);
    text-decoration: none;
}

.button::after {
    content: "";
    display: block;
    background-image: linear-gradient(-180deg, #ABC9EC 0%, #76A9D7 100%);
    position: absolute;
    top: 1px;
    left: 8px;
    right: 8px;
    bottom: 50%;
    z-index: 2;
    border-radius: 100px;
    text-decoration: none;
}

.button > span {
    color: #213660;
    position: relative;
    z-index: 3;
    display: block;
    top: -1px;
    text-decoration: none;
}

.button::before {
    content: " ";
    display: block;
    position: absolute;
    z-index: -1;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    border-radius: 100px;
    background-image: linear-gradient(-180deg, #689DD3 50%, #BAE3F6 100%);
    box-shadow: inset 0 0 1px rgba(42, 128, 226, 0.5), inset 0 0 12px 2px rgba(255, 255, 255, 0.21);
    text-decoration: none;
}

.own_window {
    width: auto;
    height: auto;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(22px) saturate(1.8);
    -webkit-backdrop-filter: blur(22px) saturate(1.8);
    background-color: rgba(255, 255, 255, 0.05);
    background-image: radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 50%);
    border-radius: 12px;
    border: none;
    box-shadow: inset 1px 1px 1px rgba(255, 255, 255, 0.5), inset -1px -1px 2px rgba(141, 227, 252, 0.4), 0 15px 35px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 10px;
}

.own_window::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 40%);
    pointer-events: none;
}

.text-menu {
    margin-top: 1em;
}

.web-buttons {
    margin-top: 5px;
    
}

.sidebar-logo {
    position: relative;
    align-self: center;
    border-width: 4px;
    margin-top: 1px;
}



[role="menuitem"] {
    position: relative;
    display: block; 
}


.preview-image {
    
    visibility: hidden; 
    opacity: 0; 
    position: absolute; 
    top: 0;
    left: 100%;
    margin-left: 200px;
    margin-top:65px;
    z-index: 100;
    width: auto;
    height: auto;
    max-height: 300px;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    border: 5px;
    border-style: ridge;
    border-radius: 5px;
    pointer-events: none;
    
}


[role="menuitem"]:hover .preview-image {
    visibility: visible;
    opacity: 1;
}

.phone-window {
    position: relative;
    width: 150px;
    height: 500px;
    background-image: url(01_images/01_theme/phone.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: auto;
}

.phone-content {
    position: absolute;
    width: 54%;
    height: 20%;
    top: 31%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-image: url('01_images/01_theme/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.phone-menu {
    list-style: none;
    margin: 0;
    padding: 10px;
    font-family: 'PixelOperator', serif;
    font-size: 13px;
    font-weight: 400;
    color: #fff;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.phone-menu li {
    margin: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.phone-menu li:last-child {
    border-bottom: none;
}

.phone-menu a {
    color: #fff;
    text-decoration: none;
    padding: 5px 25px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    background-color: rgba(0, 123, 255, 0.1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5), -1px -1px 2px rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    position: relative;
}

.phone-menu a:hover,
.phone-menu a.active {
    background-image: linear-gradient(-180deg, rgba(74, 144, 226, 0.8) 0%, rgba(50, 106, 171, 0.8) 100%);
    text-decoration: none;
    color: #fff;
    box-shadow: 0 5px 2px -3px rgba(14, 97, 192, 0.19), 0 1px 1px 0 rgba(14, 97, 192, 0.19), 0 3px 9px 0 rgba(0, 128, 161, 0.33);
    transform: translateY(-2px);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6), -1px -1px 2px rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-image 0.3s ease;
}

.responsive-phone {
    display: none;
    position: relative;
    width: 300px;
    height: 600px;
    margin: auto;
    background-image: url(01_images/01_theme/phone.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 999;
}

.responsive-phone-content {
    position: absolute;
    width: 37%;
    height: 23%;
    top: 27.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    background-image: url('01_images/01_theme/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 3px;
    z-index: -1;
}

.responsive-phone-menu {
    list-style: none;
    margin: 0;
    padding: 5px;
    font-family: 'PixelOperator', Arial, sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.responsive-phone-menu li {
    margin: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.responsive-phone-menu li:last-child {
    border-bottom: none;
}

.responsive-phone-menu a {
    color: #fff;
    text-decoration: none;
    padding: 5px 50px;
    background-color: rgba(0, 123, 255, 0.1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5), -1px -1px 2px rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.responsive-phone-menu a:hover {
    background-image: linear-gradient(-180deg, rgba(74, 144, 226, 0.8) 0%, rgba(50, 106, 171, 0.8) 100%);
    color: #fff;
    box-shadow: 0 5px 2px -3px rgba(14, 97, 192, 0.19), 0 1px 1px 0 rgba(14, 97, 192, 0.19), 0 3px 9px 0 rgba(0, 128, 161, 0.33);
    transform: translateY(-2px);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6), -1px -1px 2px rgba(255, 255, 255, 0.7);
}

#info-window {
    font-family: 'Tahoma', Arial, sans-serif;
    font-size: 14px;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    background-color: #fff;
    border: 1px solid #000;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#info-window.show {
    display: block;
    opacity: 1;
}

#info-window.hide {
    opacity: 0;
    pointer-events: none;
}

#text-window {
    font-family: 'Tahoma', Arial, sans-serif;
    font-size: 14px;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    background-color: #fff;
    border: 1px solid #000;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#text-window.show {
    display: block;
    opacity: 1;
}

#text-window.hide {
    opacity: 0;
    pointer-events: none;
}

#popup-handy {
    padding: 20px;
}

#works-window{
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 360px);
  background: #fff;
  border: 1px solid #000;
  z-index: 1000;
  opacity: 0;
  transition: opacity .25s ease;
}
#works-window.show { display: block; opacity: 1; }
#works-window.hide { opacity: 0; pointer-events: none; }


.work-list{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px 14px;
  list-style:none;
  margin:0;
  padding:6px;
}
.work-list li{ margin:0; }

.work-list a{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
  color:#000;
  padding:10px 6px;
  border-radius:8px;
  min-height:120px;           
  outline:none;
}


.work-list a img{
  width:64px;
  height:64px;
  object-fit:contain;
  display:block;
}


.work-list a span{
  text-align:center;
  font-size:14px;
  line-height:1.2;
  max-width:100%;
  word-wrap:break-word;
}


.work-list a:hover{
  background:rgba(0,0,0,.06);
}
.work-list a:focus{
  box-shadow:0 0 0 2px rgba(0,123,255,.35) inset;
  background:rgba(0,0,0,.04);
}


@media (max-width:420px){
  .work-list{
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap:10px 12px;
  }
  .work-list a{
    min-height:110px;
    padding:8px 4px;
  }
  .work-list a img{
    width:56px; height:56px;
  }
  .work-list a span{
    font-size:13px;
  }
}



@media (max-width: 1024px) {
    body, html {
        overflow: hidden;
        height: 100%;
    }

    .page-header {
        display: none;
    }

    .container, #tree {
        display: none;
    }

    .responsive-phone {
        display: block;
    }
}
