@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Great+Vibes&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Pacifico&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');
* {
    margin: 0;
    padding: 0;
    outline: none;
}

body {
    background: #fcfcfc;
    background-image: url(../img/Pngtree.png);
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}

.main-page{
    height: 100vh;
}
 h1, h2 {
    font-family: "Cormorant Infant", serif;
}

header .bars {
    font-size: 24px;
    cursor: pointer;   
    margin-right: 16px;
} 

.container {
    padding-left: 10%;
    padding-right: 10%;   
}


@media (max-width: 600){
    .container {
        padding-left: 5px;
        padding-right: 5px;;   
    }    
}
@media (max-width: 700px){
    header > .container > .logo{
        width: 85%;
        font-size: 1.3em; 
    } 
}

header .container {   
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 40px;
}


header > .container > .logo > img {
    width: 100px;
} 

header > .container > .logo{
    display: flex;
    align-items: center;
    font-family: "Pacifico", cursive;
    font-size: 1.5em;
}

a {
    text-decoration: none;
    transition: color 500ms ease;
    color: #474747;
    font-weight: 400;
}

a:hover, a:active {
    color: #d41919;    
}

header .nav a {
    margin-left: 15px;
}

.btn {
    width: 130px;
    height: 40px;
    background: #333;
    border-radius: 5px;
    border: 0;
    font-size: 14px;
    margin-left: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 600ms ease;
}

.btn:hover, .btn:active {
    transition: all 600ms ease;
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0px 10px 20px -2px rgba(88, 74, 74, 0.3);
}
/********END OF HEADER********/

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

body > .main{
    align-self: center;
    margin-bottom: 10px;
}
.container.main{
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    align-items: center;
}


/********LINKS********/
.links_block{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    
}

.links_block > .one-link  > form > button{
    background: #f8ba10;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: all 600ms ease;
}

.links_block > .one-link  > form > button:hover, 
.links_block > .one-link  > form > button:active {
    transition: all 600ms ease;
    transform: scale(1.03) translateY(-3px);
    box-shadow: 0px 10px 20px -2px rgba(88, 74, 74, 0.3);
}

.links_block > .one-link{
    width: 100%;
    max-width: 500px;   
    overflow-wrap: break-word;
    margin-bottom: 15px;
    background: #e0e0e0;
    border-radius: 5px;
    padding: 5px 10px;
    border: 1px solid #e0e0e0;
}
@media (max-width: 900px){
    .links_block > .one-link{ 
        width: 85%;
        margin-left: 25px;
    }
}

.links_block > .one-link:hover,
.links_block > .one-link:active {
    border: 1px solid #eca7a0;
}

.links_block > .one-link > p{
    margin-bottom: 5px;
    font-size: 0.8em;
}

.links_block > .one-link > p > a {
    color: #d41919;
    font-weight: 400;
}

.links_block > .one-link > p > a:hover,
.links_block > .one-link > p > a:active{
    text-decoration: underline;
}

.links_block > h2{
    margin-top: 20px;
    margin-bottom: 15px;
}



/********FOOTER********/

footer {
    margin-top: auto;   
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    background: #333;
    color: #fff;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10%;
    padding-right: 10%;
    justify-self: flex-end;
}

@media (max-width: 400px){
    footer {
        justify-content: center;
    }
    footer > .social {margin-top: 10px;}
}

footer > .social > i {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    background: silver;
    margin-left: 5px;
    cursor: pointer;
    transition: transform 600ms ease;
    color: #333;
}

footer > .social > i:hover {
    transition: transform 600ms ease;
    transform: translateY(-5px);
} 
@media (max-width: 900px){
    footer {
       display: none;
    }    
}
/***********открывание закрывание мобильного меню***************/
/*
.side-menu{
    display: none;    
}
*/
.invisible{
    display: none;
}

.side-menu.active {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #646262;
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;     
}

.side-menu ul {
    list-style-type: none;
    margin-top: 30px;
    margin-right: 1%;
}

.side-menu ul li {
    margin: 20px 0;
}

.side-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
}

.shifted {
    background: #fcfcfc;
    background-image: url(../img/Pngtree.png);
    background-position: center;
    background-repeat: no-repeat;
    z-index: 10;    
    transform: scale(0.7) translateX(-70%); 
    transition: transform 1s ease-in-out;
    overflow: hidden; 
    -webkit-box-shadow: -1px 3px 15px 5px rgba(0,0,0,0.75);
    -moz-box-shadow: -1px 3px 15px 5px rgba(0,0,0,0.75);
    box-shadow: -1px 3px 15px 5px rgba(0,0,0,0.75);
}
.shifted-before-close {  
    z-index: 10;    
    transform: scale(1) translateX(0%); 
    transition: transform 1s ease-in-out;
    overflow: hidden;     
}

/*продублировал стили соцсетей для моб меню*/
.networks {
    display: flex;
}
.networks > div {
    width: 35px;
    height: 35px;
    margin: 2px;
    background: rgb(218, 216, 216);
    border-radius: 5px;
    display: grid;
    align-items: center;
    justify-items: center;
    transition: all 500ms ease;
}
.networks > div > i{
    color: grey;
    font-size: 1.5em;
    transition: all 500ms ease;
}
.networks > div:hover{
    transform: translateY(-4px);
    background: rgb(117, 194, 147);
    cursor: pointer;
}
.networks > div >i:hover{
    color: rgb(150, 243, 186);
}