/**************************************************************************************************/
/* ОБЩЕЕ ФОРМАТИРОВАНИЕ */

* { margin: 0px; 
    padding: 0px;
    box-sizing: border-box;                                                                         /* включения в качестве состаляющей части блочного элемента всех значений свойств width и height рамки и  отступов */
    font-size: 16px;
    /*border: 1px solid black;*/
}

/* ОБЩЕЕ ФОРМАТИРОВАНИЕ */
/**************************************************************************************************/


/**************************************************************************************************/
/* СЕКЦИЯ ДЛЯ ССЫЛКИ НА СКАЧИВАНИЕ ШАБЛОНА */

.download{
    position: fixed;   
    bottom: 0;
    right: 0;
    margin-right: 5%;
    margin-bottom: 5%;
}

.download a{
    color: blue;
}

/* СЕКЦИЯ ДЛЯ ССЫЛКИ НА СКАЧИВАНИЕ ШАБЛОНА */
/**************************************************************************************************/

.container{                                                                                              /* основная обёртка, шапка */
    height: 300px;
    padding-top: 10px;
    background-image: linear-gradient(to right top, lightgreen, limegreen, lightgreen);
}

nav a{
    display: inline-block;
    height: 50px;
    margin: 0 10px;
    font-size: 1.25em;
    text-decoration: none;
    text-align: center;
    line-height: 50px;
    color: black;
    background-image: linear-gradient(to right bottom, white, lime, white);
    border-radius: 10px;
    box-shadow: 2px 2px 2px rgba(255,255,255);
    flex: 0 1 200px;                                                                                    /* 0 - означает, что ширина не будет изменяться автоматом, 1 - ширинва будет уменьшаться одинаково для всех, 200px - ширина для всех*/
}

nav{                                                                                                    /* настройки для меню */
    margin: 20px auto;
    height: 75px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    
}

/**************************************************************************************************/

.in-hat{
    height: 175px;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    justify-content: space-around;
}

.in-hat p{
    font-size: 3.25em;
    flex: 0 1 50px;
    text-align: center;
}

.in-hat a{
    display: block;
    width: 200px;
    margin: 0 auto;
    font-size: 1.25em;
    text-decoration: none;
    text-align: center;
    line-height: 50px;
    color: black;
    background-image: linear-gradient(to right bottom, white, lime, white);
    border-radius: 10px;
    box-shadow: 2px 2px 2px rgba(255,255,255);
    flex: 0 1 50px;
}

/**************************************************************************************************/

.container h1{
    font-size: 3.25em;
    text-align: center;
    margin-top: 30px;
}

/**************************************************************************************************/

.content{
    margin-top: 30px;
    display: flex;
    justify-content: center;
    text-align: justify;
}

.content p{
    margin: 0 20px;
}

.content p:not(:last-child){
    flex: 0 1 250px;
}

.content p:last-child{
    flex: 0 1 350px;
}

.content p:nth-child(1){
    order: 2
}

.content p:nth-child(2){
    order: 1
}

.content p:nth-child(3){
    order: 3
}

/**************************************************************************************************/

footer{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    background-color: black;
    height: 30px;
    line-height: 30px;
}

footer p{
    position: absolute;
    left: -210px;
    animation-name: running_string;
    animation-duration: 10s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes running_string{
    0% {left: -210px;}
    100% {left: 100%;}
}