/*
Theme Name: Novaship Theme
Version: 1.0
Description: Мой первый сайт
Author: Andrey M
Author URI: 
*/
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
body {
    margin:0;
    padding:0;
    font-family: Roboto, Tahoma, Verdana, Arial,sans-serif;
}
header {
    width: 100%;
    height: 8vh;
    position:fixed;
    z-index: 999;
    background-color:white;
}
.headerTop {
    height:3vh;
    line-height:3vh;
    width:100%;
    text-align:right;
    background:#0b2e4f;
    font-size:12px;
    font-weight:bold;
    border: 1px solid white;
    border-bottom:none;
    box-sizing:border-box;
}
.headerTop span {
    margin:auto 10px;
}
.headerTop span:last-child {
    margin-right:15%;
}
.headerTop a, a:visited{
    text-decoration: none;
    color:white;
}
.headerBottom {
    margin:0;
    padding:0 15%;
    width:100vw;
    height:5vh;
    display:flex;
    justify-content:space-between;
    box-sizing: border-box;
        background:white;
}
.headerBottomLeft {
    padding:0;
    height:5vh;
    line-height:5vh;
    width:30%;
    box-sizing: border-box;
}
.headerBottomLeft img {
    height: 100%;
    float:left;
    margin:0;
}
.headerBottomLeft a, a:visited {
    text-decoration: none;
    color:black;
    font-size: 16px;
}
.menu {
    margin:0; /*прижимает меню к верху*/
    padding:0; /*убирает отступ меню справа*/
    display:flex;
    justify-content: flex-end;
    height: 100%;
    width:70%;
    font-size: 16px;
}
.menu li {
    display:flex;
    list-style-type: none;
    align-items: center;
    line-height:5vh;
    min-width: 20%;
        border-radius:10px;
}
.menu li:last-child {
    min-width: 24%;
}
.menu a, a:visited { 
    display:block;
    height:100%;
    text-decoration: none;
    font-weight: bold;  
    transition: 0.2s linear;
    color:black;
    border: 1px solid white;
    box-sizing:border-box;
    width:100%;
    margin:auto;
    text-align: center;
        border-radius:10px;
}
.menu a:hover, #navigation .active>a{
  background:#0b2e4f;
  color:white;
  border: 1px solid white;
  box-sizing:border-box;
}

/* Общие настройки для всех страниц */

.section {
    box-sizing:border-box;
    padding:8vh 0 3vh 0;
    background: #0b2e4f;
}

/* Настройка отображения 1-й страницы */

.section:nth-child(1){
    text-align:center;
    font-size: 26px;
}
.section:nth-child(1) .upperbox {
    height:40%;
    font-weight:bold;
    color:white;
    opacity: 1;
    padding: 5% 15%;
    background: linear-gradient( rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), 
    url(img/bg.jpg);
    background-size: cover;
    border-bottom: 1px solid white;
    box-sizing: content-box;
}
.section:nth-child(1) .lowerbox {
    height:40%;
    background-color:transparent;
    display:flex;
    justify-content: space-between;
    align-items: center;
    margin:0 15%;
    box-sizing: border-box;
}
.section:nth-child(1) .lowerbox .outer {
    box-sizing: border-box;
    height: 55%;
    width: 20%;
    display:flex;
    border: 1px solid white;
    background: darkgray;
    transition: 0.5s linear;
}
.section:nth-child(1) .lowerbox .outer:hover {
    background:steelblue;
    color:white;
    cursor: pointer;

}
.section:nth-child(1) .lowerbox .inner {
    box-sizing: border-box;
    text-align: center;
    margin: auto;
    font-size: 16px;
    background: linear-gradient( rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)); 
}
/* Настройка отображения 2-й страницы */

.section:nth-child(2){
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-content:space-between; 
    padding: 5% 15%;  
}
.box2 {
    box-sizing:border-box;
    width: 33.3%;
    height: 43.5vh;
    color:white;
    background-color: transparent;
    opacity: 1;
    margin:0;
    padding:0;
    border:1px solid white;

}
.box2 img {
    display:block;
    width: 100%;
    height: 50%;
    box-sizing: border-box;
    border-bottom:1px solid white;
}
.box2 .title{
    margin-top:5%;
    text-align:center;
    font-weight: bold;
    height:5%;
    width:100%;
    font-size: 14px;   
}
.box2 .outer{
    height: 40%;
    width: 100%;
    display:flex;
    overflow: hidden;
    text-overflow: ellipsis;
}
.box2 .inner{
    font-size:13px;
    margin: auto;
    padding: 0px 15px;
    text-align: center;
    overflow: hidden;
}

/* Настройка отображения 3-й страницы, флекс-бокс */ 

.section:nth-child(3){
    display: flex;
    flex-flow: wrap;
    justify-content:left;
    padding: 8vh 15% 3vh;
    font-size: 13px;
}
.box3 { 
    box-sizing:border-box;
    border: 1px solid white;
}
.box3:nth-child(1) {
    width:33.33%;
        height:29vh; /*за вычетом header,footer и map*/ 
        overflow-y: auto;
        border-right:none;
}
.box3:nth-child(2) {
    width:66.66%;
        height:29vh; /*за вычетом header,footer и map*/ 
        overflow-y: auto;
}
.box3:nth-child(3) {
    width:100%;
    height:60vh;
    text-align: center;
}

/* Настраиваем отображение таблиц в box 1,2 */ 

.box3 table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    background: transparent;
    color: white;
}
.box3 table th {
    border-bottom: 1px solid white;
    text-align:center;
}
.box3 table tr:first-child {
    background:steelblue;
    color:white;
    padding:5px;
    font-size:13px;
    text-align:left;
}
.box3:nth-child(2) tr td:last-child {
    text-align: center;
}
.box3 a, .box3 a:visited {  
  display: block;  
  height: 100%;
  width: 100%;
  text-decoration: none;
  color:white;
  padding-left:10px;
  box-sizing: border-box;
}
.box3 a:hover {
    background: steelblue;
}

/* Настраиваем форму запроса (4-й лист)*/

.section:nth-child(4){
    padding: 5% 30%; 
    color:white;
}
.section:nth-child(4) p{
    font-size: 26px;
    text-align:center;
}
.section:nth-child(4) form{
    box-sizing: border-box;
    height:80%;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
}
.section:nth-child(4) form input{
    width:100%;
    height:10%;
    font-size: 16px;
    border: 1px solid #abadb3;
    box-sizing: border-box;
    background: #0b2e4f;
    padding-left:10px;
    color:inherit;
}
.section:nth-child(4) form input:nth-child(3){
    width:45%;
    float:left;
    margin-right:10%;
}
.section:nth-child(4) form input:nth-child(4){
    width:45%;
}
.section:nth-child(4) form input:last-child{
    height:15%;
    width: 40%;
    background:steelblue;
    font-size:26px;
}
.section:nth-child(4) input::placeholder, textarea::placeholder {
    font-size: 16px;
    color:#DCDCDC;
}
.section:nth-child(4) form input:focus {
    background: #0b2e4f;
    border: 1px solid white;
}
.section:nth-child(4) form input:focus::-webkit-input-placeholder { 
    color:transparent; 
}
.section:nth-child(4) form textarea{
    width:100%;
    height:40%;
    background: inherit;
    color:inherit;
    font-family: inherit;
    font-size: 20px;
    padding-left:10px;
    border: 1px solid #abadb3;
    resize:none;
}
.section:nth-child(4) form textarea:focus {
    background: #0b2e4f;
    border: 1px solid white;
}
.section:nth-child(4) form textarea:focus::-webkit-input-placeholder { 
    color:transparent; 
}


footer {
    position:fixed;
    bottom:0;
    width:100%;
    font-size:12px;
    background-color:steelblue;
    height: 3vh;
    line-height: 3vh;
    text-align:center;
    box-sizing: border-box;
    border: 1px solid white;
}
