/* Definicje fontów */
@font-face {
    font-family: 'Fredoka';
    src: url('../css/fonts/Fredoka-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Fredoka';
    src: url('../css/fonts/Fredoka-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Fredoka';
    src: url('../css/fonts/Fredoka-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Fredoka';
    src: url('../css/fonts/Fredoka-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Fredoka';
    src: url('../css/fonts/Fredoka-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}


body {
    font-family: 'Fredoka', Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}


main {
    flex: 1;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* HEADER */

header {
    background-color: #000000; /* Czarny kolor tła na całej szerokości */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
    width: 100%; /* Zapewnienie, że header zajmuje całą szerokość */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000; /* Header będzie nad innymi elementami */
    transition: height 0.3s ease;
}

nav {
    max-width: 1200px;
    width: 80%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 15px 10px;
    box-sizing: border-box;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

p, label {
    font-size: 1rem;
    line-height: 1.5;
}

.logo {
    flex-shrink: 0;
    margin-right: 20px;
}

nav a {
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
}

.topMenu {
    color: #fffdfd;
    font-weight: 300;
    font-size: 1.2rem;
    font-family: 'Fredoka';
    margin: 0 20px;
    transition: color 0.3s;
    white-space: nowrap;
}

.topMenu:hover {
    color: #5cacd8; /* Zmiana koloru tekstu przy najechaniu */
}

.add-opinion {
    background-color: #f86969;
    color: #fffdfd;
    padding: 10px 15px;
    text-decoration: none;
    font-family: 'Fredoka', Arial, sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-left: auto;
    transition: background-color 0.3s;
    white-space: nowrap;
    width: 250px;
}

.add-opinion:hover {
    background-color: #7a3d3d;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.3s, filter 0.3s;
}

/* Zmniejszanie czcionek przy określonych szerokościach ekranu */
@media (max-width: 1200px) {
    .topMenu {
        font-size: 0.95rem;
        margin: 0 15px;
    }
    .add-opinion {
        font-size: 0.95rem;
        padding: 9px 14px;
    }
}

@media (max-width: 992px) {
    .topMenu {
        font-size: 0.9rem;
        margin: 0 10px;
    }
    .add-opinion {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    .logo img {
        height: 45px;
    }
}

@media (max-width: 800px) {

    .menu-toggle {
        display: block;
        margin: 10px auto; /* Dodane, aby wyśrodkować przycisk */
    }

    .topMenu {
        display: none;
    }

    .menu-open .topMenu {
        display: block;
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    nav {
        flex-direction: column;
        align-items: center; /* Wyśrodkowanie elementów */
    }

    .add-opinion {
        margin-left: 0;
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    .add-opinion {
        font-size: 0.85rem;
        padding: 7px 10px;
    }
    .logo img {
        height: 40px;
    }
}

@media (max-width: 600px) {
    .add-opinion {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    .logo img {
        height: 35px;
    }
}

/* FOOTER */

footer {
    background-color: #000000;
    color: white;
    padding: 20px 0;
    width: 100%;
    flex-shrink: 0;
    font-family: 'Fredoka', sans-serif;
    font-weight: 300;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    align-items: stretch;
}

.footer-section {
    flex: 1 1 25%;
    max-width: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 10px 0;
}

.footer-section h4 {
    font-weight: 300;
    color: white;
    margin: 5px 0;
}

.footer-section p {
    margin: 5px 0;
    font-weight: bold;
}

.footer-logo-img {
    height: 50px;
    width: auto;
}

p.tagline {
    margin-top: 0px;
    color: white;
    font-weight: bold;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    text-justify: auto;
}

.footer-section a:hover {
    color: #ade1f9;
}

/* Stylizacja baneru cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 15px;
    text-align: center;
    z-index: 1000;
    display: none; /* Ukryte domyślnie */
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.cookie-banner p {
    margin: 0 0 10px;
    padding: 0 10px;
}

.cookie-banner a {
    color: #f86969;
    text-decoration: underline;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.primary-button {
    background-color: #f86969;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.primary-button:hover {
    background-color: #d9534f;
}

.secondary-button {
    background-color: #fff;
    color: #f86969;
    border: 1px solid #f86969;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.cookie-options {
    text-align: left;
    margin: 10px 0;
}

.cookie-options label {
    display: block;
    margin: 5px 0;
}


/* Responsive design */
@media (max-width: 768px) {
    .footer-section {
        flex: 1 1 50%;
        max-width: 50%;
        margin: 5px 0;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-logo-img {
        height: 45px;
    }

    footer {
        padding: 15px 0;
    }
}

@media (max-width: 600px) {
    .footer-section {
        flex: 1 1 100%; /* Każda sekcja zajmuje 100% szerokości */
        max-width: 100%;
        margin: 5px 0; /* Zmniejszenie marginesów */
    }

    .footer-section h4 {
        font-size: 0.9rem; /* Dalsze zmniejszenie rozmiaru czcionki */
    }

    .footer-logo-img {
        height: 40px; /* Dalsze zmniejszenie logo */
    }

    footer {
        padding: 10px 0; /* Dalsze zmniejszenie paddingu stopki */
    }
}

.social-media-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
}

.social-icon {
    color: #fffdfd;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #5cacd8;
}

.copy-icon {
    color: white;
    margin-left: 10px;
    cursor: pointer;
}

.copy-icon:hover {
    color: #5cacd8;
}


.result {
    cursor: pointer;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
}

.result:hover {
    background-color: #f4f4f4;
}

.selected {
    background-color: #d3e3fc;
}

.details-link {
    display: block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
}

.details-link:hover {
    text-decoration: underline;
}

