/* Šeit veidojam CSS media query */
.leftside {
    width: 100%;
}

.rightside {
    width: 100%;
}

.middle {
    width: 100%;
}

.menu {
    height: 50%;
}

@media only screen and (min-width: 768px) {
    /* For desktop fullscreen ideally: */
    .leftside{width: 25%;}
    .rightside {width: 25%;}
    .middle {width: 50%;}
    .menu {height: 25%;}
}

.MainBox {
    width: 100%;
    margin: 0 auto;
    float: bottom;
    height: 200px;
}

.title{
    background-color: ghostwhite;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 500%;
}


.leftside {
    background: lightgrey;
    /* width: 20%; */
    float: left;
    height: 800px;
    text-align: justify;
    font-size: 20px;
    padding: 0.7%;
    box-sizing: border-box;
    text-decoration: none;
}

.menu  {
    background-color: slategrey;
    text-align: center;
}


.middle  {
    background-color: antiquewhite;
    height: 800px;
    /* width: 60%; */
    float: left;
    font-size: 20px;
    text-decoration: none;
}

.middle>a>img {
    position: relative;
    float: left;
    max-height: 200px;
    max-width: 200px;
}

.leftside>a>img {
    position: relative;
    float: left;
    max-height: 200px;
    max-width: 200px;
}

.rightside>a>img {
    position: relative;
    float: left;
    max-height: 200px;
    max-width: 200px;
}


/* Dropdown Button */
.dropbtn {
    background-color: darkslategray;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    top: 10%;
    left: 35%;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #ddd;}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {display: block;}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {background-color: dimgrey;}

.rightside {
    background: darkslategrey;
    /* width: 20%; */
    float: right;
    height: 800px;
    text-align: justify;
    font-size: 20px;
    padding: 0.7%;
    box-sizing: border-box;
    text-decoration: none;
}

.footer {
    background-color: darkgrey;
    text-align: center;
    font-size: 200%;
}
.menu>ul>li{
    display:inline-block;
    padding: 10px 10px 10px 10px;
    margin-top: 2px;
    text-align: center;
    background-color: darkgray;
    position: relative;
    top: 15px;
    font-family: Tahoma, serif;
    font-size: 14px;
}

@media only screen and (min-width: 768px) {
    .menu>ul>li{
        display:inline;
        text-align: center;
        background-color: darkgray;
        position: relative;
        font-family: Tahoma, serif;
        top: 15px;
        font-size: 14px;
    }

}
.menu>ul>li>a{
    text-decoration: none;
    color: #fff;
}

.menu>p{
    margin: auto;
    padding-top: 80px;
    text-align: center;
}
.ievade{
    top: 10px;
    left: 5px;
    position: relative;
    text-align: left;
}

