body {
    font-family: Arial, sans-serif;
    background-color: #e5e5f8;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
h1{
    font-family:Georgia, Times, serif ;
    letter-spacing: 2px;
    font-variant: small-caps;
    color: #DCDCDC;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
}
nav {
    background-color: #333;
    width: 100%;
}
.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.menu li {
    position: relative;
    flex-grow: 1;
    text-align: center;
}
.menu li a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    background-color: #333;
}
.menu li:hover > a {
    background-color: #444;
}
.dropdown {
    display: none;
    position: absolute;
    background-color: #444;
    width: 100%;
    padding: 0;
}
.dropdown li {
    width: 100%;
    list-style-type: none;
}
.dropdown li a {
    padding: 12px 16px;
    display: block;
    color: white;
    text-align: center;
}
.dropdown li a:hover {
    background-color: #555;
}
.menu li:hover .dropdown {
    display: block;
}
.background-main {
    background-image: url('../images/HomePageMain.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 500px;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.text{
    padding: 20px;
    max-width: 900px;
    margin: auto;
    background: #ececec;
    border-radius: 8px;
}
section {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;

}
h2 {
    color: #333;
}
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1px;
    width: 100%;
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}
p {
    font-size: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    user-select: none;
    text-align: center;
}

p:hover {
    color: #ff6600;
    transform: scale(1.05);
}

p:active {
    color: #0066ff;
    transform: scale(0.95);
}
h3 {
    font-size: 24px;
    font-weight: bold;
    color: #222;
    text-transform: uppercase;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
    cursor: pointer;
    text-align: center;
}

h3:hover {
    color: #e63946;
    letter-spacing: 2px;
}

h3:active {
    color: #1d3557;
    transform: scale(0.98);
}
input[type="button"] {
    background-color: #008CBA;
    color: white;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin: 15px 0;
    border-radius: 5px;
    transition: 0.3s;
}

input[type="button"]:hover {
    background-color: #005f73;
}

img {
    margin-top: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 100%;
}

#radio {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
    text-align: left;
}

input[type="radio"] {
    margin-right: 5px;
}

label {
    font-size: 16px;
    color: #333;
    cursor: pointer;
}

#vastus {
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}

#kogusInput {
    margin-top: 20px;
}

input[type="number"] {
    width: 60px;
    padding: 5px;
    font-size: 16px;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 5px;
}

#vastus2 {
    margin-top: 10px;
    font-weight: bold;
    font-size: 18px;
}
.container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

#vastus3 {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    background-color: #e0e0e0;
    padding: 10px;
    border-radius: 5px;
}
.kalkulaator {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}
#pyhi {
    border: 5px solid #2c3e50;
    background-color: #ecf0f1;
    border-radius: 15px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 20px auto;
}
button {
    background-color: #3498db;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
    margin: 5px;
}

button:hover {
    background-color: #2980b9;
}

button:active {
    background-color: #1c5d99;
}
#hooaeg{
    text-align: center;
    border: 1px solid red;
    background-color: burlywood;
}
#masiv{
    text-align: center;
    border: 1px solid red;
    background-color: burlywood;
}
#vaheaeg{
    text-align: center;
    border: 1px solid red;
    background-color: burlywood;
}
#synnipaev{
    text-align: center;
    border: 1px solid red;
    background-color: burlywood;
}















