/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your HTML content. To learn how to do something, just try searching Google for questions like "how to change link color." */ @font-face { font-family: DejaVuMono; /* Гарнитура шрифта */ src: url(DejaVuSansMono.ttf); /* Путь к файлу со шрифтом */ font-weight: bold; } body { color: #F4F0E8; font-family: "DejaVuMono", "Lucida Console", "Helvetica", monospace; background:url(grid.png) repeat #000; font-size: 14px; font-weight:bold; line-height: 120%; } .my-div { display: none; } a#dot { text-decoration: none; /* Убираем подчеркивание */ border-bottom: 1px dashed #E3E389; /* Добавляем свою линию */ line-height: 1.3em; display: inline-block; } a#dot:hover { color: #F3F3CF!important; /* Цвет ссылки при наведении на нее курсора */ } a { color: #E3E389; } a:hover { color: #F3F3CF; } a:visited, a:link, a:active { color: #E3E389!important; text-decoration: none; } /* Mozilla based browsers */ ::-moz-selection { background-color: #000000; color: #C1B492; } /* Works in Safari */ ::selection { background-color: #000000; color: #C1B492; } /* Works in Opera */ ::-o-selection { background-color: #000000; color: #C1B492; } ::-ms-selection { background-color: #000000; color: #C1B492; } /* Works in Internet Explorer */ ::-webkit-selection { background-color: #000000; color: #C1B492; } main { background:#000; margin: 20px 5px 20px 5px; padding: 20px; width:800px; height:600px; box-shadow: 0px 5px 10px #000000; overflow:auto; display:block; } .grid { position:fixed; z-index:100; display:block; background:url('grid.png') repeat top; } .modalDialog { position: fixed; font-family: "DejaVuMono", Helvetica, sans-serif; font-size:15px; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,0.8); z-index: 99; -webkit-transition: opacity 400ms ease-in; -moz-transition: opacity 400ms ease-in; transition: opacity 400ms ease-in; display: none; pointer-events: none; } .modalDialog:target { display: block; pointer-events: auto; } .modalDialog > div { width: 512px; position: relative; margin: 5% auto; padding: 10px 10px 10px 10px; border: 5px solid #5B717C; background: #041B23; } .close { background: none; color: #FFFFFF; line-height: 19px; position: absolute; right: -50px; top: 512px; width: 24px; text-decoration: none; font-weight: bold; -moz-box-shadow: 1px 1px 3px #000; -webkit-box-shadow: 1px 1px 3px #000; box-shadow: 1px 1px 3px #000; } .close:hover { color: #00d9ff; }