﻿body {
    background: #4d4d4d;
    margin: 0;
    padding: 0;
}

main {
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
}

container {
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    top: 50%;
    margin-top: -208px;
}

* {
    transition: all 1s;
}

a {
    position: relative;
    text-decoration: none;
    display: inline-block;
    width: 353px;
    height: 416px;
    margin: 20px 10px;
    overflow: hidden;
}

div {
    width: 353px;
    height: 416px;
    position: absolute;
    top: 0;
}

.logo {
    padding-top: 90px;
}

.text {
    padding-top: 270px;
    width: 180px;
    margin-top: 15px;
    transition: all 0.5s;
    transition-delay: 0.7s;
}

.over {
    z-index: 2;
}

    .over:before {
        content: '';
        display: block;
        position: absolute;
        width: 353px;
        height: 416px;
        filter: grayscale(100%);
        z-index: -1;
    }

.under {
    z-index: 1;
}

    .under:before {
        content: '';
        display: block;
        position: absolute;
        width: 353px;
        height: 416px;
        opacity: 0.5;
        z-index: -1;
    }

.teatru .over:before {
    background: url(teatru.png);
}

.corporate .over:before {
    background: url(corporate.png);
}

.social .over:before {
    background: url(social.png);
}

.teatru .under {
    background: url(teatru.png);
}

    .teatru .under:before {
        background: #ba0000;
    }

.corporate .under {
    background: url(corporate.png);
}

    .corporate .under:before {
        background: #ff9900;
    }

.social .under {
    background: url(social.png);
}

    .social .under:before {
        background: #ff4c4c;
    }

a:hover .over,
a:active .over {
    top: -416px;
}

a:hover .text,
a:active .text {
    width: 227px;
    margin-top: 0;
}

@media (max-width:600px) {
    container {
        top: 0;
        margin-top: 10px;
    }

    a {
        margin: 10px;
    }
}
