/* Общие стили */
body {
    background: #fff;
    color: #000;
    font-family: "Times New Roman", serif;
    margin: 0;
    padding: 0;
}
iframe {
    border: 2px solid black;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 5px;
}
img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

/* Ссылки */
a {
    color: black;
    text-decoration: none;
    transition: all 0.4s steps(24);
}

a:hover {
    background: black;
    color: white;
    text-decoration: underline;
    text-decoration-color: white;
    cursor: pointer;
}

a:active {
    color: darkgray;
}

#Osa1{
    position: relative;
    left: 0;
}

main {
    font-family: "Times New Roman", serif;
    font-size: 22px;
    margin: 0 auto;
    padding: 20px;
    max-width: 1200px;
}

/* Шапка */
header {
    background: black url("photo.png") no-repeat 10px center;
    background-size: 120px 120px;
    color: white;
    letter-spacing: 0.1cm;
    padding: 40px 40px 40px 140px;
    font-variant: all-petite-caps;
    font-size: 12pt;
}
header h1 {
    margin: 0;
}
.logo {
    color: white;
    text-decoration: none;
    font-size: 12pt;
    font-variant: all-petite-caps;
    letter-spacing: 0.1cm;
}


/* Навигация */
nav {
    background: black;
    border-top: white 1px solid;
    position: relative;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    flex: 1;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-variant: all-petite-caps;
    font-size: 14pt;
    border-right: 1px solid white;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: white;
    color: black;
    transform: translateY(-2px);
}

.nav-link.active {
    background: #797979;
    border-bottom: 3px solid white;
}


section {
    background: #fff;
    color: #000;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section#Osa2 {
    text-align: center;
    padding: 15px;
}
/* Заголовки */
h1 {
    font-size: 28px;
    color: #fff;
}
h2 {
    color: black;
    font-size: 24px;
    margin: 10px 0;
}

/* Блоки тем */
#Teemad, #Lingid {
    margin-top: 20px;
}
#Teemad h2, #Lingid h2 {
    font-size: 22px;
}
#Teemad ul, #Lingid ul {
    list-style: none;
    margin: 0;
    padding: 10px;
    border-left: 4px solid black;
    border-radius: 5px;
}
#Teemad ul li, #Lingid ul li {
    margin-bottom: 10px;
    font-size: 18pt;
    font-variant: all-petite-caps;
}

/* Подвал */
footer {
    background-color: black;
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px;
    border-top: 3px solid white;
    font-variant: all-petite-caps;
    font-size: 14pt;
}

#Video, #Muusika {
    display: inline-block;
    width: 48%;
    vertical-align: top;
}

#Pildigalerii {
    text-align: center;
    background: #f9f9f9;
}

#Kaardid {
    text-align: center;
    background: #e8f4f8;
}

#toggleNav {
    position: relative;
    left: 1%;
    border: 1px solid #4b2e1a;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 16px;
    font-family: "Times New Roman", serif;
    color: #4b2e1a;
    background-color: #fffdfb;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

#toggleNav:hover {
    background-color: #f5f5f5;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

#toggleNav:active {
    background-color: #f0ebe7;
    transform: scale(0.98);
}

#jquerytbl{
    border-collapse: collapse;
}
#jquerytbl td{
    position: relative;
    width: 200px;
    text-align: center;

}
#jquerytbl input{
    width: 150px;
    height: 75px;
}
#Osa3{
    position: relative;
    text-align: center;
    width: 750px;
    left: 17%;
}
#Osa3 table{
    position: relative;
    text-align: center;
    width: 750px;
}