@import url('https://fonts.googleapis.com/css2?family=Bitcount+Prop+Single:wght@100..900&family=Lexend:wght@100..900&display=swap');
/*tak wiem, strasznie jest to napisane, moze kiedys naprawie, teraz celem byl wyglad i zeby w ogole dzialalo, a nie nauka html/css/js xd*/

:root {
    --color-background-alt: #fff6ff;
    --color-background: #feecff;   
    --color-accent-weak: #8884FF;  
    --color-accent-mid: #605bff;
    --color-accent-strong: #231bff;
    --color-primary: #D7BCE8;
    --color-inactive: rgb(215, 191, 228); 
    --color-secondary: #E8CEE4;    
    --color-text: #5D576B;     
    --color-alt: #B0ADFF;
    --color-alt2: #DB95D9;
    --color-alt2-strong: #b800b1;

    --font-size-small: 14px;
    --font-size-medium: 16px;
    --font-size-large: 20px;
    --font-size-xlarge: 24px;

    --line-height-small: 16px;
    --line-height-medium: 18px;
    --line-height-large: 22px;
    --line-height-xlarge: 26px;
}

* {
    box-sizing: border-box;
}

a {
    color: inherit;      /* dziedziczy kolor z elementu nadrzędnego */
    text-decoration: none; /* usuwa podkreślenie */
    font-weight: inherit;  /* dziedziczy wagę czcionki */
    font-style: inherit;   /* dziedziczy styl czcionki */
}

body {
    background-image: url("../images/tilemap.png");
    background-repeat: repeat;
    background-size: cover;
    background-position: 0 0;
    animation: moveBG 2000s linear infinite;
    color: var(--color-text);
    font-family: "Bitcount Prop Single", system-ui;
    font-size: var(--font-size-large);
    line-height: var(--line-height-large);

    @media (max-width: 1200px) {
        font-size: var(--font-size-medium);
        line-height: var(--line-height-medium);
    }

    @media (max-width: 768px) {
        font-size: var(--font-size-small);
        line-height: var(--line-height-small);
    }
}

.font-size-small {
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    font-weight: 500;
}
.font-size-medium {
    font-size: var(--font-size-medium);
    line-height: var(--line-height-medium);
}
.font-size-large {
    font-size: var(--font-size-large);
    line-height: var(--line-height-large);
}
.font-size-xlarge {
    font-size: var(--font-size-xlarge);
    line-height: var(--line-height-xlarge);
}

@keyframes moveBG {
    0% { background-position: 0 0; }
    100% { background-position: 100000px -100000px; }
}

button {
    font-family: inherit;
    color: inherit;
}

#main-container {
    width: 80%;
    max-width: 900px;
    margin: 50px auto;
    padding: 40px;
    background-color: var(--color-background);
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);

    @media (max-width: 768px) {
        width: 90%;
        padding: 10px;
    }
}

.icon-button {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 4px;
    background-color: var(--color-alt2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: var(--font-size-large);
}

.icon-button:hover {
    background-color: var(--color-alt);
}

.grid-columns-2-7 {
    display: grid;
    grid-template-columns: 2fr 7fr;
    gap: 20px;
    align-items: center;

    @media (max-width: 768px) {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.grid-columns-2-5-3 {
    display: grid;
    grid-template-columns: 2fr 5fr 3fr;
    gap: 10px;
    align-items: center;

    @media (max-width: 768px) {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.grid-columns-1-1
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;

    @media (max-width: 1200px) {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.grid-columns-1-1-1-1
{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    justify-items: center;
    margin: auto;

    @media (max-width: 768px) {
        /* grid-template-columns: 1fr 1fr; */
        gap: 10px;
    }
}

.column-gap-50 {
    column-gap: 50px;
}

.--gap-20 {
    gap: 20px;
}

.unbreakable-space {
    white-space: nowrap;
}

.img-box {
    max-width: 200px;
}

.img-box img {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    border: 2px dashed var(--color-secondary);

    @media (max-width: 768px) {
        max-width: 150px;
    }
}

.height-full {
    height: 100%;
}
.--height-500 {
    height: 500px;
}
.height-full {
    height: 100%;
}
.height-200 {
    height: 200px;
}
.height-20 {
    height: 20px;
}
.height-50 {
    height: 50px;
}
.width-full {
    width: 100%;
}
.--width-50-phone-100 {
    width: 50%;

    @media (max-width: 768px) {
        width: 100%;
    }
}
.--flex-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.empty-div {
    display: block;
}

.font-alt {
    font-family: "Lexend", sans-serif;
}

.icon-container {
    position: fixed;
    top: 25px;
    right: 25px;
    display: flex;
    gap: 15px;
    z-index: 1000;

    @media (max-width: 768px) {
        top: 15px;
        right: 15px;
        gap: 10px;
    }
}

.project-box {
    padding: 10px;
    width: 100%;
    height: 150px;
    background-color: var(--color-background-alt);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-top: 100px;

    @media (max-width: 768px) {
        height: auto;
        margin-top: 50px;
    }
}

.default-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: var(--color-alt2);
    color: black;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.default-button:hover {
    background-color: var(--color-alt);
}

.box-button {
    padding: 10px 0;
    border: 3px solid transparent;
    background-color: var(--color-alt2);
    color: black;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    max-width: 50px;
    font-weight: 500;
    aspect-ratio: 1 / 1;
}

.alt-button-black {
    padding: 10px 0;
    border: 3px dashed white;
    background-color: black;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    min-width: 120px;
    font-weight: 500;
}

.alt-button-white {
    padding: 10px 0;
    border: 3px dashed black;
    background-color: white;
    color: black;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    min-width: 120px;
    font-weight: 500;
}

.alt-button {
    padding: 10px 0;
    border: 3px solid transparent;
    background-color: var(--color-alt2);
    color: black;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    min-width: 120px;
    font-weight: 500;
}

.alt-button:hover {
    background-color: var(--color-alt);
}
.box-button:hover {
    background-color: var(--color-alt);
}

.alt-button.active {
    border: 3px dashed var(--color-accent-mid);
    background-color: var(--color-secondary);
    color: var(--color-accent-mid);
}
.box-button.active {
    border: 3px dashed var(--color-accent-mid);
    background-color: var(--color-secondary);
    color: var(--color-accent-mid);
}
.alt-button-white.active {
    border: 3px dashed red;
}
.alt-button-black.active {
    border: 3px dashed red;
}

.big-button {
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    background-color: var(--color-alt2);
    color: black;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: var(--font-size-xlarge);
    width: 100%;
}

.big-button:hover {
    background-color: var(--color-alt);
}

.button-inactive {
    background-color: var(--color-secondary);
    color: black;
    cursor: default;
}
.button-inactive:hover {
    background-color: var(--color-secondary);
}

.align-column-start {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    height: auto;
}

.button-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.error-msg {
    display: none;
    color: red;
}

.error-msg.active {
    display: block;
}

.--display-none {
    display: none;
}
.--display-block {
    display: block;
}

.--hidden {
    opacity: 0;
    pointer-events: none;
}

.color-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.color-2box {
    width: 100%;
    aspect-ratio: 1 / 2;
    cursor: pointer;
}

.flash-red-text {
    color: red;
    animation: flashRedText 0.3s ease-in-out;
}

@keyframes flashRedText {
    0% { color: red; }
    10% { color: white; }
    100% { color: red; }
}

.select-wrapper {
  position: relative;
  width: 100%;
  max-width: 250px;
}

.select-wrapper select {
  padding: 10px 12px;
  border: 3px solid transparent;
  border-radius: 4px;
  background-color: var(--color-alt2);
  color: black;
  font-weight: 500;
  width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: background-color 0.2s;
  font-family: inherit;
  font-size: inherit;
}

.select-wrapper select:hover {
  background-color: var(--color-alt);
}

.select-wrapper::after {
  content: "▼";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--color-accent-mid);
  font-size: 12px;
}

.select-wrapper select option {
  background-color: var(--color-alt2);
  color: black;
}

.default-input-field {
    padding: 10px 12px;
    border: 3px solid transparent;
    border-radius: 4px;
    background-color: var(--color-alt2);
    color: black;
    font-weight: 500;
    cursor: text;
    appearance: none;
    font-family: inherit;
    font-size: inherit;
}


.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}
.question-and-info {
    display: inline-flex;
    color: var(--color-alt2-strong);
}
.tooltip-text {
    visibility: hidden;
    width: 400px;
    background-color: var(--color-text);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Pozycja nad pytajnikiem */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    
    @media (max-width: 768px) {
        width: 200px;
    }
}
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%; /* Strzałka skierowana w dół */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--color-text) transparent transparent transparent;
}
.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

#email-input {
    padding: 10px;
    border: 3px solid transparent;
    border-radius: 4px;
    background-color: var(--color-alt2);
    color: black;
    font-weight: 500;
    width: 100%;
    max-width: 300px;
    font-family: inherit;
    font-size: inherit;
    transition: background-color 0.2s;
}


#colorBox-red { background-color: #ff3232; }
#colorBox-yellow { background-color: #ffff32; }
#colorBox-green { background-color: #32ff32; }
#colorBox-blue { background-color: #3280ff; }
#colorBox-purple { background-color: #8032ff; }
#colorBox-orange { background-color: #ff9310; }
#colorBox-gray { background-color: #a0a0a0; }
#colorBox-pink { background-color: #ff32ff; }

#colorBox-red-saturated-light { background-color: hsl(0, 100%, 70%); }
#colorBox-red-saturated-dark { background-color: hsl(0, 100%, 30%); }
#colorBox-red-desaturated-light { background-color: hsl(0, 35%, 70%); }
#colorBox-red-desaturated-dark { background-color: hsl(0, 35%, 30%); }

#colorBox-blue-saturated-light { background-color: hsl(217, 100%, 70%); }
#colorBox-blue-saturated-dark { background-color: hsl(217, 100%, 30%); }
#colorBox-blue-desaturated-light { background-color: hsl(217, 35%, 70%); }
#colorBox-blue-desaturated-dark { background-color: hsl(217, 35%, 30%); }

#colorBox-green-saturated-light { background-color: hsl(120, 100%, 70%); }
#colorBox-green-saturated-dark { background-color: hsl(120, 100%, 30%); }
#colorBox-green-desaturated-light { background-color: hsl(120, 35%, 70%); }
#colorBox-green-desaturated-dark { background-color: hsl(120, 35%, 30%); }