body {
    background-image: url("images/keyboard.jpg");
    background-attachment: fixed;
    background-size: cover;
    font-family: monospace;
    font-weight: 700;
    padding: 2%;
}

.topnav {
    background-color: #333;
    overflow: hidden;
    /*position: fixed;*/
    width: auto;
    word-wrap: break-word; 
    display: flex; 
}

/* Style the links inside the navigation bar */
.topnav a {
    float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 3vh 3vh;
    text-decoration: none;
    font-size: min(3vw, 20px);

    width: calc(20% - 6vh); 

    display: flex; 
    -ms-flex-align: center;
    -webkit-align-items: center;
    -webkit-box-align: center;
    align-items: center;
    justify-content: center;
}

/* Change the color of links on hover */
.topnav a:hover {
    background-color: #ddd;
    color: black;
}

/* Add a color to the active/current link */
.topnav a.active {
    background-color: #04AA6D;
    color: white;
}

.text {
    text-align: center; 
    margin-top: 3%;
    /*margin-left: 17%;
    transform: translate(-10%);*/
    text-transform: uppercase;
    font-family: verdana;
    font-size: max(5vw, 40px);
    font-weight: 700;
    color: #f5f5f5;
    text-shadow: 1px 1px 1px #919191,
        1px 2px 1px #919191,
        1px 3px 1px #919191,
        1px 4px 1px #919191,
        1px 5px 1px #919191,
        1px 6px 1px #919191,
        1px 7px 1px #919191,
        1px 8px 1px #919191,
        1px 9px 1px #919191,
        1px 10px 1px #919191,
    1px 18px 6px rgba(16,16,16,0.4),
    1px 22px 10px rgba(16,16,16,0.2),
    1px 25px 35px rgba(16,16,16,0.2),
    1px 30px 60px rgba(16,16,16,0.4);
}

.text2 {
    text-align: center; 
    margin-top: 3%;
    margin-bottom: 1%; 
    /*margin-left: 17%;
    transform: translate(-10%);*/
    text-transform: uppercase;
    font-family: verdana;
    font-size: max(5vw, 40px);
    font-weight: 700;
    color: #f5f5f5;
    text-shadow: 1px 1px 1px #919191,
        1px 2px 1px #919191,
        1px 3px 1px #919191,
        1px 4px 1px #919191,
        1px 5px 1px #919191,
        1px 6px 1px #919191,
        1px 7px 1px #919191,
        1px 8px 1px #919191,
        1px 9px 1px #919191,
        1px 10px 1px #919191,
    1px 18px 6px rgba(16,16,16,0.4),
    1px 22px 10px rgba(16,16,16,0.2),
    1px 25px 35px rgba(16,16,16,0.2),
    1px 30px 60px rgba(16,16,16,0.4);
    transform: scale(.7); 
}

.text3 {
    text-align: center; 
    margin-top: 3%;
    margin-bottom: 0.5%; 
    /*margin-left: 17%;
    transform: translate(-10%);*/
    text-transform: uppercase;
    font-family: verdana;
    font-size: max(3vw, 27px);
    font-weight: 700;
    color: #f5f5f5;
    text-shadow: 1px 1px 1px #919191,
        1px 2px 1px #919191,
        1px 3px 1px #919191,
        1px 4px 1px #919191,
        1px 5px 1px #919191,
        1px 6px 1px #919191,
        1px 7px 1px #919191,
        1px 8px 1px #919191,
        1px 9px 1px #919191,
        1px 10px 1px #919191,
    1px 18px 6px rgba(16,16,16,0.4),
    1px 22px 10px rgba(16,16,16,0.2),
    1px 25px 35px rgba(16,16,16,0.2),
    1px 30px 60px rgba(16,16,16,0.4);
    transform: scale(.7); 
}

.type {
    color:#0000;
    background:
        linear-gradient(-90deg,#000000 5px,#0000 0) 10px 0,
        linear-gradient(#000000 0 0) 0 0;
    background-size:calc(var(--n)*1ch) 200%;
    -webkit-background-clip:padding-box,text;
    background-clip:padding-box,text;
    background-repeat:no-repeat;
    animation: 
    b 1s infinite steps(1),   
    t calc(var(--n)*.1s) steps(var(--n)) forwards;
}

.type2 {
    color:#0000;
    background:
        linear-gradient(-90deg,#000000 5px,#0000 0) 10px 0,
        linear-gradient(#000000 0 0) 0 0;
    background-size:calc(var(--n)*1ch) 200%;
    -webkit-background-clip:padding-box,text;
    background-clip:padding-box,text;
    background-repeat:no-repeat;
    animation: 
    b .9s infinite steps(1),   
    t calc(var(--n)*.4s) steps(var(--n)) forwards;
}

@keyframes t{
    from {background-size:0 200%}
}
@keyframes b{
    50% {background-position:0 -100%,0 0}
}

#rcorners3 {
    border-radius: 25px;
    background: url("images/paper.jpg");
    background-position: left top;
    background-repeat: repeat;
    padding: 20px; 
    width: calc(50% - 60px);
    /*min-width: 200px;*/
    min-height: calc(50% - 60px);  
    font-size: 14px;
    float: left; 
    margin: 10px; 
    margin-left: 0; 
    margin-right: 20px; 
}

#rcorners3-2 {
    border-radius: 25px;
    background: url("images/paper.jpg");
    background-position: left top;
    background-repeat: repeat;
    padding: 20px; 
    width: calc(50% - 60px);
    /*min-width: 200px;*/
    min-height: calc(50% - 60px);  
    font-size: 14px;
    float: right;
    margin: 10px; 
    margin-left: 0; 
}

#rcorners {
    border-radius: 25px;
    background: url("images/paper.jpg");
    background-position: left top;
    background-repeat: repeat;
    padding: 20px; 
    font-size: 14px;
    color: black; 
}

@media (max-width:750px) {
    #rcorners3 {
        float: none; 
        width: 250px; 
        min-height: 250px;  
    }
    #rcorners3-2 {
        float: none; 
        width: 250px; 
        min-height: 250px;  
    }
}

.newline2 {
    height: 7vh;
}

.newline {
    height: 27vw;
}

p {
    color: #f2f2f2;
}

#div-typing {
    width: 60%;
    margin-left: auto; 
    margin-right: auto; 
}

@media (max-width:750px) {
    #div-typing {
        width: 310px; 
    }
}

#spustit {
    position: absolute; 
    left: 50%;
    -ms-transform: translate(-50%, 0);
    transform: translate(-50%, 0);

    border: 2px solid lightgrey; 
    background-image: linear-gradient(-45deg, red, orange, yellow, green);

    font-size: 20px; 
    font-weight: bold;
    font-family: monospace;

    padding: 10px; 
    border-radius: 10000px; 
    cursor: pointer; 

    animation: lower .5s; 

    border-style: outset; 

    color: black; 
    text-decoration: none; 
}
#spustit:hover {
    padding-right: 30px; 
    padding-left: 30px; 
    animation: raise .5s; 

    color: black; 
    text-decoration: none; 
}
#spustit:active #spustit:visited {
    color: black; 
    text-decoration: none; 
}

@keyframes raise {
    0% {
        padding-right: 10px; 
        padding-left: 10px; 
    }
    100% {
        padding-right: 30px; 
        padding-left: 30px; 
    }
}

@keyframes lower {
    0% {
        padding-right: 30px; 
        padding-left: 30px; 
    }
    100% {
        padding-right: 10px; 
        padding-left: 10px; 
    }
}