:root {
    --main-color: rgb(223, 226, 252);
    --main-color-t: rgba(223, 226, 252, 0.507);
    --first-color: rgb(19, 19, 19);
    --second-color: rgb(47, 28, 155);
    --third-color: rgb(49, 95, 49);
    --fourth-color: rgb(202, 50, 50);
    --background-color: #e8ffff;
    --project-background-color: rgb(57, 62, 77);
    --border-radius: 4px; 
    --font-size-h1: 1.5rem;
    --font-size-h2: 1.4rem;
    --font-size-h3: 1.2rem;
    --font-size-h4: 1.1rem;
    --font-size-p: 1.1rem;
    --font-size-p2: 1.3rem;
    --container-width: 80%;
    --link-width: 10%;
    --popup-width: 40%;
    --detail-container-width: 55%;
}

html,
body {
    margin: 0px;
    padding: 0px;
    text-decoration: 0px;
    box-sizing: border-box;
}

html {
    font-family: 'JetBrains Mono', monospace;
}

body {
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

nav {
    background-color: var(--main-color-t);
    height: 90px;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4;
    margin-bottom: 50px;
}

.blur-t {
    position: absolute;
    display: block;
    top: 90px;
    height: 40px;
    width: 100%;
    background: linear-gradient(180deg, rgba(223, 226, 252, 0.507) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 2;
}

.navbar {
    width: var(--container-width);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.links {
    list-style: none;
    display: flex;
    justify-content: space-between;
    width: var(--link-width);
    align-items: center;
}

.links li a,
.logo a {
    text-decoration: none;
    color: black;
    font-size: var(--font-size-h4);
}

#container {
    z-index: 4;
    width: var(--container-width);
    margin-bottom: 50px;
}

.slogan {
    display: flex;
    align-items: center;
    width: 100%;
    height: 140px;
}

p {
    font-size: var(--font-size-p2);
}

.gallery {
    display: block;
}

.project {
    position: relative;
    display: inline-block;
    height: auto;
    aspect-ratio: 16 / 9;
    width: 100%;
    border: 1px solid var(--main-color-t);
    border-radius: var(--border-radius);
    background-color: var(--project-background-color);
    margin-bottom: 10px;
    overflow: hidden;
}

.flex-section {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

.info {
    background-color: rgb(31, 31, 31);
    background: linear-gradient(180deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, 0.3) 20%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, .8) 100%);
    opacity: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 4;
    color: var(--main-color);
    transition: 0.3s all ease-in-out;
    overflow: hidden;
}

.info>ul,
.project-name {
    bottom: 0px;
    text-decoration: none;
    list-style: none;
    margin: 0px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.info:hover {
    opacity: 1;
}

img {
    transition: all 0.1s ease-in-out;
}

.info:hover+img {
    scale: 1.04;
}

.info:hover+.project {
    border: 5px solid white;
}

footer {
    position: relative;
    background-color: var(--main-color-t);
    height: 90px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    margin-top: auto;
}

.footer-bar {
    display: grid;
    width: var(--container-width);
    grid-template-columns: 33.3% 33.3% 33.3%;
    align-items: center;
}

.footer-1 {
    display: flex;
    justify-content: flex-start;
}

.footer-2 {
    display: flex;
    justify-content: center;
}

.footer-3 {
    display: flex;
    justify-content: flex-end;
}

.icon {
    height: 40px;
    width: 40px;
}

.contact-section {
    display: flex;
    margin-bottom: 20px;
}

.contact-section .project {
    width: 50%;
}

.contact-info {
    display: flex;
    width: 50%;
    padding-left: 20px;
    padding-top: 20px;
    font-size: 16px;
}

.contact-info ul {
    list-style: none;
}

.newsletter {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-top: 15px;
}

.newsletter p {
    color: rgb(66, 66, 66);
}

.form {
    display: flex;
}

.form-input {
    width: 400px;
    height: 40px;
}

.form-submit {
    width: 100px;
    height: 46px;
    background-color: var(--main-color);
    border: 2px rgb(187, 187, 187) solid;
    border-radius: var(--border-radius);
    margin-left: 20px;
    font-size: var(--font-size-p);
    cursor: pointer;
}

.form-submit:hover {
    border-width: 3px;
    border-image: linear-gradient(to right, #11998e, #38ef7d);
    border-image-slice: 1;
}

.form-submit:focus {
    background: linear-gradient(to right, #11998e, #38ef7d);
}



.form__group {
    position: relative;
    padding: 15px 0 0;
    width: 400px;
}

.form__field {
    font-family: inherit;
    width: 400px;
    border: 0;
    border-bottom: 2px solid gray;
    outline: 0;
    font-size: var(--font-size-p);
    color: black;
    padding: 1px 0;
    background: transparent;
    transition: border-color 0.2s;
}

.form__field::placeholder {
    color: transparent;
}

.form__field:placeholder-shown~.form__label {
    font-size: var(--font-size-p2);
    cursor: text;
    top: 15px;
}


.form__label {
    position: absolute;
    top: -5px;
    display: block;
    transition: 0.2s;
    font-size: calc(0.8* var(--font-size-p2));
    color: gray;
}

.form__field:focus {
    padding-bottom: 2px;
    font-weight: 700;
    border-width: 3px;
    border-image: linear-gradient(to right, #11998e, #38ef7d);
    border-image-slice: 1;
}

.form__field:focus~.form__label {
    position: absolute;
    top: 0;
    display: block;
    transition: 0.2s;
    font-size: var(--font-size-p);
    color: #11998e;
    font-weight: 700;
}


.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transition: all 0.2s;
    visibility: hidden;
    opacity: 0;
    z-index: 90;
    display: grid;
    align-content: center;
    justify-items: center;
}

.shadow {
    position: fixed;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    width: 100%;
    height: 100%;
    cursor: url("close.svg"), auto;
}

.overlay:target {
    visibility: visible;
    opacity: 1;
}

.overlay-opened {
    visibility: visible;
    opacity: 1;
}

.popup {
    padding: 20px;
    background: #fff;
    border-radius: var(--border-radius);
    width: var(--popup-width);
    position: relative;
    transition: all 0s ease-in-out;
    z-index: 99;
}

.popup h2 {
    font-size: var(--font-size-h2);
    margin-top: 0;
    color: #333;
    font-family: Tahoma, Arial, sans-serif;
}

.popup .close {
    position: absolute;
    top: 5px;
    right: 18px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    cursor: pointer;
}

.popup .close:hover {
    color: #bd3648;
}

.popup .content {
    overflow: hidden;
}

.popup .content h4 {
    text-align: center;
}

.popup .content p {
    font-size: var(--font-size-p);
}

.open_popup {
    cursor: pointer;
}

.quick-view {
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 16/9;
    max-height: 400px;
    border-radius: var(--border-radius);
    background-color: #333;
}

#detail-container {
    width: var(--detail-container-width);
    margin-bottom: 100px;
}

.main-video {
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 16/9;
    background-color: #333;
    max-height: 600px;
    border-radius: var(--border-radius);
    background-color: #333;
    margin-bottom: 10px;
}

.link-to-detail {
    text-decoration: none;
    color: #192a72;
    float: right;
}

.link-to{
    text-decoration: none;
    color: var(--main-color);
}

.link-to-2{
    text-decoration: none;
    color: #192a72;
}

.rating {
    float: left;
    padding-right: 50px;
}

details {
    padding: 10px 0px;
}

summary {
    cursor: pointer;
    padding-left: 10px;
}

.checked {
    color: orange;
}

.blur-b {
    position: absolute;
    display: block;
    bottom: 90px;
    height: 40px;
    width: 100%;
    background: linear-gradient(0deg, rgba(223, 226, 252, 0.507) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 2;
}

@media only screen and (max-width: 1150px) {
    :root {
        --container-width: 80%;
        --link-width: 20%;
        --popup-width: 50%;
        --detail-container-width: 65%;
    }
}

@media only screen and (max-width: 950px) {
    :root {
        --container-width: 85%;
        --link-width: 25%;
        --popup-width: 60%;
        --detail-container-width: 80%;
    }
    
    .newsletter {
        flex-wrap: wrap;
    }
}

@media only screen and (max-width: 750px) {
    :root {
        --container-width: 90%;
        --link-width: 25%;
        --popup-width: 80%;
        --detail-container-width: 90%;
    }
    .flex-section {
        flex-wrap: wrap;
    }

    .quick-view {
        height: auto;
    }

    .contact-section {
        flex-wrap: wrap;
    }

    .contact-section .project {
        width: 100%;
    }

    .contact-info {
        width: 100%;
    }

    .slogan {
        display: block;
    }

    .form__group {
        width: auto;
    }

    .form__field {
        width: auto;
    }

    .footer-2 {
        display: none;
    }

    .footer-bar{
        grid-template-columns: 50% 50%;
    }

}

@media only screen and (max-width: 600px) {
    :root {
        --container-width: 90%;
        --popup-width: 85%;
        --detail-container-width: 90%;
    }
}