@import "common.css";

@media (min-width: 601px) {
    header {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        padding: 10px;
        background-color: #fcfcfc;
    }

    .logo_zone {
        width: 300px;
        min-width: 100px;
        flex-shrink: 0;
        text-align: center;
    }

    /* logistics */

    .single_img_container {
        width: 400px;
        position: relative;
        display: inline-block;
    }

    /* prices */

    #pdf-form {
        display: flex;
        flex-direction: row;
    }

    #loadPdfBtn {
        font-weight: 700;
    }

    /* contacts */

    .contacts_item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }

    .google_maps_item {
        align-self: flex-start;
        min-width: 500px;
        margin-left: 60px;
        margin-bottom: 20px;
        border: 1;
    }
}

@media (max-width: 600px) {
    header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
        background-color: #fcfcfc;
    }

    .logo_zone {
        width: 200px;
        min-width: 100px;
        flex-shrink: 0;

    }

    /* prices */

    #pdf-form {
        display: inline-block;
        flex-direction: row;
    }

    #loadPdfBtn {
        font-weight: 700;
        margin-top: 10px;
    }

    /* contacts */

    .contacts_item {
        display: flex;
        flex-direction: row;

    }

    .google_maps_item {
        width: 200px;
        margin-left: 60px;
        margin-bottom: 20px;
        border: 1;
    }
}

/* Main menu */

.navbar {
    background-color: gray;
    overflow: hidden;
}

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

.navbar li {
    display: inline-block;
}

.navbar a {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.navbar ul li a:hover {
    background-color: #575757;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: gray;
    min-width: 160px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, max-height 0.5s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

.dropdown-content li {
    display: grid;
}

.dropdown-content a {
    text-align: left;
}

.dropdown-content li a:hover {
    background-color: #575757;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    max-height: 300px;
}

/* Main menu end */

.current_branch, .article_content {
    padding: 0px;
}

.clickable-image {
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.fullscreen-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

/* index */

.branches_list a {
    font-weight: 700;
    text-decoration: none;
}

/* storage */

.images_block {
    display: flex;
    flex-direction: row;
    max-width: 1400px;
}

.images_block_item {
    margin: 0 0 0 10px;
}

/* prices */

#pdf-form label {
    padding-right: 10px;
}

#date, #loadPdfBtn {
    font-family: 'DejaVu', sans-serif;
    font-size: 16pt;
}

#pdf-viewer {
    width: 100%;
    background: grey;
    border: 1px solid #ccc;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

canvas {
    margin-bottom: 10px;
    max-width: 100%;
    height: auto;
}

/* contacts */

.contacts_item img {
    width: 50px;
}

.contacts_group {
    display: flex;
    flex-direction: column;
}

.phones_list p {
    margin: 0;
}