*
{
    margin: 0;
    padding: 0;
}

html, body
{
    width: 100%;
    height: 100%;
    position: absolute;
}

p
{
    font-size: 1.2em;
}

p a
{
    color: black;
    font-weight: bold;
    transition: 0.1s background linear;
    padding: 2px;
    border-radius: 5px;
}

p a:hover
{
    color: #FFFCEC;
    background: #735120;
}

.container
{
    width: 500px;
    height: 300px;
    margin: 10% auto;
    position: relative;
    overflow: hidden;
    background: #FFFCEC;
    box-shadow: 0px 0px 2px 0px #735120;
    border-radius: 5px;
}

.container>*
{
    position: absolute;
    z-index: 1;
}

.triangle
{
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    z-index: 0;
}

.triangle.front
{
    border-top: 300px solid #FFB547;
    border-right: 344px solid transparent;
}

.triangle.back
{
    border-top: 325px solid #735120;
    border-right: 369px solid transparent;
}

.contact
{
    text-align: right;
    top: 170px;
    left: 240px;
}

.social
{
    top: 30px;
    left: 30px;
    width: 60px;
}

.social a, .social a span
{
    display: inline-block;
    width: 60px;
    height: 60px;
    background-size: 120px 60px;
}

.social a
{
    background-position: 60px 0px;
}

.social a span
{
    opacity: 0;
    transition: 0.1s linear;
}

.social a:hover span
{
    opacity: 1;
}

.social a#in, .social a#in span
{
    background-image: url(in.png);
    background-image: none, url(in.svg);
}

.social a#fb, .social a#fb span
{
    background-image: url(fb.png);
    background-image: none, url(fb.svg);
}

@media only screen and (max-width: 768px)
{   
    body
    {
        display: table;
        font-size: 1.4em;
    }
    
    .container
    {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        vertical-align: middle;
        display: table-cell;
        vertical-align: middle;
        padding: 20px;
    }
    
    .container:before, .container:after
    {
        width: 100%;
        height: 5%;
        min-height: 20px;
        display: block;
        content: '';
        box-shadow: 0px 0px 2px 0px #735120;
        position: absolute;
        left: 0;
    }
    
    .container:before
    {
        background: #FFB547;
        margin-bottom: 20px;
        top: 0px;
    }
    
    .container:after
    {
        background: #735120;
        margin-top: 20px;
        bottom: 0px;
    }
    
    .container>*
    {
        position: static;
    }
    
    .triangle
    {
        display: none;
    }
    
    .contact, .social
    {
        padding: 10px;
        text-align: center;
        width: auto;
    }
    
    .contact
    {
        margin-bottom: 50px;
    }
    
    .social a span
    {
        opacity: 1;
    }
    
    .social a, .social a span
    {
        width: 100px;
        height: 100px;
        background-size: 200px 100px;
    }

    .social a
    {
        background-position: 200px 0px;
    }

}

@media only screen and (max-width: 370px)
{
    body
    {
        font-size: 1.1em;
    }
}