/* nie działa na < IOS 18 */

@font-face {
    font-family: "Averta";
    src: url("fonts/Averta-Standard-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: black;
}

form {
    width: 100%;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    font-family: "Averta", sans-serif;
    padding-bottom: 50px;
    
}
#container {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    flex-direction: row;
    margin-top: 10px;
}

#left-container {
    display: flex;
    height: fit-content;
    flex-direction: column;
    width: 60%;
    align-items: center;
    margin: 20px;
    padding: 10px;
}

.disabled {
    pointer-events: none;
    opacity: 0.2;
}

#title-container {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    width: 100%;
    flex-direction: column;
    margin: 0 10px 10px 10px;
    border: 3px solid black;
    border-radius: 20px;
}

#title {
    padding: 10px;
    font-size: x-large;
}

#text {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 10px;
    box-sizing: border-box;
    border: 3px solid black;
    border-radius: 10px;
}

#sections {
    width: 100%;
    display: grid;
    gap: 10px;
    box-sizing: border-box;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    padding: 10px;
    border: 3px solid black;
    border-radius: 20px;
    box-sizing: border-box;

}

.image-section {
    height: min-content;
} 

.section-title {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

#logo-image {
    display: none;
}

#icon-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#image-container {
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px dashed black;
    border-radius: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    transition: opacity 0.2s ease;

}

#icon-image-container {
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px dashed black;
    border-radius: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

#add-image-icon {
    width: 25%;
    height: 25%;
}

#bg-image {
    display: none;
}

#bgColor {
    transition: opacity 0.2s ease;

}

#image-remove-button, #logo-remove-button {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-top: 10px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px dashed black;
    border-radius: 10px;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.button {
    padding: 5px 5px;
    border-radius: 10%;
    transition: transform 0.2s ease;
}

.button:hover {
    transform: scale(1.05);
}

.button:active {
    transform: scale(0.95);
}

input.button:hover {
    transform: scale(1.3);
}

input.button:active {
    transform: scale(0.9);
}

#right-container {
    height: fit-content;
    display: flex;
    flex-direction: column;
    width: 40%;
    border-radius: 20px;
    padding: 10px;
    margin: 20px 20px 20px 0;
    /* border: 3px solid black; */
    /* border-radius: 20px; */
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#logo-and-stuff {
    width: 400px;
    margin: 10px;
}

@media (max-width: 768px) {
    #container {
        flex-direction: column;
    }
    #left-container {
        width: 90%;
        margin: 0;
    }
    #right-container {
        width: 90%;
        margin: 20px 0;
    }
    #container {
        justify-content: center;
        align-items: center;
    }
    #logo-and-stuff {
        width: 400px;
    }
}
#options-container {
    display: flex;
}
#save-buttons {
    padding: 10px 0 10px 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row;
    border: 3px solid black;
    border-radius: 20px;
    font-size: large;
}
#save-buttons .button {
    border: 0px;
}
.save-button {
    width: 2em;
    height: 2em;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    border: 3px dashed black;
    border-radius: 3px;
    font-size: large;
}
#logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    margin: 10px;
    border-radius: 20px;
}
#rotation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;
    padding: 20px 0;
    border: 3px solid black;
    border-radius: 20px;
}
#size-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;
    margin: 10px;
    border-radius: 20px;
    background-color: #b9b9b9;
}
#qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 20px;
}
footer {
    text-align: center;
    margin-top: auto;
    position: fixed;
    bottom: 0;
    background-color: #ffffff;
    width: 100%;
}

#logo-image-container {
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px dashed black;
    border-radius: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    position: relative;
    transition: opacity 0.2s ease;

}

#logo-icon-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#add-image-logo {
    width: 25%;
    height: 25%;
}

#logo-image-preview{
    display: none;
}

#logo-image {
    display: none;
}

#transparentBg {
    transition: opacity 0.2s ease;

}
