/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    text-transform: none;
    letter-spacing: normal;
    color: #FFFFFF;
}

.card {
    background-color: rgb(57 134 185 / 0.5);
    color: #eeeeee;
}

.list-group {
    --bs-list-group-bg: #00334BE5;
    --bs-list-group-color: none;
    --bs-list-group-border-color: rgba(256, 256, 256, 0.125);
}

.btn-success {
    color: #000000;
}

/*img { !* svg on an img tag *!*/
/*  -webkit-filter: invert(.75); !* safari 6.0 - 9.0 *!*/
/*  filter: invert(.75);*/
/*}*/
.invalidForm {
    font-size: 1em; /* Increase font size */
    color: #ff4d4d; /* Red for errors */
    background-color: #4a0000; /* White background */
    padding: 0.5em; /* Add padding */
    border-radius: 0.25em; /* Add border radius for rounded corners */
}

.successForm {
    font-size: 1em; /* Increase font size */
    color: #6dff74; /* Red for errors */
    background-color: #094400; /* White background */
    padding: 0.5em; /* Add padding */
    border-radius: 0.25em; /* Add border radius for rounded corners */
}

.input-dark {
    background-color: rgb(57 134 185 / 0.5);
    border: 2px solid #9f9f9f;
    color: #FFFFFF;
}
.input-dark:focus {
    background-color: #00334BE5;
    color: #FFFFFF;

    box-shadow:0 0 0 1px floralwhite;
}

body {
    padding-top: 5.5rem;
    padding-bottom: 3rem;
    color: #eeeeee;
    background-image: linear-gradient(180deg, rgb(10, 70, 90) 0%, rgb(75, 140, 180) 60%, rgb(50, 170, 220) 100%);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-attachment: fixed;
}

.padding {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.padding-light {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

img.clip-right {
    -webkit-clip-path: polygon(0 0, 100% 0%, 75% 100%, 0% 100%);
    clip-path:         polygon(0 0, 100% 0%, 75% 100%, 0% 100%);
}

img.clip-left {
    -webkit-clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
    clip-path:         polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

img.diagonal {
    -webkit-clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    clip-path:         polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}

img.diagonal2 {
    -webkit-clip-path: polygon(5% 0, 100% 0%, 95% 100%, 0% 100%);
    clip-path:         polygon(5% 0, 100% 0%, 95% 100%, 0% 100%);
}

.vertical-center {

    /*min-height: 100%;  !* Fallback for browsers do NOT support vh unit *!*/
    /*min-height: 100vh; !* These two lines are counted as one :-)       *!*/

    display: flex;
    /*justify-content:flex-end;*/
    align-items: center;
    gap: 15px;

    /*vertical-align: middle;*/
}
        img.diagonal3 {
    -webkit-clip-path: polygon(25% 0, 100% 0, 100% 85%, 90% 100%, 0 100%, 0 0);
    clip-path:         polygon(25% 0, 100% 0, 100% 85%, 90% 100%, 0 100%, 0 0);
}
img.diagonal4 {
    -webkit-clip-path: polygon(30% 0%, 80% 0, 100% 30%, 100% 100%, 70% 100%, 20% 100%, 0% 70%, 0 0);
    clip-path:         polygon(30% 0%, 80% 0, 100% 30%, 100% 100%, 70% 100%, 20% 100%, 0% 70%, 0 0);
}

.btn-outline-blue {
    --bs-btn-color: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #00334BE5;
    --bs-btn-hover-border-color: #00334BE5;
    --bs-btn-focus-shadow-rgb: 255,255,255;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #fff;
    --bs-btn-active-border-color: #fff;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #fff;
    --bs-gradient: none;
}

.accordion {
    --bs-accordion-color: #fff;
    --bs-accordion-bg: rgb(57 134 185 / 0.9);
    --bs-accordion-transition: color 0.15s ease-in-out,background-color 0.15s ease-in-out,border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out,border-radius 0.15s ease;
    --bs-accordion-border-color: var(--bs-border-color);
    --bs-accordion-border-width: 1px;
    --bs-accordion-border-radius: 0.375rem;
    --bs-accordion-inner-border-radius: calc(0.375rem - 1px);
    --bs-accordion-btn-padding-x: 1.25rem;
    --bs-accordion-btn-padding-y: 1rem;
    --bs-accordion-btn-color: #ffffff;
    --bs-accordion-btn-bg: rgb(57 134 185 / 0.5);
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2355595c'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-icon-width: 1.25rem;
    --bs-accordion-btn-icon-transform: rotate(-180deg);
    --bs-accordion-btn-icon-transition: transform 0.2s ease-in-out;
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23171717'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-focus-border-color: #8d8d8d;
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(26, 26, 26, 0.25);
    --bs-accordion-body-padding-x: 1.25rem;
    --bs-accordion-body-padding-y: 1rem;
    --bs-accordion-active-color: #171717;
    --bs-accordion-active-bg: #e8e8e8;
}

.accordion-button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);
    font-size: 1rem;
    color: #FFFFFF;
    text-align: left;
    background-color: var(--bs-accordion-btn-bg);
    border: 0;
    overflow-anchor: none;
    transition: var(--bs-accordion-transition);
}

.accordion-button:not(.collapsed) {
    color: #FFFFFF;
    background-color: #00334BE5;
    box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color);
}

.table-dark {
    --bs-table-color: #fff;
    --bs-table-bg: #00334BE5;
    --bs-table-border-color: #373b3e;
    --bs-table-striped-bg: #2c3034;
    --bs-table-striped-color: #fff;
    --bs-table-active-bg: #373b3e;
    --bs-table-active-color: #fff;
    --bs-table-hover-bg: #323539;
    --bs-table-hover-color: #fff;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Carousel base class */
.carousel {
    margin-bottom: 4rem;
}
/* Since positioning the image, we need to help out the caption */
.carousel-caption {
    bottom: 3rem;
    z-index: 10;
}

/* Declare heights because of positioning of img element */
.carousel-item {
    height: 32rem;
}
.carousel-item > img {
    position: absolute;
    top: 0;
    left: 0;
    /*min-width: 100%;*/
    height: 32rem;
}


/* MARKETING CONTENT
-------------------------------------------------- */

/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
    margin-bottom: 1.5rem;
    text-align: center;
}
.marketing h2 {
    font-weight: 400;
}
/* rtl:begin:ignore */
.marketing .col-lg-4 p {
    margin-right: .75rem;
    margin-left: .75rem;
}
/* rtl:end:ignore */


/* Featurettes
------------------------- */

.featurette-divider {
    margin: 5rem 0; /* Space out the Bootstrap <hr> more */
}

.featurette-divider-footer {
    margin: 0rem 0; /* Space out the Bootstrap <hr> more */
}

/* Thin out the marketing headings */
.featurette-heading {
    font-weight: 300;
    line-height: 1;
    /* rtl:remove */
    letter-spacing: -.05rem;
}


/* RESPONSIVE CSS
-------------------------------------------------- */

@media (min-width: 40em) {
    /* Bump up size of carousel content */
    .carousel-caption p {
        margin-bottom: 1.25rem;
        font-size: 1.25rem;
        line-height: 1.4;
    }
}
@media (min-width: 62em) {
    .featurette-heading {
        margin-top: 7rem;
    }
}

/* Ivo poolt loodud. Katsetus. Hakkan siit progema*/
/*Featurette stuff*/

.row.featurette {
    display: flex;
    align-items: center; /* Center vertically */
    margin-bottom: 0; /* Reset bottom margin to avoid additional spacing issues */
}

.col-md-7 {
    margin-bottom: 2rem; /* Adjust spacing as needed */
}

.featurette-heading {
    font-size: 50px;
    margin-top: 0; /* Adjust as needed */
}

img.img-fluid {
    max-width: 100%; /* Ensure the image is responsive */
    height: auto; /* Maintain aspect ratio */
}

/* Footer*/
.footer {
    background-color: #f8f9fa; /* Light gray background */
    padding: 5px 0; /* Adjust padding as needed */
}

.footer p {
    margin: 0; /* Remove default margin */
    font-size: 14px; /* Adjust font size as needed */
}

@media (max-width: 768px) {
    .footer .text-left,
    .footer .text-center,
    .footer .text-right {
        text-align: center; /* Center text on small screens */
    }
    .footer .col-md-4 {
        margin-bottom: 10px; /* Add spacing between blocks on small screens */
    }
}

.navbar-background {
    background-image: linear-gradient(180deg, rgb(8, 55, 75) 0%, rgb(50, 125, 160) 100%);
}

/* Ensure the navbar items stack properly */

.navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Logo size based on viewport width */
.navbar-brand img {
    width: 10vw; /* Adjust as needed for smaller screens */
    height: auto; /* Maintain aspect ratio */
    min-width: 60px; /* Minimum width to prevent the logo from getting too small */
    max-width: 100px; /* Maximum width to prevent the logo from getting too large */
}

.background-text {
    display: none;
}

/* Shared content card
------------------------- */

.content-card {
    padding: 2rem;
    border-radius: 1.25rem;
    background: rgba(0, 51, 75, 0.9);
}

.content-card + .content-card {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .content-card {
        padding: 1.25rem;
    }
}

/* Camp page
------------------------- */

.camp-page-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.camp-page-heading {
    font-weight: 300;
    letter-spacing: -.05rem;
}

.camp-page-lead {
    opacity: 0.9;
}

.camp-hero-image {
    border-radius: 1rem;
    object-fit: cover;
}

.camp-hero .featurette-heading {
    font-size: 2.75rem;
}

.camp-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.camp-chip {
    background-color: #00334BE5;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2rem;
    padding: 0.4rem 1.1rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.camp-section {
    margin-bottom: 3rem;
}

.camp-section-heading {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 2.5rem;
}

.camp-empty-state {
    padding: 2rem 1rem 3rem;
}

.camp-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

.camp-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.camp-card-dates {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    opacity: 0.85;
    margin-bottom: 0.25rem;
}

.camp-card-meta {
    opacity: 0.85;
    margin-bottom: 0.75rem;
}

/* Past camp
------------------------- */

.camp-past-card {
    padding: 2rem;
    border-radius: 1.25rem;
    background: rgba(0, 51, 75, 0.9);
    margin-bottom: 4rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.camp-past-intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}

.camp-past-description {
    padding: 0.5rem;
}

.camp-past-description h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    line-height: 1.2;
}

.camp-past-description p {
    margin: 0;
    line-height: 1.7;
    opacity: 0.9;
}

/* Camp gallery
------------------------- */

.camp-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 140px;
    gap: 0.6rem;
}

.camp-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.8rem;
}

.camp-gallery img:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

/* Activities
------------------------- */

.camp-activities {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.camp-activities-heading {
    margin: 0 0 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.camp-activities-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.camp-activities-content.no-photos {
    grid-template-columns: 1fr;
}

.camp-activity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0;
}

.camp-activity-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: 0.6rem;
}

.camp-activity-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.8rem;
}

.camp-activity-photos img:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.camp-questions p a {
    margin: 0 0.25rem;
}

@media (max-width: 768px) {
    .camp-hero .featurette-heading {
        font-size: 2.1rem;
    }

    .camp-page-intro {
        margin-bottom: 2rem;
    }

    .camp-section-heading {
        font-size: 1.7rem;
        margin-bottom: 1.5rem;
    }

    .camp-past-card {
        padding: 1.25rem;
    }

    .camp-past-intro {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .camp-past-description {
        padding: 0;
    }

    .camp-past-description h3 {
        font-size: 1.5rem;
    }

    .camp-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 110px;
    }

    .camp-gallery img:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }

    .camp-activities-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .camp-activity-photos {
        grid-auto-rows: 110px;
    }

    .camp-activity-tags {
        gap: 0.4rem;
    }
}