/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

 html {
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
  }
  
  /* Sections
     ========================================================================== */
  
  /**
   * Remove the margin in all browsers.
   */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    margin: 0;
	padding: 0;
  }
  
  /**
   * Render the `main` element consistently in IE.
   */
  
  main {
    display: block;
  }
  
  /**
   * Correct the font size and margin on `h1` elements within `section` and
   * `article` contexts in Chrome, Firefox, and Safari.
   */
  
  h1 {
    font-size: 2em;
    margin: 0.67em 0;
  }
  
  /* Grouping content
     ========================================================================== */
  
  /**
   * 1. Add the correct box sizing in Firefox.
   * 2. Show the overflow in Edge and IE.
   */
  
  hr {
    box-sizing: content-box; /* 1 */
    height: 0; /* 1 */
    overflow: visible; /* 2 */
  }
  
  /**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */
  
  pre {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
  }
  
  /* Text-level semantics
     ========================================================================== */
  
  /**
   * Remove the gray background on active links in IE 10.
   */
  
  a {
    background-color: transparent;
  }
  
  /**
   * 1. Remove the bottom border in Chrome 57-
   * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
   */
  
  abbr[title] {
    border-bottom: none; /* 1 */
    text-decoration: underline; /* 2 */
    text-decoration: underline dotted; /* 2 */
  }
  
  /**
   * Add the correct font weight in Chrome, Edge, and Safari.
   */
  
  b,
  strong {
    font-weight: bolder;
  }
  
  /**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */
  
  code,
  kbd,
  samp {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
  }
  
  /**
   * Add the correct font size in all browsers.
   */
  
  small {
    font-size: 80%;
  }
  
  /**
   * Prevent `sub` and `sup` elements from affecting the line height in
   * all browsers.
   */
  
  sub,
  sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  
  sub {
    bottom: -0.25em;
  }
  
  sup {
    top: -0.5em;
  }
  
  /* Embedded content
     ========================================================================== */
  
  /**
   * Remove the border on images inside links in IE 10.
   */
  
  img {
    border-style: none;
  }
  
  /* Forms
     ========================================================================== */
  
  /**
   * 1. Change the font styles in all browsers.
   * 2. Remove the margin in Firefox and Safari.
   */
  
  button,
  input,
  optgroup,
  select,
  textarea {
    font-family: inherit; /* 1 */
    font-size: 100%; /* 1 */
    line-height: 1.15; /* 1 */
    margin: 0; /* 2 */
  }
  
  /**
   * Show the overflow in IE.
   * 1. Show the overflow in Edge.
   */
  
  button,
  input { /* 1 */
    overflow: visible;
  }
  
  /**
   * Remove the inheritance of text transform in Edge, Firefox, and IE.
   * 1. Remove the inheritance of text transform in Firefox.
   */
  
  button,
  select { /* 1 */
    text-transform: none;
  }
  
  /**
   * Correct the inability to style clickable types in iOS and Safari.
   */
  
  button,
  [type="button"],
  [type="reset"],
  [type="submit"] {
    -webkit-appearance: button;
  }
  
  /**
   * Remove the inner border and padding in Firefox.
   */
  
  button::-moz-focus-inner,
  [type="button"]::-moz-focus-inner,
  [type="reset"]::-moz-focus-inner,
  [type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
  }
  
  /**
   * Restore the focus styles unset by the previous rule.
   */
  
  button:-moz-focusring,
  [type="button"]:-moz-focusring,
  [type="reset"]:-moz-focusring,
  [type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
  }
  
  /**
   * Correct the padding in Firefox.
   */
  
  fieldset {
    padding: 0.35em 0.75em 0.625em;
  }
  
  /**
   * 1. Correct the text wrapping in Edge and IE.
   * 2. Correct the color inheritance from `fieldset` elements in IE.
   * 3. Remove the padding so developers are not caught out when they zero out
   *    `fieldset` elements in all browsers.
   */
  
  legend {
    box-sizing: border-box; /* 1 */
    color: inherit; /* 2 */
    display: table; /* 1 */
    max-width: 100%; /* 1 */
    padding: 0; /* 3 */
    white-space: normal; /* 1 */
  }
  
  /**
   * Add the correct vertical alignment in Chrome, Firefox, and Opera.
   */
  
  progress {
    vertical-align: baseline;
  }
  
  /**
   * Remove the default vertical scrollbar in IE 10+.
   */
  
  textarea {
    overflow: auto;
  }
  
  /**
   * 1. Add the correct box sizing in IE 10.
   * 2. Remove the padding in IE 10.
   */
  
  [type="checkbox"],
  [type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
  }
  
  /**
   * Correct the cursor style of increment and decrement buttons in Chrome.
   */
  
  [type="number"]::-webkit-inner-spin-button,
  [type="number"]::-webkit-outer-spin-button {
    height: auto;
  }
  
  /**
   * 1. Correct the odd appearance in Chrome and Safari.
   * 2. Correct the outline style in Safari.
   */
  
  [type="search"] {
    -webkit-appearance: textfield; /* 1 */
    outline-offset: -2px; /* 2 */
  }
  
  /**
   * Remove the inner padding in Chrome and Safari on macOS.
   */
  
  [type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  
  /**
   * 1. Correct the inability to style clickable types in iOS and Safari.
   * 2. Change font properties to `inherit` in Safari.
   */
  
  ::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
  }
  
  /* Interactive
     ========================================================================== */
  
  /*
   * Add the correct display in Edge, IE 10+, and Firefox.
   */
  
  details {
    display: block;
  }
  
  /*
   * Add the correct display in all browsers.
   */
  
  summary {
    display: list-item;
  }
  
  /* Misc
     ========================================================================== */
  
  /**
   * Add the correct display in IE 10+.
   */
  
  template {
    display: none;
  }
  
  /**
   * Add the correct display in IE 10.
   */
  
  [hidden] {
    display: none;
  }
/* ===================== normalize.css pabaiga ============================== */
/* ========================================================================== */

/* ========================================================================== */
/* ==================== css kintamieji ====================================== */

:root {
    --balta-color: #fff;
	--background-color: #ddd;        /* sviesiai pilka */
    --body-a-color: #4c425f;         /* sviesiai pilka - purpurine */
    --body-a-hover-color: #5b830d;   /* tamsiai zalia */
    --body-shadow-color: #555;       /* tamsiai pilka */
	--bold-font-color: #333;         /* labai tamsiai pilka */
    --logo-1-color: #d9a600;         /* pilkai geltona */
    --logo-2-color: #ec4909;         /* tamsiai morkava */
    --slider-item-color: #8e8e8e;    /* labai tamsiai pilka */
    --form-background: #aaa;         /* pilka */
    --error-border-color: #A92E24;   /* morkavai raudona */
    --input-background: #eee;        /* sviesiai pilka */
    --form-button-color: #007bff;    /* melyna */
}

/* =================== kintamuju pabaiga ==================================== */
/* ========================================================================== */

html {
    overflow-x: hidden;
	font-family: sans-serif;
    min-height: 100vh;
    font-size: calc(14px + 10 * ((100vw - 300px) / 900));
    background: var(--background-color);/*#ddd;*/
}
body {
    overflow-x: hidden;
	width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-areas:
        "header"
        "main-menu"
        "hr-1"
        "main-content"
        "hr-2"
        "footer";
    grid-template-columns: 100%;
    grid-template-rows: auto auto 4px auto 4px auto;
}
body a {
    text-decoration:none;
    color: var(--body-a-color); /*#4c425f;*/
}
body  a:hover {
    color: var(--body-a-hover-color); /*#5b830d;*/
}
/* ------------------- HEADER ------------------------- */
header {
    grid-area: header;
}
.sc-header {
    display: grid;
    grid-template-areas:
    "logo-gallery language"
	"adres adres"
    "slaider slaider"
    "status status";
    grid-template-columns: 40vw 60vw;
    grid-template-rows: 9.2rem 7rem auto 4rem;
}
/* ----- logo carusel ------------------------------------------------------ */
/* ----- https://habr.com/ru/companies/skillfactory/articles/710196/ ------- */
.logo-gallery {
    grid-area: logo-gallery;
    text-align: center;
    filter: drop-shadow(0 0 0.5rem var(--body-shadow-color)); /*#555*/

    --s: 9rem; /* control the size */

    display: grid;
    width: var(--s);
    aspect-ratio: 1;
    overflow: hidden;
    padding: calc(var(--s)/20);
    margin: 0 auto;
    border-radius: 50%;
    position: relative;
    clip-path: circle(49.5%); /* to avoid a few glitch cause by overflow: hidden */
}
.logo-gallery::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: inherit;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--body-a-hover-color) 0%, var(--logo-1-color) 65%, var(--logo-2-color) 100%);  /* #5b830d #d9a600 #ec4909 */
    /*repeating-conic-gradient(#5b830d 0 30deg,#eca409 0 60deg);*/
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
        mask-composite: exclude;
}
.gallery-img {
    grid-area: 1/1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transform-origin: 50% 120.7%;
}
.logo-gallery::after,
.gallery-img {
    animation: m 12s infinite cubic-bezier(.5,-0.2,.5,1.2);
}
.gallery-img:nth-child(2) {animation-delay: -3s}
.gallery-img:nth-child(3) {animation-delay: -6s}
.gallery-img:nth-child(4) {animation-delay: -9s}

@keyframes m {
    0%,3%    {transform: rotate(0)}
    22%,27%  {transform: rotate(-90deg)}
    47%,52%  {transform: rotate(-180deg)}
    72%,77%  {transform: rotate(-270deg)}
    98%,100% {transform: rotate(-360deg)}
}

/* --------------------------------- */
.adres {
    grid-area: adres;
    text-align: center;
}
.slaider {
    grid-area: slaider;
    text-align: center;
}
.status {
    grid-area: status;
	text-align: center;
}

/* ------------ kalbos pasirinkimo blokas -------- */
.language {
    grid-area: language;
    text-align: center;
    margin-top: 1rem;
}
.select-language {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 10em;
    padding: 0.5em 1em;
    font-size: 0.8em;
    border: 2px solid #ccc;
    border-radius: 5px;
    background-color: #f5f5f5;
    color: #333;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 3em;
}

.select-language:hover {
    border-color: #007bff;
}

.select-language:focus {
    border-color: #007bff;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.select-language::after {
    content: '\25BC';
    font-size: 1em;
    color: #333;
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
/* ---------- kalbos pasirinkimo bloko pabaiga ----------- */

.text_large {
    font-weight: bold;
}
.sl-hidden {
    display: none;
}
.sl-item {
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--slider-item-color); /*#8e8e8e;*/
}
.date_time {
    display: none;
}

/* ---------------------------------- MAIN MENIU ----------------------------------------------- */
.main-meniu {
    grid-area: main-menu;
}
.top_menu {
    width: 100%;
    display: block;
    justify-content: start;
}
.top_menu_item {
    padding: 0.5rem 1rem;
    margin: 0.5rem 1rem;
    height: 2.5rem;
    width: 85%;
    background-color: var(--slider-item-color); /*#8e8e8e;*/
    border-radius: 0.5rem;
    color: var(--background-color); /*#ddd*/
    font-size: 1.5rem;
    font-weight: bold;
    filter: drop-shadow(0 0 0.5rem var(--body-shadow-color)); /*#555*/
}
/* ----------- END MENU -------------- */

.hr-1 {
    grid-area: hr-1;
}
.main_content {
    grid-area: main-content;
}
.hr-2 {
    grid-area: hr-2;
}

/* ------- modaliniai langai --------- */

.modal-success, .modal-error {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    padding: 20px 40px 20px 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    z-index: 1000;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.modal-success {
    border: 2px solid var(--body-a-hover-color);
	color: var(--body-a-hover-color);
}

.modal-error {
    border: 2px solid var(--error-border-color);
	color: var(--error-border-color);
}

.modal-close {
    position: absolute;
    top: 5px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

/* ================= FOOTER ===================== */
footer {
	background-color: #222;
	color: #f0f0f0;
	padding: 2rem 1rem;
	font-size: 0.95rem;
}

.footer-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

/* BAZINIS MOBILUS ISDĖSTYMAS */
.footer-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
}

.footer-column {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	text-align: center;
}

.footer-column a::before {
    content: "★";
    color: var(--body-a-color);
    margin-right: 0.5rem;
	transition: color 0.3s ease;
}

.footer-column a:hover,
.footer-column a:hover::before {
	color: var(--body-a-hover-color);
}

.fa-link {
	color: #ccc;
	text-decoration: none;
	transition: color 0.3s ease;
}

.fa-link:hover {
	color: #fff;
	text-decoration: underline;
}

.footer-social {
	text-align: center;
}

.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background-color: var(--body-a-color);/*#444;*/
	border-radius: 50%;
	color: #f0f0f0;
	font-size: 20px;
	margin: 0 8px;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
	background-color: var(--body-a-hover-color);
	color: #fff;
}

.copyright {
	text-align: center;
	font-size: 0.8rem;
	color: #aaa;
}

/* --------------------------------- */

/* =========================================================================================== */
@media screen and (min-width: 910px) {

/* ---------------------------------- HEADER -------------------------------------------------- */

    .sc-header {
        grid-template-areas:
        "logo-gallery adres status language"
        "logo-gallery slaider slaider slaider";
        grid-template-columns: 20vw 31vw 34vw 14vw;
        grid-template-rows: 6rem 2.5rem;
		padding-top: 0.5em;
    }
    .logo-gallery {
        --s: 8rem;
        margin-top: 0.3rem;
        margin-left: 0.3rem;
    }
	.select-language {
		width: 7em;
		padding-right: 1em;
	}
    .adres {
        font-size: 0.8rem;
    }
    .status {
        font-size: 0.8rem;
    }
    .language {
        font-size: 0.8rem;
        margin-top: 0;
    }

    .sl-items-wrap {
        position: relative;
        display: flex;
        overflow: hidden;
        user-select: none;
        gap:3rem;
        background: var(--background-color);/*#ddd;*/
    }
    .sl-items-wrap:before,
    .sl-items-wrap:after {
        height: 100%;
        top: 0;
        width: 10%;
        position: absolute;
        z-index: 1;
        pointer-events: none;
    }
    .sl-items {
        flex-shrink: 0;
        display: flex;
        gap: 3rem; /* 20px */
        justify-content: space-around;
        min-width: 100%;
    }
    .sl-item {
        background: var(--background-color);/*#ddd;*/
        flex: 0 0 auto;
        width: auto;
        height: 1.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 0.8rem;
        transition: all 0.1s ease-in-out;
    }
    .sl-item:hover {
        transform: scale(1.05);
    }
    .sl-marquee {
        animation: scroll 20s linear infinite;
    }
    .sl-items-wrap:hover .marquee {
        animation-play-state: paused;
    }
    @keyframes scroll {
        from {
            transform: translateX(0);
        }
        to {
            transform: translateX(calc(-100% - 3rem));
        }
    }
    .sl-hidden {
        display: flex;
    }

/* ---------------------------------- MAIN MENIU ----------------------------------------------- */
    .main_meniu {
        width: 100vw;
        height: 1.5rem;
        align-self: stretch;
    }
    .top_menu {
        display: flex;
        justify-content: start; /*space-around;*/
    }
    .top_menu_item {
        margin: 0;
        padding: 0.1rem 1rem;
        width: auto;
        height: 1.5rem;
        color: var(--bold-font-color); /*#8e8e8e;*/
        background-color: var(--background-color);/*#ddd;*/
        filter: none;
        font-size: 1rem;
    }
    .top_menu_item:hover {
        color: var(--body-a-hover-color); /*#5b830d;*/
        font-weight: bold;
    }
/* ---------------------------------- MAIN-CONTENT -------------------------------------------- */

    .main-content {flex: 1 0 auto; /* flex-grow = 1, flex-shrink = 0, flex-basis = auto */
        display: flex;
        align-items: center;
        justify-content: center;
        width: 97vw;
        margin: auto;
    }

/* ---------------------------------- FOOTER -------------------------------------------------- */
	.footer-actions {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
	}
	
	.footer-column {
		flex: 1 1 200px;
		align-items: flex-start;
		text-align: left;
	}
	
} /* --------------- end media(screen & min-width:910px) ------------------------------------- */
/* =========================================================================================== */
