@font-face {
    font-family: 'MujFont';
    /* Název fontu */
    src: url('fonts/Merkur.ttf');
}

* {
    margin: 20px;
    color: #ECC14E;
    font-family: 'MujFont';
    /* border: solid 0.1px; */
}

body {
    background-color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
}

span {
    margin: 0px;
    color: #C227E2;
    transition: 0.5s;
}

#odkazy {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#odkazy a:hover {
    color: #C227E2;
}

#odkazy a:hover span {
    color: #ECC14E;
}

img {
    width: 80px;
}

#portfolio_name {
    font-size: 9vw;
    text-align: center;
}

#otaznik {
    display: inline-block;
    transition: transform 0.3s;
}

#otaznik:hover {
    transform: rotate(180deg);
}

.portfolio_item {
    display: flex;
    
    justify-content: space-around;
    align-items: stretch;
    margin: 10px 0;
    box-sizing: border-box;
}

.portfolio_item:nth-child(odd) {
    flex-direction: row;
}
.portfolio_item:nth-child(even) {
    flex-direction: row-reverse;
}

.image *{
    margin: 0px;
}

.image{
    width: 50%;
    box-sizing: border-box;
}

.image img{
    width: 100%;
}

.text{
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* margin: 0; */
    box-sizing: border-box;
}

.name a{
    font-size: 3.5vw;
    margin: 0px;
    transition: 0.5s;
    text-decoration: none;
}

.description{
    font-family: auto;
    color: white;
}
.new *{
    font-family: auto;
}
.new input {
    color: black;
}
#image {
    color: white;
}

#tlacitko {
    border: solid;
    cursor: pointer;
    transition: 0.5s;
    margin: 20px;
    background-color: black;
    color: #ECC14E;
    font-family: 'MujFont';
    font-size: 3vw;
}

#tlacitko:hover {
    border-color: #C227E2;
    color: #C227E2;

}

#tlacitko:hover span {
    color: #ECC14E;
}

#popis {
    color: white;
    font-family: auto;
    font-size: 3vw;
}
#odkazy a {
    display: flex;
    text-decoration: none;
    align-items: center;
    font-size: 8vw;
    transition: 0.5s;
}


@media screen and (max-width:600px){
    body {
        margin: 0;
    }
    .portfolio_item:nth-child(odd) {
        flex-direction: column;
    }
    .portfolio_item:nth-child(even) {
        flex-direction: column;
    }
    .portfolio_item{
        flex-direction: column;
        align-items: center;
    }
    .image{
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    .text{
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    .name a {
        font-size: 6.5vw;
        /* text-decoration: underline; */
    }
    .name{
        margin: 0;
    }
    .description{
        margin: 0;
    }
    #portfolio_name {
        margin: 0;
    }
}