body {
    display: flex;
    flex-direction: column;
    background-color: #5d5d5d; 
    background-image: url('images/backg1.webp'), url('images/backg2.webp');
    background-position: left, right;
    background-repeat: no-repeat, no-repeat;
    background-size: cover;
    background-size: contain;
    background-attachment: fixed;
    margin: 0;
    font-family: Arial, sans-serif;
}


.wrapper {
    position: relative;
    width: 100%;
    max-width: 824px; 
    margin: 0 auto;
    padding: 20px;
    border-radius: 15px;
    box-sizing: border-box;
    background: linear-gradient(to bottom, #5d5d5d, #6c513e);
}

header {
    width: 100%;
    display: flex;
    justify-content: center; 
    align-items: center;
    margin-bottom: 20px;
}

.logo h1 {
    margin: 0;
    font-size: 36px; 
    font-weight: bold; 
    text-shadow: 1px 1px 1px rgba(147, 246, 255, 0.5);
}


nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


nav ul li {
    display: inline-block;
    margin-left: 20px;
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: lightgrey;
}

main {
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.work {
    width: 100%;
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    margin-bottom: 20px;
}

.work img {
    width: 100%;
    max-width: 48%; 
    border-radius: 5px; 
    border: 3px solid rgb(194, 194, 194); 
}

.contact-form,
.appointment-form {
    width: 100%;
    margin-bottom: 20px;
}

.contact-form h2,
.appointment-form h2 {
    margin-top: 0;
}

.contact-form form,
.appointment-form form {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;
}

.contact-form label,
.appointment-form label {
    display: block;
    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea,
.appointment-form input {
    width: calc(100% - 22px);
    padding: 5px;
    margin-bottom: 10px;
}

.contact-form button,
.appointment-form button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover,
.appointment-form button:hover {
    background-color: #45a049;
}

           
footer a {
    color: white;
    text-decoration: none;
    line-height: 2;
  }
  
  footer a:first-child {
    margin-right: auto;
  }
  
  footer a[href^="javascript"] {
    position: relative;
    color: #000;
    background-color: #fff1f1;
    border-radius: 3px;
    padding: 0 10px;
  }

@media (min-width: 268px) and (max-width:430px) {
    nav {
        position: relative; 
        font-size: 12px; 
        padding: 10px 0; 
        background-color: rgba(0, 0, 0, 0.5); 
        width: 90%; 
        border-radius: 15px;
        text-align: center;
    }

    nav ul {
        display: flex;
        flex-direction: column; 
        align-items: center; 
    }

    nav ul li {
        margin: 5px 0; 
    }

}

@media (min-width: 430px) and (max-width: 1024px) {
    nav {
        position: relative; 
        font-size: 12px; 
        padding: 10px 0; 
        margin-left: 280px;
        background-color: rgba(0, 0, 0, 0.5); 
        width: 25%; 
        border-radius: 15px;
        text-align: center;
        left: unset; 
        top: unset; 
    }

    nav ul {
        display: flex;
        flex-direction: column; 
        align-items: center; 
    }
    nav ul li:hover {
        background-color: rgba(211, 211, 211, 0.289); 
    }
    

    nav ul li {
        margin: 5px 0; 
    }

    header {
        width: 100%;
        display: flex;
        justify-content: center; 
        align-items: center;
        margin-bottom: 20px;
    }

    .logo h1 {
        margin: 0;
        font-size: 36px; 
        font-weight: bold; 
        text-shadow: 1px 1px 1px rgba(147, 246, 255, 0.5);
    }

    .wrapper {
        width: 90%;
    }
}


@media (min-width: 1024px) {
    
    nav {
        position: absolute;
        font-weight: bold;
        top: 20px;
        left: 20px;
    }
}
