/* Nollataan marginaalit ja paddingsit */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Navigaatio */
.navbar {
    background-color: #ffffff;
    padding: 1.5rem 2rem;
    width: 100%;
    border-bottom: 1px solid #e5e5e5;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #295853;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #006352;
}

.nav-arrow {
    font-size: 1rem;
    line-height: 1;
}

html {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Playfair Display', serif;
    background-image: url('background3.png');
    background-size: 110% auto;
    background-position: center top;
    background-blend-mode: overlay;
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

h1 {
    color: #295853;
    font-weight: 700;
    margin-bottom: 40px;
    margin-top: 40px;
}

h2 {
    color: #006352;
    font-weight: 500;
    margin-bottom: 10px;
}

h3 {
    font-family: 'Roboto Slab', serif;
    color: #7e3d00;
    font-weight: 500;
    margin-bottom: 40px;
    font-size: small;
}

footer {
    font-family: 'Roboto Slab', serif;
    color: #7e3d00;
    font-weight: 500;
    margin-top: 40px;
    margin-bottom: 40px;
}

p {
    font-family: 'Roboto Slab', serif;
    color: #7e3d00;
    font-weight: 500;
    margin-bottom: 40px;
}

.container {
    background-color: rgba(255, 255, 255, 0);
    border-radius: 10px;
    margin-top: 5%;
    margin-bottom: 2%;
    justify-content: center;
    padding: 20px;
    max-width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .container {
        padding: 20px 1.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    h2 {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    button {
        margin: 10px;
        padding: 12px 24px;
    }
}

button {
    font-family: 'Roboto Slab', serif;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #e28800;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    margin-left: 20px;
    margin-right: 20px;
}

button:hover {
    background-color: #bb7000;
}

#korttiNaytto {
    display: none;
    padding: 0 1.5rem;
    width: 100%;
    max-width: 80%;
    margin: 0 auto;
}

#korttiNaytto img {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    margin: 0 auto;
    display: block;
}

@media (min-width: 768px) {
    #korttiNaytto {
        max-width: 25rem;
    }
}

#korttiSelitys {
    font-family: 'Roboto Slab', serif;
    font-size: 16px;
    width: 100%;
    max-width: 100%;
    color: #002c26;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

@media (max-width: 768px) {
    #korttiNaytto {
        padding: 0 1.5rem;
    }
    
    #korttiNaytto img {
        max-width: calc(100% - 2rem);
    }
    
    #korttiSelitys {
        max-width: calc(100% - 2rem);
        font-size: 15px;
    }
}

.swiper-container {
    width: 100%;
    max-width: 100vw;
    height: auto;
    margin-top: 20px;
    padding: 0 5%;
    box-sizing: border-box;
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff00;
    border-radius: 10px;
    overflow: hidden;
    padding: 10px;
}

@media (min-width: 768px) {
    .swiper-container {
        max-width: 1200px;
        padding: 0 1rem;
    }
}

.swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.tarot-info {
    padding: 10px;
    background-color: #f5f5f500;
    text-align: center;
}

.tarot-info h2 {
    margin: 10px 0;
    color: #002c26;
}

.tarot-info p {
    font-size: 14px;
    color: #002c26;
}
