:root {
    --padding: 30px;
}

* {
    scroll-padding-top: 18px;
}

@font-face {
    font-family: "Lora";
    src: url("fonts/lora.ttf");
}

@font-face {
    font-family: "Noto Sans Georgian";
    src: url("fonts/georgian.ttf");
}

body {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    background-color: black;

    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: white;
    font-display: block;
}

a {
    text-decoration: none;
    color: white;
}

#container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, max-content);

    width: 100%;
    height: 100%;
    margin: 0;
}

/* ### Top ### */

#top-container {
    background-image: url("images/background.webp");
    /* background-size: cover; */
    /* background-size: 100%; */
    /* background-size: 100vw 100%; */
    background-size: auto 100%;
    background-position: top right;
    background-repeat: no-repeat;

    display: grid;
    grid-template-columns: max-content 1fr 1fr 1fr;
    grid-template-rows: min-content max-content;

    /* height: 100vh; */
    min-height: 70vh;

    padding: var(--padding);
}

#small-top-container {
    visibility: hidden;
    display: none;
    padding: var(--padding);
}

#top-container-sizer {
    grid-column: 1/ -1;
    grid-row: 1 / -1;
    max-width: 100%;
    margin: -30px;
}

#logo {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    max-height: 200px;
}

#navbar {
    grid-column: 2 / -1;
    grid-row: 1 / 2;
    margin-left: 15px;
    display: flex;
    justify-content: flex-end;
}

#navbar a {
    float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;

    animation: navback 0.3s;
}

#navbar a:hover {
    animation: navhover 0.3s forwards;
}

@keyframes navhover {
    to {
        color: #4DD4E7;
        text-shadow:
            0 0 7px #70dceb,
            0 0 10px #70dceb,
            0 0 21px #70dceb,
            0 0 42px #70dceb,
            0 0 82px #70dceb,
            0 0 92px #70dceb,
            0 0 102px #5ed8e9,
            0 0 151px #4dd4e7;
        font-size: 20px;
    }
}

@keyframes navback {
    from {
        color: #4DD4E7;
        text-shadow:
            0 0 7px #70dceb,
            0 0 10px #70dceb,
            0 0 21px #70dceb,
            0 0 42px #70dceb,
            0 0 82px #70dceb,
            0 0 92px #70dceb,
            0 0 102px #5ed8e9,
            0 0 151px #4dd4e7;
        font-size: 20px;
    }

    to {
        color: white;
        font-size: 17px;
    }
}

.animation-load {
    animation-duration: 0.0s !important;
}

.description {
    grid-column: 1 / 4;
    grid-row: 2 / -1;
    margin-top: 50px;
    padding-right: 100px;
    font-size: 25px;
}

#hamburger-nav {
    position: fixed;
    right: 20px;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    cursor: pointer;
}

#hamburger-nav>i {
    animation: hamburgerback 0.3s;
    font-size: 40px;
}

#hamburger-nav>i:hover {
    animation: hamburgerhover 0.3s forwards;
}

@keyframes hamburgerhover {
    to {
        color: #4DD4E7;
        text-shadow:
            0 0 7px #70dceb,
            0 0 10px #70dceb,
            0 0 21px #70dceb,
            0 0 42px #70dceb,
            0 0 82px #70dceb,
            0 0 92px #70dceb,
            0 0 102px #5ed8e9,
            0 0 151px #4dd4e7;
        font-size: 50px;
    }
}

@keyframes hamburgerback {
    from {
        color: #4DD4E7;
        text-shadow:
            0 0 7px #70dceb,
            0 0 10px #70dceb,
            0 0 21px #70dceb,
            0 0 42px #70dceb,
            0 0 82px #70dceb,
            0 0 92px #70dceb,
            0 0 102px #5ed8e9,
            0 0 151px #4dd4e7;
        font-size: 50px;
    }

    to {
        color: white;
        font-size: 40px;
    }
}


/* ### Content ### */


#content-container {
    background-color: #010c18;
    padding: 0 20px;
    display: grid;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    transition: height 0.4s ease-out, padding 0.4s ease-out;
    gap: 20px;
}

.content-block {
    display: grid;
    background-color: #142e87;
    border-radius: 20px;
    flex: 0 0 80%;
    min-width: 330px;
    width: 100%;
    min-height: 90dvh;
    max-width: 1200px;
    transition: 1s;
    left: 0;
    /* transition: height 0.4s ease-out, padding 0.4s ease-out; */
    grid-template-rows: min-content 1fr min-content;


    transition: transform 1s ease-in-out;
}

.hidden-bock {
    transform: translateX(-150%);
}

.slide-in {
    transform: translateX(0) !important;
}

.content-title {
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    padding: 10px 0
}

.content-text {
    font-size: 15px;
    text-align: justify;
    transition: all 1s ease;
    padding: 15px;
}

.content-image {
    height: 100%;
    width: 100%;
    max-height: 70dvh;
}

.content-image>img {
    width: 100%;
    object-fit: cover;
}

.uncoiling {
    text-align: center;
    width: 100%;
    font-size: 30px;
    margin-top: 10px;
    cursor: pointer;
}

.content-read {
    text-align: center;
    cursor: pointer;
    padding: 15px;
    margin-top: auto;
}

.content-read-text {
    text-align: center;
    width: 100%;
    display: block;
    margin-bottom: -10px;
}

/* # Content Image Croping # */

#content-image-1 {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#content-image-2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#content-image-3 {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ### Footer ### */

#footer-container {
    display: grid;
    grid-template-columns: 9fr 13fr 13fr 9fr;
    grid-template-rows: repeat(6, max-content);

    background-image: url("images/contact-background.webp?id=1");
    background-position: top right;
    background-size: 100%;
    background-repeat: no-repeat;

    padding: var(--padding);
}

#footer-container>div {
    margin: 0 0 20px;
    grid-column: 2 / 4;
    text-align: center;
}

.footer-title {
    font-size: 20px;
    font-weight: 900;

}

.footer-contact-text {
    text-align: justify !important;
}

.footer-consiladium-title {
    font-family: "Noto Sans Georgian", sans-serif;
    font-size: 30px;
    color: #03aced;
}

#footer-contact-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: min-content min-content;
    padding: 0 var(--padding) 0;
}

#footer-contact-block>div>div {
    display: grid;
    grid-template-columns: auto 1fr;
    text-align: left;
}

#footer-address {
    grid-template-columns: 1fr 1fr !important;
}

#footer-address>.contact-icon {
    text-align: right !important;
}

#footer-social-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
}

#footer-social-block :first-child {
    text-align: right;
}

#footer-social-block :last-child {
    text-align: left;
}

#footer-author {
    justify-self: right;
    font-size: 13px;
}


/* ### Reusable classes ### */

.image {
    max-height: 100%;
    max-width: 100%;
}

.hidden {
    visibility: hidden;
}

.expended {
    max-height: 500px;
    opacity: 1;
    /* transition: max-height 0.5s ease, opacity 0.5s ease; */
    transition: max-height 1s ease, opacity 1s ease;
}

.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    /* transition: max-height 0.5s ease, opacity 0.5s ease; */
    transition: max-height 1s ease, opacity 0.5s ease;
}

.blue {
    color: #4DD4E7;
}

.contact-icon {
    color: #4DD4E7;
    margin-right: 15px;
    margin-left: 15px;
    margin-bottom: 15px;
}

.underline {
    text-decoration: underline;
}

.text-on-image {
    text-shadow: 2px 2px black;
    font-size: 18px;
}


/* ### Phones ### */

@media screen and (max-width: 1200px) {
    body {
        background: none;
        background-color: #010c18 !important;
    }

    #footer-container {
        grid-template-columns: 0fr 1fr 1fr 0fr !important;
    }

    .content-block {
        min-width: 400px !important;
    }
}

@media screen and (max-width: 1000px) {
    .content-block {
        min-width: 80% !important;
    }

}

@media screen and (max-width: 730px) {
    .nav-close {
        visibility: visible !important;
        width: 100% !important;
    }

    .nav-close>i {
        margin-left: 180px;
    }

    #navbar {
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 1;
        top: 0;
        right: 0;
        background-color: #111;
        overflow-x: hidden;
        padding-top: 60px;
        transition: 0.5s;
        margin: 0;
        display: block !important;
    }

    #navbar a {
        padding: 8px 8px 8px 32px;
        text-decoration: none;
        font-size: 25px;
        color: #818181;
        display: block;
        transition: 0.3s;
        margin-left: 0;
        text-align: left;
    }


    @keyframes navhover {
        to {
            color: #4DD4E7;
            text-shadow:
                0 0 7px #70dceb,
                0 0 10px #70dceb,
                0 0 21px #70dceb,
                0 0 42px #70dceb,
                0 0 82px #70dceb,
                0 0 92px #70dceb,
                0 0 102px #5ed8e9,
                0 0 151px #4dd4e7;
            font-size: 27px;
        }
    }

    @keyframes navback {
        from {
            color: #4DD4E7;
            text-shadow:
                0 0 7px #70dceb,
                0 0 10px #70dceb,
                0 0 21px #70dceb,
                0 0 42px #70dceb,
                0 0 82px #70dceb,
                0 0 92px #70dceb,
                0 0 102px #5ed8e9,
                0 0 151px #4dd4e7;
            font-size: 27px;
        }

        to {
            color: #818181;
            font-size: 25px;
        }
    }


    #logo {
        height: 100px;
        margin-bottom: 10px;
    }

    .description {
        margin: 0;
        padding: 0;
        grid-column: 1 / -1;
        grid-row: 2 / 3;
    }

    /* #top-container {
        grid-template-rows: auto max-content;
    } */

    #hamburger-nav {
        visibility: visible;
    }
}

@media screen and (max-width: 700px) {
    #footer-container {
        background-size: auto;
    }
}

@media screen and (max-width: 670px) {
    #footer-social-block {
        grid-template-columns: auto !important;
        grid-template-rows: 1fr 1fr !important;
    }

    #footer-social-block :first-child {
        text-align: center !important;
    }

    #footer-social-block :last-child {
        text-align: center !important;
    }
}

@media screen and (max-width: 530px) {
    #footer-contact-block {
        grid-template-columns: auto !important;
    }

    #footer-address {
        grid-template-columns: min-content auto !important;
    }

    #top-container {
        background-size: cover;
        background-position: 100%;
    }

    #content-image-1 {
        margin-top: 0px;
    }

    #content-image-2 {
        margin-top: 0px;
    }
}


/* ### NO JAVASCRIPT ### */

.no-js #footer-container {
    background-image: url("images/contact-background.jpg") !important;
}

.no-js #top-container,
.no-js #top-container-sizer {
    background-image: url("images/background.jpg") !important;
}

.no-js #content-image-1 {
    content: url("images/content/1.jpg");
}

.no-js #content-image-2 {
    content: url("images/content/2.jpg");
}

.no-js #content-image-3 {
    content: url("images/content/3.jpg");
}

.no-js #logo>img {
    content: url("images/logo.png");
}