/* Modernisoidut tyylit */
body {
    margin: 0;
    font-family:Arial, Helvetica, sans-serif;
    color: #333;
}

.logo img{
    height: 4em;
    padding: 0.6em;
    position: absolute;
}

.kuvasivu{
    height: 100vh;
    width: 25vw;
    text-align: center;
    margin: auto;
}

.kuvasivu p, .kuvasivu a{
    margin: 1em;
}

body, html{
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}


.footer li{
    list-style-type: none;
    display: inline-block;
}

.footer a{
    color: #333;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px;
    transition: background-color 0.3s, color 0.3s;
}

.footer li a:hover{
    background-color: #7bc47f;
    color: #fff;
    border-radius: 5px;
}

.nav ul {
    display: flex;
    gap: 20px;
}

nav li{
    list-style-type: none;
}

.nav a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px;
    transition: background-color 0.3s, color 0.3s;
}

.nav a:hover {
    background-color: #7bc47f;
    color: #fff;
    border-radius: 5px;
}

.logotext{
    margin-left: 4.5em;
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 84%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../content/ruohonleikkuu.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.hero h1 {
    font-size: 3rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    color: white;
    margin: 20px 0;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #5c9460;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #69aa6d;
}

.footer {
    text-align: center;
    height: 5%;
    padding: 10px;
    background-color: #f5f5f5;
    color: #555;
    border-top: 1px solid #ddd;
}

/* Palvelut-osio */
.services {
    height: 82%;
    padding: 0 20px;
    text-align: center;
}

.services h2 {
    font-size: 2rem;
    margin-right: 51%;
    color: #333;
}

.service-cards {
    width: 45%;
    padding: 3em;
    display: grid;
    grid-template-rows: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.servicecontent{
    position: absolute;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../content/puutarhuri.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 100%;
    width: 50%;
    top: 0;
    right: 0;
    z-index: -1;
}

.about{
    z-index: 1;
    position: relative;
    top: 10%;
    color: white;
    font-size: 1.2em;
    text-align: center;
}
.servicecontent h3{
    z-index: 1;
    bottom: 5%;
    color: white;
    right: 25%;
    position: absolute;
}

.alateksti{
    z-index: 1;
    bottom: 9%;
    color: white;
    right: 25%;
    position: absolute;
}

.service-card {
    background-color: #f5f5f5;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#nurmikko{
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("../content/ruohonleikkuu.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#kivetys{
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("../content/pihakivi.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#istutus{
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("../content/istutukset.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.service-card h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 1rem;
    color: #eee;
    line-height: 1.5;
    margin-bottom: 15px;
}

.service-card a {
    display: inline-block;
    padding: 10px 15px;
    background-color: #5c9460;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.service-card a:hover {
    background-color: #69aa6d;
}

.contact {
    padding: 5px 20px;
    text-align: center;
    background-color: #ddd;
    height: 83%
}

.contact h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    background-color: white;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 250px;
    text-align: center;
    border-radius: 8px;
}

.contact-card h2 {
    color: #4caf50;
    margin-bottom: 10px;
}

.contact-card p {
    color: #666;
}

.contact-card a {
    color: #4caf50;
    text-decoration: none;
    font-weight: bold;
}


.contact-form {
    background-color: white;
    padding: 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form h2 {
    color: #333;
    margin-bottom: 20px;
}

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

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form button {
    background-color: #4caf50;
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

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

/* Fullscreen background for the popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Popup content box */
.popup-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 350px;
}

#close {
    background-color: #568a59;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

#close:hover {
    background-color: #345536;
}