body {
    font-family: 'Segoe UI', sans-serif;
    background: #f2f2f2;
    color: #333;
    padding: 30px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

table {
    width: 90%;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: #2980b9;
    color: white;
    text-transform: uppercase;
    font-size: 14px;
}

tr:hover {
    background-color: #f1f1f1;
}

img {
    max-width: 150px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
form {
    width: 90%;
    max-width: 600px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #34495e;
}

input[type="text"], textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
    background-color: #fdfdfd;
    transition: border-color 0.3s;
}

input[type="text"]:focus, textarea:focus {
    border-color: #3498db;
    outline: none;
}

input[type="submit"] {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #2980b9;
}

.parem {
    flex: 1;
    max-width: 35%;
    padding: 20px;
    border-radius: 10px;
}
img{
    width: 100px;
}

form{
    width: 50%;
    border: solid 1px grey;
}

form label{
    font-size: larger;
}

.container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

#menyykiht {
    float: left;
    width: 20%;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
    margin-right: 20px;
}

#menyykiht h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #222;
}

#menyykiht ul {
    list-style: none;
    padding-left: 0;
}

#menyykiht li {
    margin-bottom: 8px;
}

#menyykiht a {
    text-decoration: none;
    color: #007BFF;
}

#menyykiht a:hover {
    text-decoration: underline;
}

#sisukiht {
    float: left;
    width: 100%;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

#sisukiht img {
    width: 400px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
    display: block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    object-fit: cover;
}

#sisukiht p {
    margin-bottom: 10px;
}

#sisukiht strong {
    font-weight: bold;
    color: #222;
}

a[href*="lisa1punkt"] {
    color: green;
    margin-left: 5px;
    font-weight: bold;
}

a[href*="emalda1punkt"] {
    color: red;
    margin-left: 5px;
    font-weight: bold;
}

.kommentaaririda {
    margin: 8px 0;
    padding: 10px 40px 10px 12px;
    background-color: #f9f9f9;
    border-left: 5px solid #007BFF;
    border-radius: 8px;
    position: relative;
}

.kommentaaririda .kustuta {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #cc0000;
    text-decoration: none;
    font-size: 16px;
}

.kommentaaririda .kustuta:hover {
    color: #ff0000;
}

#commform {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#commform input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

#commform input[type="submit"] {
    padding: 10px 20px;
    background-color: #007BFF;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

#commform input[type="submit"]:hover {
    background-color: #0056b3;
}

#jalusekiht {
    clear: both;
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #888;
}

header{
    background: rgb(202, 207, 243);
    padding:1.2rem 2rem;
}
header h1{
    margin:0;
    color: rgb(60, 60, 60);
    font-size:2.6rem;
    letter-spacing:.05em;
}

nav{
    background: #cacff3;
}
nav ul{
    display:flex;
    gap:2rem;
    margin:0;
    padding:0 2rem;
    list-style:none;
}
nav a{
    display:block;
    padding:.8rem 0;
    text-decoration:none;
    font-weight:600;
    transition:color .3s, border-bottom .3s;
    color: #3c3c3c;
}
nav a:hover,
nav a:focus{
    border-bottom:2px solid currentColor;
}