/* Reset some default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Base styles for the body */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    min-height: 100vh;
}


/* Navbar osa */

/* logo suurus jne, aga hetkel on natukene kentsakas */
/* .logo{
    height: 50px;
    float: left;
    filter: invert(1);
    padding: 14px 16px;
} */

.navbar {
    background-color: #000000;
    overflow: hidden;
    font-family: Arial;
    margin-bottom: 0;
    
}

.navbar a, .logo {
    float: left;   
    font-size: 16px;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    line-height: normal;
}

.navbar a {
    padding: 14px 16px;
}

/* Dropdown menuu  */
.dropdown {
    float: left;
    overflow: hidden;
    text-align: center;
    
}

.dropdown .dropbtn {
    font-size: 16px;
    border: none;
    outline: none;
    color: #fff;
    background-color: inherit;
    font-family: inherit;
    padding: 14px 16px;
    line-height: normal;
}

.navbar a:hover, .dropdown:hover .dropbtn {
    background-color: #183252;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a{
    float: none;
    color: #000000;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover{
    background-color: #ddd;
}

.dropdown:hover .dropdown-content{
    display: block;
}

/* Avaleht */
main {
    flex-grow: 1;
    
}
.avaleht-pilt {
    background-image: url(https://wp.velvet.ee/wp-content/uploads/2022/02/velvet-works2-3840x2160.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    color: black;
    justify-content: center;
    height: auto;
    width: auto;
    filter: invert(0.92);
    padding: 50px;
    
}

.avaleht-text{
    display: inline-block;
    background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
    /* background-color: rgba(0, 0, 0, 0.8); */
    padding: 50px 20px;
    align-items: center;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.avaleht-text h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.avaleht-text p {
    font-size: 1.2rem;
    color: #CCC;
    margin: 10px;
}

/* Galerii osa */
.galerii {
    text-align: center;
    padding: 20px;
}

.pildi-galerii {
    display: flex;
    justify-content: center; /* Center the images horizontally */
    gap: 20px; /* Add space between the images */
    flex-wrap: wrap; /* Wrap to next line for smaller screens */
}

.pildi-galerii a {
    display: block;
    width: 300px; /* Set a fixed width for each box */
    height: 300px; /* Set a fixed height for each box */
    background-color: #f0f0f0;
    text-align: center;
    position: relative; /* To position the title */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* For pop-up effect */
}

/* Pop-up effect on hover */
.pildi-galerii a:hover {
    transform: translateY(-10px); /* Moves the box up on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Shadow effect on hover */
}

.pildi-galerii img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Makes sure the image covers the box without stretching */
}

.pildi-galerii a::after {
    content: attr(alt); /* Uses the alt text as the title */
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 5px;
    font-size: 16px;
    border-radius: 0 0 10px 10px;
}

/* Tooted */
.cointainer {
    text-align: center;
    font-family: Arial, sans-serif;
    padding: 20px;
}

h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-align: center;
}

.container p {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

/* Toodete blokid */
.product-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.product-box {
    background-color: #CCC;
    border-radius: 15px;
    box-shadow: 0 4 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    width: 250px;
    text-decoration: none;
    color: #000;
}

.product-box img {
    width: 100%;
    border-radius: 10px;
}

.product-box h2 {
    font-size: 24px;
    margin: 10px;
    color: #000;
    text-decoration: underline;
}

.product-box:hover {
    background-color: #f4f4f4;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.product {
    text-align: center;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin: 10px;
    max-width: 250px;
    background-color: #f9f9f9;
}

.product img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.product h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product p {
    font-size: 1rem;
    color: #333;
}

/* Kontakt vorm */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.contact-form h2 {
    font-size: 2rem;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

.contact-form p {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
    background-color: #f9f9f9;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #000;
    background-color: #fff;
}

.contact-form .submit-button {
    background-color: #000;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form .submit-button:hover {
    background-color: #000;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #000;
    color: #fff;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
    margin: 0;
}

/* Ulemine footer */
.footer-logo {
    max-width: 300px; /* Control the size of the logo */
    margin-bottom: 10px;
    filter: invert(1); /* Invert the color of the image */
}

.kontakt{
    padding: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.kontakt table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px;
    padding: 0;
    text-align: left;
    flex: 1;
}

.kontakt th, td {
    padding: 8px;
    text-align: center;
    color: #fff;
}

.kontakt th {
    background-color: #000;
}

.kontankt td {
    background-color: #000;
}

a:link{
    color: #fff;
    text-decoration: none;
}

/* Alumine footer */
.footer-bottom {
    background: #fff;
    color: #000;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
    margin: 0;
}

