@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&display=swap');

:root {
    --color1: rgba(0,217,255);
    --color2: rgb(20, 20, 20);
    --color3: #a3a3a3;
    --color4: #d81c1c;
    --color5: #ff4949;
}

body {
    font-family: Poppins;
    align-items: center;
    justify-content: flex-start;
    padding: 20px; 
    background-color: var(--color2);
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 93.9vh;
}

.content {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    flex: 1;
}

.menu {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    border: 3px solid var(--color1);
    border-top: 0px;
    background-color: var(--color2);
    border-radius: 0px 0px 23px 0px;
    margin: 0px 0px;
}

.title-frame {
    text-align: center;
    border: 3px solid var(--color1);
    border-bottom: 0px;
    padding: 5px;
    margin-bottom: 0;
    border-radius: 23px 0px 0px 0px;
    background: var(--color2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.errortitleframe {
    text-align: center;
    font-size: 30px;
}

.errorframe {
    text-align: center;
    padding: 5px;
    display: flex;
    font-size: 100px;
    align-items: center;
    color: #b6b6b6;
    justify-content: center;
}

.errorinfo {
    text-align: center;
    display: flex;
    font-size: 15px;
    align-items: center;
    color: #ffffff;
    justify-content: center;
}

.title-frame h2 {
    margin: 0;
    font-size: 24px;
    color: #ffffff;
}

ul a {
    color: var(--color1);
}


.menu li {
    margin-bottom: 10px;
}

.menu a {
    text-decoration: none;
    color: #ffffff;
    padding: 5px 5px;
    font-size: 14px;
}

.submenu {
    border: 3px solid var(--color1);
    visibility: hidden;
    height: 0;
    overflow: hidden;
    border-top: 0px;
    position: absolute;
    padding: 0;
    list-style: none;
    margin-top: 10px;
    background-color: var(--color2);
    border-radius: 0px 0px 10px 10px;
    z-index: 999;
    transform: scaleY(0);
    transform-origin: top;
    transition: all 0.3s ease-in-out;
}

.submenu li {
    margin-top: 5px;
}

.menu li:hover .submenu {
    visibility: visible;
    height: auto;
    transform: scaleY(1);
}

footer {
    margin-top: auto;
}

.categories {
    text-align: center;
}

.categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories li {
    display: inline-block;
    margin: 0 10px;
}

.categories a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

.gallery,
.boxgallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery figure,
.boxgallery figure {
    margin: 10px;
    min-width: 300px;
    max-width: 300px;
    text-align: center;
    position: relative;
}

.gallery figure::after,
.boxgallery figure::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 10px var(--color1);
    opacity: 0;
    border-radius: 23px 0px 23px 0px;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.gallery figure:hover::after,
.boxgallery figure:hover::after {
    opacity: 1;
}

.gallery figure img,
.boxgallery figure img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
}

.photo-frame {
    position: relative;
    border:2px solid var(--color1);
    padding: 5px;
    min-height: 150px;
    max-height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 23px 0px 0px 0px;
    background: var(--color2);
}

.expand-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    visibility: hidden;
    background: var(--color2);
    border-color: var(--color1);
    outline: none;
    color: white;
    font-size: 13px;
    padding: 10px;
    border-radius: 10px 10px;
    cursor: pointer;
}

.caption-frame {
    border: 2px solid var(--color1);
    padding: 5px;
    margin-top: -5px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    background: var(--color2);
}

.price-frame {
    border: 2px solid var(--color1);
    padding: 5px;
    margin-top: -5px;
    border-radius: 10px;
    background: var(--color2);
    /* Tło dla ceny */
    border-radius: 0px 0px 23px 0px;
}

.figure:hover .expand-btn {
    display: block;
    visibility: visible;
}

.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen img {
    max-width: 90%;
    max-height: 90%;
}

.promotion a {
    color: rgb(255, 255, 255);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--color2);
    padding: 5px 10px;
    font-size: 20px;
    cursor: pointer;
    color: #ffffff;
    border-radius: 10px;
    border: 3px solid var(--color1);
    z-index: 1000;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #020202;
    border-radius: 20px;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.modal-content p {
    text-align: center;
}

h1 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

h1 img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

@media (max-width: 600px) {
    .gallery figure,
    .boxgallery figure {
        flex-basis: 100%;   
    }
}

#formContainer {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

h4 a {
    color: var(--color1);
    text-decoration: none;
}

h3 {
    color: var(--color1);
}

.centered h2 b {
    color: var(--color1);
}

#uploadForm {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
}

@media screen and (max-width: 600px) {
    #uploadForm {
        grid-template-columns: 1fr; /* Zmieniamy na pojedynczą kolumnę */
    }
}
form {
    width: 90%;
    max-width: 600px;
    min-width: none;
    margin: 0 auto;
    background-color: #ffffff00;
    padding: 20px;
    margin-top: 100px;
    margin-bottom: 20px;
    border-radius: 24px 0px 24px 0px;
    border: 2px solid var(--color1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    flex-wrap: wrap;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

input[type="text"],
input[type="file"],
input[type="submit"],
select[type="select"]{
    width: 93%;
    padding: 10px;
    border: none;
    outline: none;
    border-bottom: 2px solid var(--color1);
    color: #FFF;
    background-color: #ffffff00;
    margin-bottom: 10px;
}

select[type="select"] {
    width: 100%;
}

select option {
    color: #000;
    background: #ffffff00;
}

option {
    color: #000;
    background: #ffffff00;
}


input[type="submit"] {
    background-color: transparent;
    color: #fff;
    border: 2px solid var(--color1)!important;
    border-radius: 24px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    transition-duration: 0.3s;
    background-color: var(--color1);
    color: white;
    cursor:pointer;
}

.file-input {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffffff00;
    border-bottom: 2px solid var(--color1)!important;
    color: #fff;
    border: none;
    font-size: small;
    margin-bottom: 20px;
    width: 93%;
    padding: 10px;
    height: 15px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.3s ease;
}

.file-input:hover {
    background-color: var(--color3);
}

.file-input input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* CSS for product details container */
#product-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 30px auto;
}

/* CSS for product details top container */
#product-details-top {
    display: flex;
    align-items: center;
    background-color: var(--color2);
    border: 3px solid var(--color1);
    border-top-left-radius: 24px;
    border-bottom-right-radius: 24px;
    position: relative;
    max-width: 90%;
    flex-wrap: wrap; 
}

#product-details-right {
    display: flex;
    max-width: 350px;
    position: relative;
    flex-direction: column;
    flex-wrap: wrap; 
    justify-content: center;
    margin: 0 auto;
    margin-right: 30px;
}

/* CSS for product image container (frame) */
#product-image-container {
    flex: 1;
    display: grid;
    grid-column: auto;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 30px;
    justify-content: center; 
    margin: 30px auto;
    margin-left: 0px;
    position: relative;

}

/* CSS for product image */
#product-image {
    min-width:10vh;
    max-width: 20vh;
    height: auto;
    object-fit: cover;
}

/* CSS for expand button image */
#expand-btn-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    /* Ustawiamy na flex, aby można było wyśrodkować ikonę */
    justify-content: center;
    /* Wyśrodkowanie ikony w pionie */
    align-items: center;
    /* Wyśrodkowanie ikony w poziomie */
}

/* CSS for product name */
#product-name {
    font-size: 30px;
    text-align: center;
    margin: 10px 0;
    justify-content: center; 
    min-width: 300px;
}

/* CSS for product price */
#product-price {
    font-size: 20px;
    margin-top: 20px;
    text-align: center;
}

#product-description-container {
    min-width: 100%;

}

/* CSS for product description */
#product-description {
    font-size: 18px;
    border-top: 3px solid #858585;
    margin-left: 20px;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
    margin-right: 20px;
    text-align: left;
    padding-top: 10px;
}

#product-user {
    font-size: 18px;
    border-top: 3px solid #858585;
    margin-left: 20px;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
    margin-right: 20px;
    text-align: left;
    padding-top: 10px;
}

#product-state {
    font-size: 18px;
    border-top: 3px solid #858585;
    margin-left: 20px;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
    margin-right: 20px;
    text-align: left;
    padding-top: 10px;
}

#product-color {
    font-size: 18px;
    border-top: 3px solid #858585;
    margin-left: 20px;
    padding-left: 10px;
    padding-right: 10px; 
    margin-bottom: 20px;
    margin-right: 20px;
    text-align: left;
    padding-top: 10px;
}

.soon {
    font-size: 60px;
}