body {
    background-color: #e8f2f3;
    margin: 0;
    padding: 0;
    height: 100%;
}

html {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
}

#hero {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

#hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: blur(20px);
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    font-size: 200%;
}

p {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

div {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

img {
    width: 300px;
    height: 300px;
    display: block;
    margin: 0 auto;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    height: 50px;
    z-index: 1000;
}

nav {
    text-align: center;
    line-height: 50px;
    padding: 0;
}

nav a {
    display: inline-block;
    margin: 0 40px;
    color: #272727;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.45);
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 130%;
}

nav a:hover {
    color: #0056b3;
    transform: translateY(-1px);
}

p.esitaht::first-letter {
    font-size: 150%;
    font-weight: bold;
    text-align: right;
}

h1,
h2 {
    display: block;
    text-align: center;
}

.lisalingid {
    color: #272727;
    display: block;
    margin: 5px 0;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease
}

.kasulikud {
    font-size: 150%;
}

a.lisalingid:hover {
    color: #0056b3;
    transform: translateY(-1px);

}

a.lisalingid:active {
    opacity: 30%;
}

#sissejuhatus {
    text-align: center;
    padding: 40px 20px;
}

#sissejuhatus div {
    border: 2px solid lightblue;
    padding: 15px;
    margin: 20px auto;
    border-radius: 8px;
    text-align: center;
}

#teooria div {
    border: 2px solid lightblue;
    padding: 15px;
    margin: 20px auto;
    border-radius: 8px;
    max-width: 600px;
    text-align: center;
}

#kontakt {
    padding: 40px 20px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
}

#lisalingid {
    border: 2px solid lightblue;
    padding: 15px;
    margin: 20px auto;
    border-radius: 8px;
    max-width: 600px;
    text-align: center;
}

footer {
    position: relative;
    top: 0;
    width: 100%;
    background-color: rgba(198, 199, 201, 0.5);
    backdrop-filter: blur(5px);
    height: 50px;
    z-index: 1000;
    text-align: center;
    line-height: 50px;
    padding: 0;
}

footer a {
    display: inline-block;
    margin: 0 40px;
    color: #272727;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.45);
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 130%;
}

footer a:hover {
    color: #0056b3;
    transform: translateY(1px);
}

.contact-row {
    display: block;
    gap: 20px;
    margin: 40px auto;
}

.contact-card {
    border: 2px solid lightblue;
    border-radius: 8px;
    padding: 15px;
    width: 35%;
    text-align: center;
    background-color: #ffffffcc;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    border: 2px solid lightblue;
    margin-bottom: 15px;
    border-radius: 8px;
}

.contact-card p.title {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.contact-card:hover {
    background-color: #e0f4ff;
    transform: scale(1.10);
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
    border-color: #8ab1daab;
}

iframe {
    border: 2px solid lightblue;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 20px auto;
    transition: all 0.25s ease;
}

iframe:hover {
    transform: scale(1.01);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.445);
}