*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}
html
{
    background-color: black;
}

.container
{
    border-radius: 4px;
    position: absolute;
    top: 10%;
    bottom: 10%;
    right: 5%;
    left: 5%;
    background-color: rgb(58, 58, 58);
    display: grid;
    height: 80%;
    width: 90%;
    grid-template-columns: 0.2fr 60vh 1fr;
    grid-row: 0.5fr 1fr 2fr 1fr;
    grid-template-areas: 
    'tel poza scris'
    'tel poza scris'
    'tel poza scris'
    'tel poza btn'
    ; 
    z-index: -2;
}
.contact
{
    grid-area: tel;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-content: center;
}

.poza
{
    position: relative;
    grid-area:poza;
}
.poza > img
{
    width: 100%;
    border-radius: 4px;
    height: 110%;
    position: absolute;
    top: -5%px;
    bottom: -5%;
}

.text
{
    position: relative;
    margin-left: 120px;
    margin-top: 100px;
    grid-area: scris;
      font-family: 'Kaushan Script', cursive;
}
.text > h1
{
    color: white;
    font-size: 64px;
}
.text > h2 
{
    margin-top: 20px;
    color:#59CD64;
}
.text > p
{
    color: rgb(161, 159, 159);
    width: 460px;
    margin-top: 30px;
    font-size: 20px;
}
.butoane
{
    margin-left: 70px;
    display: flex;
    flex-wrap: wrap;
    grid-area: btn;
    font-size: 15px;
}


.contact > a > img
{
    width: 70px;
    height: 70px;
}
  .logo
{
    width: 80px;
    height: 80px;
    position: absolute;
    left: 130px;
}

.butoane > ul
{
    display: flex;
    flex-direction: row;
}
.butoane > ul > li > a
{
    color: white;
    position: relative;
    padding: 20px;
    text-decoration: none;
    transition: 0.5s;
}
@media only screen and (min-width: 1050px)
{
 .butoane > ul > li
 {
     list-style: none;
 }
 .butoane > ul > li > a
 {
     position: relative;
     display: block;
     padding: 10px 40px;
     font-size: 20px;
     margin: 20px 0;
     text-decoration: none;
     text-transform: uppercase;
     color: white;
     font-weight: bold;
     transition: 0.5s;
     
 }
 .butoane > ul > li > a::before
 {
     content: '';
     position:absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     border-top: 1px solid white;
     border-bottom: 1px solid white;
    transform: scaleY(0);
    opacity: 0;
    transition: 0.5s;
    z-index: -1;
 }
 .butoane > ul > li > a:hover
 {
     color: black;
 }
 .butoane > ul > li > a:hover::before
 {
     transform: scaleY(1);
     opacity: 1;
 }

 .butoane > ul > li > a::after
 {
     content: '';
     position:absolute;
     top: 1px;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: white;
    transform: scaleY(0);
    transition: 0.5s;
    z-index: -3;
 }
 .butoane > ul > li > a:hover::after
 {
    color: black;
    transform: scale(1);
    opacity: 1;
 }
   .contact > a::before
{
    content: '';
    position: absolute;
    top: 0;
    width: 70px;
    height: 70px;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    transform: scaleY(2);
    opacity: 0;
    transition: 0.5s;
}

.contact > a:hover::before
{
    transform: scaleY(1);
    opacity: 1;
}
}

.contact > a
{
    margin-top: 20px;
    color: white;
    position: relative;
    text-decoration: none;
    transition: 0.5s;
}



@media only screen and (max-width: 1050px) {
html
{
    background-color: black;
}
.container
{
    border-radius: 4px;
    position: absolute;
    top: 10%;
    bottom: 10%;
    right: 5%;
    left: 5%;
    background-color: rgb(58, 58, 58);
    display: grid;
    height: 110%;
    width: 90%;
    grid-template-columns: 10% 20% 40% 20% 10%;
    grid-template-areas: 
    'poza poza poza poza poza'
    'poza poza poza poza poza'
    'tel scris scris scris ...'
    'tel btn btn btn ...'
    ;
}
.contact
{
    margin-top: 150px;
    width: 10%;
    position: fixed;
    grid-area: tel;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.poza
{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh;
    position: relative;
    grid-area:poza;
}
.poza > img
{
    border-radius: 4px;
    height: 100%;
    width: 70%;
    position: absolute;
}

.butoane
{
    margin-left: 0px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    grid-area: btn;
}
.butoane > ul > li > a
{
    color: white;
    position: relative;
    font-size: 15px;
    text-decoration: none;
    transition: 0.5s;
    
}
.contact > a > img
{
    width: 50px;
    height: 50px;
}
.text
{
    margin-left: 0px;
    margin-top: 50px;
    grid-area: scris;
    display: flex;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.text > h1
{
    color: white;
    font-size: 32px;
}
.text > h2 
{
    font-size: 20px;
    margin-top: 20px;
    color:#59CD64;
}
.text > p
{
    color: rgb(161, 159, 159);
    width: 280px;
    margin-top: 30px;
    font-size: 10px;
}
.logo
{
    width: 80px;
    height: 8%;
    position: absolute;
    left: 10%;
}
}

@media only screen and (max-width: 550px)
{

.logo
{
    width: 70px;
    height: 8%;
    position: absolute;
    left: 5%;
}
.contact > a > img
{
    width: 30px;
    height: 30px;
}
.container
{
    border-radius: 4px;
    position: absolute;
    top: 8%;
    bottom: 10%;
    right: 5%;
    left: 5%;
    background-color: rgb(58, 58, 58);
    display: grid;
    height: 90%;
    width: 90%;
    grid-template-columns: 10% 80% 10%;
    grid-template-areas: 
    '... poza ...'
    '... poza ...'
    'tel scris ...'
    '... ... ...'
    '... ... ...'
    ;
}
.poza > img
{
    width: 100%;
    height: 100%;
}
.poza
{
    width: 100%;
   height: 50vh;
}
.text > p
{
    color: rgb(161, 159, 159);
    width: 230px;
    margin-bottom: 5px;
    margin-top: 0px;
    font-size: 10px;
}
.text >h2
{
    margin-top: 0px;
}
.text
{
    margin-top: 20px;
    margin-bottom: 10%;
}
.butoane
{
    border-radius: 4px;
    width: 90%;
    height: 8%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 10px;
    align-self: center;
   background-color: #59CD64;;
   
}
.butoane > ul 
{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
}
.butoane > ul > li > a 
{
    color: black;
    font-size: 20px;
    padding: 10px;
    text-decoration: none;
}

.contact
{
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
}
.contact > a > img
{
    width: 20px;
    height: 20px;
}
}
