
h1{
    letter-spacing: 0.1cm;
    margin-left: 50px;
}
body{
    background-image: url("../content/fon.png")  ;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header {
    color: #F2E205;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    font-variant: small-caps;
    border: solid 3px #F25C05;
    background-color: #011140;
    padding: 20px;
}

footer {
    bottom: 0;
    left: 0;
    right: 0;
    color: #F2E205;
    border: solid 3px #F25C05;
    text-align: center;
    font-weight: lighter;
    padding: 20px;
    background-color: #011140;
}

nav {
    display: flex;
    justify-content: space-around; /* Распределяет пункты по ширине */
    align-items: center;
    background-color: #011140;
    border: solid 3px #F25C05;
    padding: 15px 0;
}

nav a {
    color: #F2E205;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 1px 1px 1px black;
}

nav a:hover {
    text-decoration: underline;
}

nav ul {
    width: 100%;
    display: flex;
    justify-content: space-around; /* Ühtlane jaotus */
    padding: 0;
    margin: 0;
    list-style: none;
}

nav ul li {
    position: relative;
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

nav ul li a {
    font-weight: bold;
    font-variant: small-caps;
    color: #F2E205;
    font-size: 16px;
    padding: 10px 15px;
    display: block;
}

.dropdown {
    min-width: 150px;
    position: absolute;
    top: 100%;
    left: 0;
    background: #011140;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.menu li:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    padding: 10px 15px;
    background-color: #011140;
    transition: background 0.3s ease;
}

.dropdown li:last-child {
    border-bottom: none;
}

.dropdown li:hover {
    background-color: #2165BF;
}

.dropdown li a {
    font-variant: small-caps;
    color: #F2E205;
    font-weight: bold;
    font-size: 14px;
    display: block;
    text-align: left;
}
section h2{
    text-align: center;
    letter-spacing: 0.1cm;
}

section{
    margin: 10px;
    width: 70%;
    border: dotted 1px #011140;
    border-radius: 10px;
    padding: 2%;
}

input[type=button] {
    background-color: #011140;
    color: #F2E205;
    padding: 10px;
    border-radius: 5px;
    margin-left: 20px;

}

canvas{
    background-color: #d0d0e6;
    /*width: 400px;*/
    border: solid 1px #011140;
    margin-left: 20px;
}

#maja {
    background-color: #669ee8;

}

div {
    margin-left: 20px;
}

#hooaeg{
    width:60%;
    border: 5px dotted #011140;
    background-color: #a8c7f1;
    border-radius: 10px;
    text-align: center;
}


/* --------------------------------------VORMID----------------------------------------------------------------- */
table{
    border-collapse: collapse;
    border: 1px solid #011140;
    width: 50%;
    padding: 2%;
}
td{
    border: 1px solid #011140;
    padding: 2%;
}

input[type=text], input[type=number], input[type=email], input[type=tel], input[type=date], input[type=file], input[type=time], input[type=week]{
    border: 1px solid #011140;
    border-radius: 4px;
    padding: 10px;
    color: #0c0c0c;
    background: #d0e0ef;
}
input[type=radio]:hover /*+label*/{
    background-color: #d0e0ef;
    font-size: 20px;
    padding: 10px;
    color: #000000;
    width: 30px;
    height: 20px;
}
input[type=checkbox]+label /*:hover*/{
    background-color: #d0e0ef;
    font-size: 20px;
    padding: 10px;
    color: #000000;
    width: 30px;
    height: 20px;
    border: 1px solid #011140;
    cursor: pointer;
    line-height: 32px;
}
input[type=range] {
    width: 80%;
    border: 1px solid #011140;
    border-radius: 4px;
    padding: 10px;
    color: #0c0c0c;
    background: #d0e0ef;
    -webkit-appearance: inherit; /* Убирает стандартный стиль в WebKit-браузерах */
}
input[type=color] {
    width: 80%;
    height: 40px;
    background: #d0e0ef;
    border: 1px solid #011140;
}

input[type=reset]{
    border: 1px solid #011140;
    border-radius: 4px;
    padding: 10px;
    box-sizing: border-box;
    color: #0c0c0c;
    background-color: #ed708e;
}
input[type=submit]{
    border: 1px solid #011140;
    border-radius: 4px;
    padding: 10px;
    box-sizing: border-box;
    color: #0c0c0c;
    background-color: #81c386;
}

input[type=file]{
    border: 1px solid #011140;
    border-radius: 4px;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    color: #0c0c0c;
    background-color: #d0e0ef;
}
#subitnupp {

    position: absolute;
    top: 150%;
    right: 100px;
    width: 300px;

    padding: 15px;
    border: 2px dotted #011140;
    border-radius: 8px;
    background-color: #d0e0ef;
}

#subitnupp1 {

    position: absolute;
    top: 50%;
    right: 100px;
    width: 300px;

    padding: 15px;
    border: 2px dotted #011140;
    border-radius: 8px;
    background-color: #d0e0ef;
}
