/* Common styles for all screen sizes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

.p-1 {
    padding: 1rem;
}

html, body {
    font-family: 'Segoe UI', 'Tahoma', 'Verdana', sans-serif;
    line-height: 1.7em;
    background-color: #252525;
}

.container {
    margin: auto;
    max-width: 1000px;
    padding: 0 20px;
    overflow: auto;
}

.text-orange {
    font-size: 1.1em;
    color: #ff7e05;
}

/* Responsive styles for smaller screens */
@media only screen and (max-width: 768px) {
    #navibar,
    #navibar2,
    #sidebar {
        padding-left: 10px;
        padding-right: 10px;
    }

    #navibar ul,
    #navibar2 ul {
        margin-left: 10px;
    }
}

/* Responsive styles for even smaller screens */
@media only screen and (max-width: 600px) {
    #navibar,
    #navibar2,
    #sidebar {
        padding-left: 5px;
        padding-right: 5px;
    }

    #navibar ul,
    #navibar2 ul {
        margin-left: 5px;
    }
}
/*Ülemine navibar (pealehel)*/
#navibar {
	background: #ff7e05;
	overflow: auto;
	padding-left: 200px;
	padding-right: 200px;
	z-index: 1;
}
h1 {
	padding-bottom: 20px;
}
#navibar i{
	color: #fff;
}
#navibar a{
	color: #fff;
}
#navibar ul{
	float: left;
	list-style: none;
	margin-left: 200px;
}
#navibar ul li {
	float: left;
}
#navibar ul li a{
	display: block;
	padding: 20px;
	text-align: center;
}
#navibar .nonlogo a:hover,
#navibar .nonlogo a.current{ 
	background: #252525;
	color: #ff7e05;
	border-radius: 10px;
}
#navibar h1 {
	padding-top: 20px;
	float:left;
}
/*Ülemine navibar (teised lehed)*/
#navibar2 {
	background: #ff7e05;
	overflow: auto;
	padding-left: 200px;
	padding-right: 200px;
	position: sticky;
	top: 0;
}
h1 {
	padding-bottom: 20px;
}
#navibar2 .text-primary {
	color: #fff;
}
#navibar2 i{
	color: #fff;
}
#navibar2 a{
	color: #fff;
}
#navibar2 ul{
	float: left;
	list-style: none;
	margin-left: 200px;
}
#navibar2 ul li {
	float: left;
}
#navibar2 ul li a{
	display: block;
	padding: 20px;
	text-align: center;
}
#navibar2 .nonlogo a:hover,
#navibar2 .nonlogo a.current{ 
	background: #252525;
	color: #ff7e05;
	border-radius: 10px;
}
#navibar2 h1 {
	padding-top: 20px;
	float:left;
}
/* Responsive sidebati jaoks */
@media only screen and (max-width: 1000px) {
    #sidebar {
        width: 1px;
        padding: 20px 0;
        transition: 0.5s;
    }

    #sidebar a {
        padding: 15px;
        text-align: center;
    }
}

/* Sidebar nupp */
#toggle-btn {
    font-size: 20px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2;
    color: #fff;
    background: #ff7e05;
    padding: 10px;
    border: none;
    border-radius: 5px;
}
/*Äärmine navibar*/
#sidebar {
	height: 100%;
	width: 200px;
	position: fixed;
	z-index: 1;
	top: 0;
	left: 0;
	background-color: #ff7e05;
	overflow-x: hidden;
	padding-top: 20px;
	transition: 0.5s;
}
#sidebarin {
	margin-top: 100px;
	overflow:auto;
}
#sidebar a {
	color: #fff;
}  
#sidebar ul {
	list-style: none;
	padding-bottom: 20%;
}
#sidebar a:hover
#sidebar a.current{
	background: #252525;
	color: #ffffff;
}
#sidebar li a{
	margin-top: 10%;
}
#sidebar a, .dropdown-btn {
	padding: 6px 8px 6px 16px;
	text-decoration: none;
	font-size: 20px;
	color: #fff;
	display: block;
	border: none;
	background: none;
	width: 100%;
	text-align: left;
	cursor: pointer;
	outline: none;
}
  
  /* On mouse-over */ 
#sidebar a:hover, .dropdown-btn:hover {
	border-radius: 10px;
	background-color: #252525;
	color: #ff7e05;
}
.active {
	background-color: #252525;
	color: white;
	border-radius: 10px;
}
.dropdown-container {
	display: none;
	background-color: #252525;
	padding-left: 8px;
	border-radius: 10px;
}
/*Avalehe kahe värviline osa*/
.color-main {
    position: relative;
    overflow: hidden;
    display: flex; 
    align-items: center;
    background: url(taust.webp);
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
}

#main-info {
    background: transparent;
}
/*Avalehe värvi poolte ühine suurus */
.color-box {
    width: 50%;
    height: 100vh; 
}
/*Avalehe vasak ehk oranz pool*/
.left-box {
    background-color: #ff7e05c7;
}
.left-box .img-bnt {
	margin-left: 30%;
	
}
.left-box .img-bnt img {
	height: 400px;
	padding-top: 40px;
}
/*Avalehe parem ehk tume pool*/
.right-box {
    background-color: #252525d0;
	display: flex;
	flex-direction: column;
	text-align: left;
	padding-top: 10%;
	padding-left: 10%;
	padding-right: 10%;
	color: #ffffff;
	font-size: 1.2em;
}
.right-box h1 {
	padding-left: 10%;
	text-align: center;
}
/*Avalehe vasaku poole nupp ja tekst*/
.btn {
    display: inline-block;
    padding: 0.5rem 2rem;
    border: none;
    border-radius: 5px;
}
.btn-primary {
    background: #252525;
    color: #fff;
	margin: 10% 20% 20% 130px;
}
.btn-primary:hover {
    background: #5e2e01;
}
.btn-dark {
    background: #333;
    color: #fff;
}
.btn-dark:hover {
    background: #000000;
}
.items {
	text-align: center;
	color: #fff;
    display: flex;
	margin-bottom: 10%;
	padding: 5px;
}
.items a{
	color: #fff;
}
/* See teeb läbipaistva kasti info peale*/
.overlay {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100%;
	width: 100%;
	opacity: 0;
	transition: .5s ease;
	background-color: rgba(255, 126, 5, 0.616);
	display: flex;
	justify-content: space-around;
	align-items: flex-end;
	border-radius: 10px;
	padding: 10px;
}
.info-gar:hover .overlay {
  opacity: 1;
}
.over-text {
	color: white;
	font-size: 1.5em;
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	text-align: center;
}
.items .info-gar {
	border-radius: 10px;
	margin-left: 2%;
    flex: 1;
	background-color: #252525;
	padding-top: 5px;
	position: relative;
}
.items .info-gar i {
    margin-bottom: 1rem;
	color: #fff;
	padding-left: 10%;
}
.mirage-sisu {
	color: #fff;
	display: flex;
  	justify-content: center;
  	align-items: center;
	margin-bottom: 30px;
	margin-top: 50px;
}
@media only screen and (max-width: 1200px) {
    .color-box {
        width: 100%;
		height: 90%;
    }

    .right-box {
        padding-left: 5%;
        padding-right: 5%;
    }

    .items {
        flex-direction: column;
    }

    .info-gar {
        margin-bottom: 20px;
    }

    .left-box .img-bnt {
        margin-left: 0;
        text-align: center;
    }
}

/* Responsive styles for even smaller screens */
@media only screen and (max-width: 600px) {
    .color-box {
        height: auto;
    }
}
footer {
	position: static;
	bottom: 0;
	text-align: center;
	padding: 20px;
	background: #444;
	color: #ffff;
	width: 100%;
}