@font-face {
	font-family: 'FontNormal';
	src: url('../fonts/vppixelpro-regular.woff2') format('woff2'),
	     url('../fonts/VPPixelPro-Regular.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@font-face {
  font-family: 'FontItalic';
  src: url('../fonts/vppixelpro-regular.woff2') format('woff2'),
       url('../fonts/VPPixelPro-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}


@font-face {
	font-family: 'FontMedium';
	src: url('../fonts/vppixelpro-medium.woff2') format('woff2'),
	     url('../fonts/VPPixelPro-Medium.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@font-face {
  font-family: 'FontBold';
  src: url('../fonts/VPPixelPro-Bold.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}



p,
html,
blockquote,
li,
ul
{
	font-family: 'FontNormal', sans-serif!important;
	text-align: left;
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	-ms-hyphens: auto;
	hyphens: auto!important;
	color:black!important;
    font-size: 1rem;
}

p
{
    margin-top: 0.3rem;!important;
    margin-bottom: 0px!important;
}

.pagination
{
	list-style-type:none;
	font-size: 1.4rem;
}

.pagination li
{
  display: inline;
}

h1
{
	font-family: 'FontMedium', sans-serif!important;
	-webkit-hyphens: none!important;
	-moz-hyphens: none!important;
	-ms-hyphens: none!important;
	hyphens: none!important;
}

h2
{-webkit-hyphens: none!important;
	-moz-hyphens: none!important;
	-ms-hyphens: none!important;
	hyphens: none!important;
}

h3
{
	font-family: 'FontMedium', sans-serif!important;
	font-size: 1.75rem!important;
	line-height: 2rem!important;
    margin-top: 1rem;!important;
    margin-bottom: 0.8rem!important;
    text-transform: uppercase;
    	-webkit-hyphens: none!important;
	-moz-hyphens: none!important;
	-ms-hyphens: none!important;
	hyphens: none!important;
}

h4
{
	font-family: 'FontMedium', sans-serif!important;
	font-size:1.3rem!important;
  -webkit-hyphens: none!important;
	-moz-hyphens: none!important;
	-ms-hyphens: none!important;
	hyphens: none!important;
}

.uk-link,
.uk-button-link,
a
{
	color: #800020!important;
}

.uk-link:hover,
.uk-button-link:hover,
a:hover
{
	text-decoration: none;
	color:#b3002d!important;
}

.uk-button-link
{
    text-transform:none!important;
    font-size:inherit!important;
    line-height: inherit!important;
    vertical-align: inherit!important;
}

b,
strong,
.uk-text-bold
{
	font-family: 'FontBold', sans-serif!important;
	font-style: normal!important;
	font-weight: normal!important;
}

i,
em
{
	font-style: normal!important;
}

.uk-card-default
{
  box-shadow: none!important;
  border:5px dotted black!important;
  border-radius: 0px;
}

.uk-card-default .uk-card-footer
{
    border-top: 5px dotted black;
    padding:5px 10px!important;
    color: black!important;
}

.uk-card-default .uk-card-body
{
    color: black!important;
}

.uk-card-default .uk-card-header
{
    border-bottom: 5px dotted black;
    padding:5px 10px!important;
}

.uk-card-secondary
{
	box-shadow: none!important;
  border:1px dashed lightgray!important;
  border-radius: 0px;
  background: white;
}

i
{
	font-family: 'FontItalic'!important;
	font-style: normal!important;
	font-weight: normal!important;
}

.uk-card-title
{
	font-family: 'FontMedium', sans-serif!important;
	font-size:1.3rem!important;
	line-height: 1.5rem!important;
}

.uk-card-header
{
	padding: 12px 12px!important;
}

.uk-card-body
{
	font-family: 'FontNormal', sans-serif!important;
	text-align: left;
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	-ms-hyphens: auto;
	hyphens: auto!important;
	font-size:1.1rem!important;
	line-height:1.4rem!important;
	padding: 10px 10px!important;
}

.uk-card-footer
{
	padding: 10px 10px!important;
    border-top: 3px solid black;
}

.uk-form
{
  border: 2px solid black!important;
  border-radius: 8px;
}


.uk-form-stacked .uk-form-label
{
	margin-bottom: 0px!important;
}

.uk-form-label
{
  margin-bottom: 5px!important;
}

.uk-margin-xsmall-bottom
{
  margin-bottom: 7px !important;
}

.uk-margin-xsmall-top
{
  margin-top: 7px !important;
}

.uk-margin-xsmall-left
{
  margin-left: 7px !important;
}

.uk-margin-xsmall-right
{
  margin-right: 7px !important;
}

.uk-margin-xxsmall-bottom
{
  margin-bottom: 4px !important;
}

.uk-margin-xxsmall-top
{
  margin-top: 4px !important;
}

.uk-margin-xxsmall-left
{
  margin-left: 4px !important;
}

.uk-margin-xxsmall-right
{
  margin-right: 4px !important;
}

.uk-pagination>*>*
{
	padding-left: 3px!important;
	padding-right: 3px!important;
	padding-top: 0px!important;
	padding-bottom: 0px!important;
	font-size: 1.2rem!important;
}

.uk-text-large
{
	font-size: 1.2rem!important;
	line-height: 1.5rem!important;
}

.feather
{
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.uk-table
{
	margin-bottom: 10px;
}

.uk-button-large
{
	padding: 0px 20px!important;
	font-size: 1rem;
}

.uk-button-default
{
	color: maroon!important;
	border: 4px solid black;
  font-family: 'FontMedium';
  font-size: 1.25rem;
}

.uk-button-default:hover
{
  background: black;
  border: 4px solid black;
  color: white!important;
}

.uk-button-default.uk-active,
.uk-button-default.active
{
  background: black;
  border: 4px solid black;
  color: white!important;
}

.reviews-form
{
	border-radius: 0px!important;
	box-shadow: none!important;
	background: white!important;
	padding: 0px!important;
	border: none!important;
}

.reviews-list .reviews-list-body li
{
	border-radius: 0px!important;
	box-shadow: none!important;
	background: white!important;
	padding:7px 15px!important;
}

.ec-rating-stars svg
{
	color: darkgray!important;
}

.ec-rating-stars .active svg,
.ec-rating-stars .active2 svg
{
   color: black!important;
}

.ec-rating-stars .active-disabled svg
{
   color: darkgray!important;
}

.ec-rating-stars span
{
	padding: 0px 0px!important;
}

.uk-textarea, .uk-input
{
	padding:5px!important;
    border: 2px solid black!important;
}

.grecaptcha-badge
{
	visibility: hidden;
}

.uk-accordion-title::before
{
  margin-left: 0px;
  float: left;
}

.uk-button-small
{
  padding: 2px 8px;
  line-height: 28px;
  font-size: 0.875rem;
}

/*
 * Secondary
 */
.uk-button-secondary
{
  background-color: white;
  color: #fff;
  border: 1px solid black;
  text-transform: none!important;
}
/* Hover */
.uk-button-secondary:hover
{
  background-color: black;
  color: #fff;
}
/* OnClick + Active */
.uk-button-secondary:active,
.uk-button-secondary.uk-active
{
  background-color: #080808;
  color: #fff;
}

/* Primary */
.uk-button-primary
{
  background-color: white;
  color: maroon;
  border: 2px solid black;
  text-transform: none!important;
  padding-left: 15px;
  padding-right: 15px;
}

/* Hover */
.uk-button-primary:hover
{
  background-color: black;
  color: #fff!important;
}
/* OnClick + Active */
.uk-button-primary:active,
.uk-button-primary.uk-active
{
  background-color: #080808;
  color: #fff!important;
}

/*
 * Grid XSmall
 */
/* Horizontal */
.uk-grid-xsmall,
.uk-grid-column-xsmall
{
  margin-left: -10px;
}
.uk-grid-xsmall > *,
.uk-grid-column-xsmall > *
{
  padding-left: 10px;
}
/* Vertical */
.uk-grid + .uk-grid-xsmall,
.uk-grid + .uk-grid-row-xsmall,
.uk-grid-small > .uk-grid-xmargin,
.uk-grid-row-xsmall > .uk-grid-margin,
* + .uk-grid-margin-xsmall
{
  margin-top: 10px;
}

.uk-navbar-nav
{
    gap:10px;
}

.uk-navbar-nav>li>a
{
    text-transform: lowercase;
    font-size:1.1rem;
    font-family: 'FontNormal', sans-serif!important;
}

.uk-search-navbar .uk-search-input
{
    font-family: 'FontNormal', sans-serif!important;
}

.uk-input,
.uk-select,
.uk-textarea,
.uk-search-input,
input,
select,
textarea
{
  /* 1 */
  max-width: 100%;
  /* 2 */
  width: 100%;
  /* 3 */
  border: 0 none;
  /* 4 */
  background: #fff;
  color: black!important;
  transition: 0.2s ease-in-out;
  transition-property: color, background-color, border;
}

.uk-section
{
    padding-top:25px;
    padding-bottom:40px;
    background-color: rgb(240, 240, 240);
}

.uk-offcanvas-bar
{
    background: white;
    width: 250px;
    border-left:3px solid black;
}

.uk-offcanvas-bar .uk-search-default .uk-search-input
{
    border-color: black;
}

.uk-offcanvas-bar .uk-close
{
    color:black;
}

.uk-close:hover
{
    color:gray!important;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: black!important;
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: black!important;
}

::-ms-input-placeholder { /* Microsoft Edge */
  color: black!important;
}

.uk-grid-divider>:not(.uk-first-column)::before
{
  border-left: 5px dotted black;
}

.uk-grid-divider.uk-grid-stack>.uk-grid-margin::before
{
  border-top: 3px solid black;
}

.uk-overlay
{
  border:1px solid lightgray;
}

/* Custom width utility */
.uk-width-xsmall
{
  width: 100px;
}

/* Wolfram Generator Styles */
.wolfram-generator {
    padding: 20px 0;
}

.wolfram-canvas {
    border: 2px solid #000;
    cursor: pointer;
    user-select: none;
    background: white;
    shape-rendering: crispEdges;
}

.cell {
    cursor: pointer;
    transition: fill 0.1s ease;
}

.cell:hover {
    opacity: 0.8;
}

.cell.first-row {
    stroke: #1e87f0;
    stroke-width: 0.5;
}

.rule-pattern-container-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.rule-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 3px;
    background: #f8f8f8;
    border-radius: 3px;
    border: 1px solid #e5e5e5;
}

.rule-pattern {
    display: flex;
    gap: 1px;
}

.rule-cell {
    width: 15px;
    height: 15px;
    border: 1px solid #999;
}

.rule-result {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    border: 1px solid #999;
}

/* Pokazuj narzędzia u góry na małych ekranach */
.tools-top {
    display: block;
}

.tools-left,
.tools-right {
    display: none;
}

@media (min-width: 961px) {
    .tools-top {
        display: none;
    }

    .tools-left,
    .tools-right {
        display: block;
    }
}

@media (max-width: 960px) {
    .wolfram-canvas {
        max-width: 100%;
        height: auto;
    }
}

/* Mobile controls group styling */
.mobile-controls-group {
    max-width: 640px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.mobile-controls-group .uk-width-1-1 {
    margin-bottom: 0;
}

.mobile-controls-group button,
.mobile-controls-group select {
    width: 100%;
    font-size: 1rem !important;
}

.mobile-controls-group select option {
    font-size: 1rem !important;
}

@media (max-width: 640px) {
    .mobile-controls-group {
        max-width: 100%;
    }
}

/* Pixel Art Styles */
.color-swatch {
    width: 30px;
    height: 30px;
    border: 2px solid black;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.active {
    border: 3px solid #007bff;
    transform: scale(1.15);
}

#pixelCanvas {
    background: white;
    shape-rendering: crispEdges;
}

.shape-button {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    background: white;
    transition: all 0.2s ease;
    color: #999;
}

.shape-button:hover {
    transform: scale(1.05);
    color: #666;
    border-color: #999;
}

.shape-button.active {
    border-color: #000;
    color: #000;
    background: white;
}

/* Active state for eraser tool */
.eraserTool.active {
    background: #666 !important;
    color: white !important;
}

/* Totalistic Generator Styles */
.totalistic-generator {
    padding: 20px 0;
}

.totalistic-generator .uk-width-auto,
.wolfram-generator .uk-width-auto {
    max-width: 640px;
}

.totalistic-generator .uk-width-auto p,
.wolfram-generator .uk-width-auto p {
    max-width: 640px;
    word-wrap: break-word;
    white-space: normal;
}

/* Definition list inline styles */
dt {
    display: inline;
    font-weight: bold;
}

dt::after {
    content: ":";
}

dd {
    display: inline;
    margin-left: 0.5em;
}

dd::after {
    content: "";
    display: block;
    margin-bottom: 0.3rem;
}