/* MOBILE SETTINGS */

@media (max-width: 900px) {


    .cover img {
        height: 350px;
    }

    h2,
    .h2 {
        font-size: 130% !important;
    }

    .covertext p {
        font-size: 60% !important;
    }

    h3,
    .h3 {
        font-size: 135%;
    }

    p,
    .p {
        font-size: 85%;

    }

    .intro p {
        font-size: 80%;
    }

    .hyper {
        max-width: 200px;
    }

    .second img {
        margin-top: 50px;
    }

    textarea {
        max-width: 350px;
    }

    .caption h1 {
        font-size: 200% !important;
    }

    .footer-text,
    .footer-links,
    .subtext {
        margin-bottom: 0.5rem;
        /* Smaller gap on mobile */
    }

    .content-block {
        margin-top: 70px;
    }

}

@media (max-width: 460px) {

    .cover img {
        height: 350px;
    }

    .covertext {
        max-width: 100%;
    }

    p,
    .p {
        font-size: 85%;
    }

    .intro h1 {
        font-size: 150%;
	margin-top: 30px;
    }

    .intro p {
        font-size: 95%;
    }

    .hinnasto p {
        font-size: 75%;
    }


    .card-group {
        max-width: 100%;
    }

    .card img {
        max-width: 100%;
    }

    .container > .row {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1.5rem;
    }

    .hyper {
        max-width: 400px;

    }

    .hyper a {
        font-size: 105% !important;
        padding: 20px 20px !important;
    }

    .footer-text,
    .footer-links,
    .subtext {
        margin-bottom: 0.5rem;
        /* Smaller gap on mobile */
    }

    h3.body-headers {
        text-align: center;
        margin-top: 70px;
    }

    h2.news-header {
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .navbar-title {
	padding-left: 0.5rem !important;
        text-align: center;
	font-size: 110%;
	display: block;
    }

   

}

/* @@ NAV BAR SETTINGS @@ */
.navbar-brand {
    color: rgb(189, 131, 24) !important;
    font-size: 150%;
    text-decoration: none;
}

nav {
    font-size: 120%;
    background-color: rgb(23, 22, 22) !important;
}

.nav-link {
    text-decoration: none;
    color: ghostwhite;
}

.nav-link:hover {
    color: rgb(189, 131, 24) !important;
}

.nav-item .dropdown-menu a:hover {
    color: black !important;
    background: rgb(189, 131, 24) !important;
    cursor: pointer;
}

.nav-link:active {
    color: rgb(189, 131, 24);
}

.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgb(189, 131, 24)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

/* COVER TEXT SETTINGS */
.container1 {
    position: relative;
    text-align: center;
    top: 65px;
}

/* */
h2 {
    text-align: center;
    color: ghostwhite;
    font-size: 160%;
}

/* COVER TEXT */
.covertext {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    color: ghostwhite;
    padding-top: 20px;
    filter: drop-shadow(60px 60px 60px black);
    font-size: 135%;
}

/* COVER IMAGE */
.cover img {
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    filter: opacity(65%);
    max-width: 100%;
}

/* COVER TEXT TRANSITION/ANIMATION */

.covertext {
    opacity: 0;
    transition: opacity .5s .5s ease-out;
}


.covertext.is-visible {
    opacity: 1;
}

/* INTRO TEXTS */

h1 {
    color: rgb(189, 131, 24);
    font-weight: lighter;
    font-size: 350%;
}

.intro {
    margin-top: 150px;
    color: ghostwhite;
    margin-left: auto;
    margin-right: auto;
    max-width: 1000px;
    text-align: center;
}

.intro p {
    font-size: 110%;
}

.coversub {
    margin-top: 30px;
}

/* LINK TO FIRST NAVIGATION */

.hyper {
    text-decoration: none !important;
    color: black;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-top: 50px;
    max-width: 400px;

}

.hyper a {
    color: black;
    font-size: 130%;
    padding: 20px 32px;
    background-color: rgb(189, 131, 24);
    border-radius: 4px;
}

.fas,
i {
    color: rgb(189, 131, 24);
}

.hyper a:hover {
    color: ghostwhite;
    text-decoration: none;
}

body {
    background-color: rgb(23, 22, 22);
    max-width: 100%;
}

/* FOOTER PIC */

.second img {
    clip-path: polygon(0 0, 100% 50%, 100% 100%, 0 100%);

}


.container {
    padding-top: 70px;
    text-align: center;
    color: ghostwhite;
}


/* INFO TEXT AND PIC SETTINGS */
.infopics img {
    max-width: 100%;
    margin-top: 50px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.infotext h3 {
    color: rgb(189, 131, 24);
    text-align: center;
    margin-top: 20px;
    font-size: 200%;

}

.infotext p {
    font-size: 110%;
}

.infotext {
    text-align: center;
    color: ghostwhite;
    max-width: 100%;
}

/* NEWS SETTINGS */

.news-header {
    text-align: left;
    color: rgb(189, 131, 24);
    margin-top: 150px;
    font-weight: lighter;
    font-size: 250%;
    margin-bottom: 20px;
}

.hinnasto-headers {
    color: rgb(189, 131, 24);
    text-align: left;
    margin-top: 50px;
    font-size: 170%;
}

.hinnasto-pg {
    margin-top: 15px;
    color: ghostwhite;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    text-align: left;
    font-size: 120%;
}

.hinnasto {
    color: ghostwhite;
    margin: 0;
    max-width: 1000px;
    font-size: 130%;
    display: block;
    text-align: left;
    padding-left: 20px;
    list-style: disc inside;

}

.hinnasto li {
    margin-bottom: 1rem;
    /* adjust the value as needed */
    font-size: 85%;

}

.content-block {
    padding: 2rem;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
}

h4 {
    color: rgb(189, 131, 24);
    text-align: center;
    margin-top: 100px;
    font-weight: lighter;
}

h4.hinnasto-h4 {
    color: rgb(189, 131, 24);
    text-align: left;
    margin-top: 50px;
    font-weight: lighter;
}

.source {
    text-align: center;
    color: ghostwhite;
    font-weight: lighter;

}

/* ROW SETTINGS */
.row h3 {
    color: rgb(189, 131, 24);
}

.row2 {
    text-align: center;
    color: ghostwhite;
    max-width: 100%;
}


/* CARD SETTINGS */
.card {
    background-color: rgb(49, 48, 54);
    color: ghostwhite;
    max-width: 500px;
    width: 100%;
    min-width: 250px;
    min-height: 400px;
}

.card-img-top {
    height: 230px;
    /* or any height you want */
    object-fit: cover;
    /* scales and crops image to fill */
    width: 100%;
    /* full width */
    display: block;
    /* remove inline-gap */
}

.palvelu-row {
    padding-top: 50px;
    margin-top: 20px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Soft shadow */
}

.container > .row {
    --bs-gutter-x: 2rem;
    /* horizontal gap between cards */
    --bs-gutter-y: 3rem;
    /* vertical gap (optional) */
}


.card:hover {
    transform: translateY(-5px);
    /* Slight hover effect */
    box-shadow: 0 6px 12px rgb(189, 131, 24);
}

.card-link {
    text-decoration: none;
    color: white;
}

.card-title {
    text-align: left;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    text-align: left;
}

.card-link:hover {
    color: rgb(189, 131, 24);
}

/* FORM SETTINGS */
form {
    color: white;
}

.formtext {
    color: rgb(189, 131, 24);
    font-size: 110%;
}

.form-group {
    width: 50%;
    margin: auto;
}

.form h3 {
    color: rgb(189, 131, 24);
    text-align: center;
}

/* FOOTER BACKGROUND AND SETTINGS */
footer {
    background-color: rgb(23, 22, 22);
    bottom: 0;
    margin-left: auto;
    margin-right: auto;
}

/* FOOTER HEADERS */
.footer-text {
    color: rgb(189, 131, 24);
    text-decoration: none !important;
    margin-left: auto;
    margin-right: auto;
}

.footer-block {
    width: 100%;
}

.footer-links a {
    text-decoration: none !important;
}

.footer-links a:hover {
    text-decoration: underline !important;
}

.footer-text h3 {
    font-size: 200%;
    display: block;
}

/* FOOTER CONTENT */
.subtext {
    color: ghostwhite;
}

.email-link {
    color: rgb(189, 131, 24);
    text-decoration: none;

}

.email-link:hover {
    text-decoration: underline;
    color: ghostwhite;
}

/* GOOGLE MAPS*/

.map-responsive {
    overflow: hidden;
    position: relative;
    height: 0;
    margin-top: 30px;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 30%;

}

.map-responsive iframe {
    left: 0;
    top: 0;
    position: absolute;
}

.body-headers {
    color: rgb(189, 131, 24);
    text-align: center;
    margin-top: 50px;
    font-size: 170%;
}

.body-pg {
    margin-top: 30px;
    color: ghostwhite;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    text-align: center;
    font-size: 110%;
}

.contact {
    margin-top: 100px;
}

/* CONTACT FORM */

form {
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    margin-bottom: auto;

}

form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: rgb(189, 131, 24);
}

label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.7rem;
    border-radius: 5px;
    border: none;
    margin-top: 0.4rem;
    font-size: 1rem;
    background-color: #444;
    color: ghostwhite;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.g-recaptcha {
    margin-top: 1.5rem;
}

button {
    margin-top: 2rem;
    background-color: rgb(189, 131, 24);
    color: ghostwhite;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: rgb(160, 110, 20);
}

/* CONTACT FORM ENDS */

.caption h1 {
    color: ghostwhite;
    font-size: 250%;
}

/* CAROUSEL SLIDE SETTINGS */
.carousel-item img {
    max-height: 950px;
    filter: opacity(65%);
    max-width: 100%;
}

.carousel-caption {
    color: ghostwhite;
    filter: drop-shadow(40px 40px 40px black);
    font-size: 130%;
    top: 60%;
    transform: translateY(-50%);
}

.carousel-caption h3 {
    color: ghostwhite;
}


.mailto:hover {
    text-decoration: none;
    color: black;
}

.mailto {
    border-radius: 2px;
    width: 110px;
    font-size: 120%;
    font-weight: bold;
    color: black;
}

/* GALLERY COLUMNS - not in use currently */

.gallery {
    margin-top: 100px;
    display: block;
    text-align: center;

}

.gallery a {
    margin-left: 25px;
}

.gallery img {
    border-radius: 6px;
    margin-top: 20px;
}
