@charset "utf-8";
/* CSS Document */
        body, html {
            margin: 0;
            padding: 0;
            font-family: 'IBM Plex Mono', monospace;
            background-color: rgba(26, 11, 11, 1);
        }


        .header {
            position: fixed;
            top: 0;
            width: 100%;
            background-color: rgba(26, 11, 11, 0.2);
            z-index: 1000;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
        }

        .logo {
            font-size: 30px;
            font-weight: bold;
            color: #88ff00;
            padding-left: 30px;
        }

        .menu {
            list-style: none;
            display: flex;
            margin: 0;
            padding: 0;
            z-index: 999; /* Add this */    
			margin-right: 10px;
        }
		
		.menu a {
   		text-decoration: none;
    	color: #b3b3b3;
		}

        .menu li {
            margin-right: 20px;
            cursor: pointer;
            color: #b3b3b3;
        }

        .menu-toggle {
            display: none;
            margin-right: 30px;
            cursor: pointer;
            color: #b3b3b3;
            font-size: 20px;
            z-index: 1001;
        }

        .content {
            display: flex;
            justify-content: center;
            align-items: center;
          /*  height: 100vh;*/
            padding-top: 60px;
        }

        .hello {
            display: block;
            font-size: 1.15em;
            z-index: 950;
            position: relative;
        }

        .image-block {
            aspect-ratio: 1 / 1;
            background-image: url('/images/square_1.gif');
            background-size: cover;
            background-position: center;
            z-index: 950;
            position: relative;
        }
		
		.webgl-block {
    width: min(75vmin, 800px); /* ограничение по ширине */
    height: min(75vmin, 800px); /* ограничение по высоте */
    margin: 10px; /* Отступы, как и у предыдущего блока */
    max-width: 750px; /* Ограничивает максимальную ширину */
    position: relative; /* Позиционирование относительно его нормального потока */
 
}

/* Дополнительные стили для адаптации к различным размерам экрана */
@media screen and (max-width: 768px) {
    .webgl-block {
        width: 90vw; /* Изменяет ширину блока на 90% от ширины вьюпорта */
        height: auto; /* Высота автоматически корректируется для поддержания содержимого */
        aspect-ratio: 1 / 1; /* Поддерживает квадратное аспектное соотношение */
        margin-top: 80px; /* Увеличенный отступ сверху */
    }
}

        .block {
            width: 75vmin;
            aspect-ratio: 1 / 1;
            margin: 10px;
            text-align: left;
            color: #b3b3b3;
            padding: 10px;
            max-width: 750px;
        }

        @media screen and (max-width: 768px) {
            .menu {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100vh;
                z-index: 1000;
                flex-direction: column;
                background-color: rgba(26, 11, 11, 0.8);
                justify-content: center;
            }

            .menu li {
                margin: 10px 0;
                text-align: center;
            }
			
			.logo {
    	    font-size: 20px;
     	   	padding-left: 10px;
    		}
			
			.menu a{
    	    color: #b3b3b3;
    	    text-decoration: none;
    	    display: block;
    	    padding: 1;
 
   			 }
			
			.logo a{
            font-size: 20px;
            font-weight: bold;
            color: #88ff00;
			text-decoration: none;
			padding: 10px;
       		 }
	
            .menu-toggle {
                display: block;
            }

            .content {
                flex-direction: column;
				 justify-content: flex-start;          
			            height:auto;
            padding-top: 0px;
			}

            .block {
 				overflow-y: visible; 
				aspect-ratio: auto;
     			max-height: none;     
                margin-top: 80px;
            }
			
			.image-block {
				margin-top: 10px;
				aspect-ratio: 1 / 1;
				

        }
        }
