@import url(nav.css);

header {
    width: 94%;
    height: 86vh;
    background: url(../images/coffee-background.png) no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
    padding: 14vh 0 0vh 0;
    z-index: 0;
    float: left;
    position: relative;
}

header::after {
    content: '';
    width: 100%;
    height: 30vh;
    position: absolute;
    background: #ffffff;
    background: linear-gradient(0deg,rgba(var(--white), 1) 30%, rgba(var(--white), 0) 100%);
    z-index: 0;
    bottom: 0;
}

header section {
    background-color: rgba(var(--white),0.4);
    width: 40vw;
    height: 38vh;
    border-radius: 16px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    align-items: center;
    justify-items: center;
    direction: rtl;
    backdrop-filter: blur(7px);
    border: 2px solid rgb(var(--white));
    box-shadow: 0 0 10px 2px rgba(var(--white),0.3);
}

header section img {
    grid-area: 1 / 4 / 6 / 6;
    width: 80%;
}

header section h1 {
    grid-area: 1 / 1 / 3 / 4;
    font-family: 'Vazir', sans-serif;
    color: rgb(var(--dark-brown));
    font-size: 4rem;
    font-weight: 800;
    text-align: right;
}

header section h2 {
    grid-area: 3 / 1 / 5 / 4;
    font-family: 'Vazir';
    font-weight: 600;
    font-size: 2rem;
}

header a {
    text-decoration: none;
    color: rgb(var(--black));
    border-radius: 70px;
    background-color: rgba(var(--black),0.1);
    box-shadow: 0 0 2px 1px rgba(var(--black),0.6);
    font-family: 'Courier New', Courier, monospace;
    font-weight: 800;
    font-size: 2rem;
    padding: 10px 20px;
    rotate: -90deg;
    border: 4px solid rgb(var(--black));
    cursor: pointer;
    margin-bottom: -40px;
    position: relative;
    z-index: 1;
}

#main {
    width: 94%;
    background-color: rgb(var(--white));
    height: 830px;
    position: relative;
    float: left;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
}

#particles-js {
    position: absolute;
    background-color: transparent;
    z-index: 0;
    width: 100%;
    height: 100%;
    filter: hue-rotate(200);
    padding: 0;
    margin: 0;
    opacity: 0.6;
    filter: blur(1px);
}

#main::after {
    content: '';
    width: 100%;
    height: 31vh;
    position: absolute;
    background: #000000;
    background: linear-gradient(0deg,rgba(var(--black), 1) 10%, rgba(var(--black), 0) 100%);
    z-index: 0;
    bottom: -10px;
}

#main section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    width: 55vw;
    height: 640px;
    border-radius: 16px;
    direction: ltr;
    z-index: 1;
}

#main section article {
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: end;
    justify-content: center;
}

#main section article:hover {
    box-shadow: 0 0 10px 1px rgba(var(--black),0.6);
}

#main section article h3 {
    font-family: 'Vazir', sans-serif;
    font-weight: 800;
    color: rgb(var(--white));
    text-shadow: 0px 0px 6px #000000;
    font-size: 2rem;
    max-width: 70%;
    text-align: center;
}

#main section article:nth-of-type(1) {
    grid-area: 1 / 3 / 2 / 4;
    background: url(../images/coffee-beans.jpg);
    background-repeat: no-repeat;
    background-size: 110%;
    background-position: center;
}

#main section article:nth-of-type(2) {
    grid-area: 1 / 2 / 2 / 3;
    background: url(../images/coffee-powder.jpg);
    background-repeat: no-repeat;
    background-size: 110%;
    background-position: center;
}

#main section article:nth-of-type(3) {
    grid-area: 1 / 1 / 2 / 2;
    background: url(../images/chocolate-powder.jpg);
    background-repeat: no-repeat;
    background-size: 110%;
    background-position: center;
}

#main section article:nth-of-type(4) {
    grid-area: 2 / 1 / 3 / 4;
    background: url(../images/backgroundForWinnerCombo.png);
    background-repeat: no-repeat;
    background-size: 110%;
    background-position: center;
    align-items: center;
}

#main section article:nth-of-type(4) h3 {
    color: rgb(var(--black));
    text-shadow: none;
    font-weight: 800;
    font-size: 3rem;
}

#main section article:nth-of-type(5) {
    grid-area: 3 / 3 / 4 / 4;
    background-color: rgb(var(--dark-brown));
    align-items: center;
}

#main section article:nth-of-type(5) h3 {
    text-shadow: none;
}

#main section article:nth-of-type(6) {
    grid-area: 3 / 1 / 4 / 3;
    background-color: rgb(var(--black));
    align-items: center;
}

#main a {
    text-decoration: none;
    border-radius: 70px;
    color: rgb(var(--light-brown));
    background-color: rgba(var(--light-brown),0.1);
    box-shadow: 0 0 2px 1px rgba(var(--light-brown),0.6);
    font-family: 'Courier New', Courier, monospace;
    font-weight: 800;
    font-size: 2rem;
    padding: 10px 20px;
    rotate: -90deg;
    border: 4px solid rgb(var(--light-brown));
    cursor: pointer;
    margin-bottom: -40px;
    position: relative;
    z-index: 1;
}

#info {
    position: relative;
    z-index: 1;
    float: left;
    width: 66vw;
    background-color: rgb(var(--black));
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 30px;
    padding: 10vh 14vw;
    direction: ltr;
}

#info article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    background-color: rgba(var(--white),0.2);
    border-radius: 16px;
    padding: 0px 30px;
}

#info article:nth-of-type(1) {
    grid-area: 1 / 2 / 3 / 3;
}

#info article:nth-of-type(2) {
    grid-area: 3 / 2 / 5 / 3;
}

#info article:nth-of-type(3) {
    grid-area: 1 / 1 / 5 / 2;
}

#info article h4 {
    font-family: 'Vazir', sans-serif;
    font-weight: 800;
    color: rgb(var(--light-brown));
    direction: rtl;
    font-size: 3rem;
    position: relative;
    text-shadow: 0px 0px 6px #000000;
}

#info article h4 span {
    color: rgba(var(--white),0.4);
    filter: blur(1px);
    font-size: 1.2rem;
    position: absolute;
    top: -1rem;
    width: 100%;
    text-shadow: none;
}

#info article:nth-of-type(1) h4 span {
    right: -1.6rem;
}

#info article:nth-of-type(2) h4 span {
    right: 40%;
    top: -0rem;
}

#info article:nth-of-type(3) h4 span {
    right: 85%;
    top: -0.5rem;
}

#info article p {
    direction: rtl;
    text-align: justify;
    font-family: 'Vazir';
    font-weight: 500;
    color: rgb(var(--white));
    margin-top: -40px;
}

#info article a {
    width: 99%;
    background-color: rgb(var(--light-brown));
    cursor: pointer;
    padding: 10px 0;
    text-decoration: none;
    color: black;
    font-family: 'Vazir';
    font-weight: 500;
    margin-bottom: 35px;
    margin-top: 20px;
    text-align: center;
    border-radius: 8px;
    font-size: 1.4rem;
}

#info img {
    width: 100%;
    grid-area: 5 / 1 / 6 / 3;
    border-radius: 16px;
    height: 300px;
    object-fit: cover;
    position: relative;
}

#info::after {
    content: '';
    width: 100%;
    height: 20vh;
    position: absolute;
    background: #000000;
    background: linear-gradient(0deg, rgba(var(--black), 1) 10%, rgba(var(--black), 0) 100%);
    z-index: 10;
    bottom: 13vh;
}

#blog {
    background-color: rgb(var(--black));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 15px;
    height: auto;
    width: 70%;
    padding: 8vh 12vw 20vh 12vw;
    overflow: hidden;
    float: left;
    direction: ltr;
    color: rgb(var(--white));
    font-family: 'Vazir', sans-serif;
    position: relative;
}

#blog h3 {
    grid-area: 1 / 4 / 4 / 5;
    font-size: 3.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    text-shadow: 0 0px 20px rgb(var(--light-brown));
}

#blog article {
    background-color: rgba(var(--white),0.3);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 15px;
    border-radius: 16px;
    padding: 5px 20px;
    position: relative;
    width: 100%;
    min-height: 23vh;
}

#blog article img {
    grid-area: 1 / 4 / 4 / 6;
    height: 35vh;
    margin: 2vh 0 0 0;
    position: absolute;
    right: -50%;
    border-radius: 8px;
    width: 25vw;
    object-fit: cover;
    box-shadow: 0 0 6px 0px black;
}

#blog article a {
    grid-area: 4 / 4 / 5 / 6;
    text-decoration: none;
    color: rgb(var(--black));
    width: 100%;
    height: 40px;
    margin: 4vh 0 0 7.3vw;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-family: 'Vazir',sans-serif;
    font-weight: 500;
    background-color: rgb(var(--light-brown));
    box-shadow: 0 0 6px 0px black;
}

#blog article h4 {
    grid-area: 1 / 1 / 2 / 4;
    font-weight: 800;
    font-size: 1.8rem;
    margin: 6vh 0 0 0;
    line-height: 1;
    direction: rtl;
}

#blog article p {
    grid-area: 2 / 1 / 5 / 4;
    font-family: 'Vazir', sans-serif;
    font-weight: 300;
    margin: 0;
    margin-top: 0vh;
    direction: rtl;
    text-align: justify;
    font-size: 0.8rem;
    margin-bottom: 1vh;
}

#blog article:nth-of-type(1) {
    grid-area: 1 / 1 / 2 / 4;
}

#blog article:nth-of-type(2) {
    grid-area: 2 / 1 / 3 / 4;
    direction: rtl;
}

#blog article:nth-of-type(3) {
    grid-area: 3 / 1 / 4 / 4;
}

#blog article:nth-of-type(2) img {
    right: auto;
    left: -9vw;
}

#blog article:nth-of-type(2) a {
    margin: 4vh 5.8vw 0 0;
}

#blog::after {
    content: "";
    width: 120%;
    position: absolute;
    height: 30vh;
    bottom: -14vh;
    left: -10%;
    background: #822D00;
    background: linear-gradient(0,rgba(var(--dark-brown), 1) 50%, rgba(var(--black), 1) 100%);
    z-index: 1;
    border-radius: 100%;
    filter: blur(10px);
}

footer {
    background-color: rgb(var(--dark-brown));
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
    height: 97vh;
    float: left;
    width: 100%;
    position: relative;
    z-index: 101;
    padding-bottom: 3vh;
}

footer a:not(#copy-right-text) {
    text-decoration: none;
    border-radius: 70px;
    color: rgb(var(--white));
    background-color: rgba(var(--white),0.1);
    box-shadow: 0 0 2px 1px rgba(var(--white),0.6);
    font-family: 'Courier New', Courier, monospace;
    font-weight: 800;
    font-size: 2rem;
    padding: 10px 20px;
    rotate: 90deg;
    border: 4px solid rgb(var(--white));
    cursor: pointer;
    margin-bottom: -40px;
    position: relative;
    z-index: 1;
}

footer img:nth-of-type(1) {
    width: 20vw;
}

footer div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

footer svg {
    fill: rgb(var(--white));
    width: 80px;
    cursor: pointer;
}

footer #copy-right {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgb(var(--black));
    color: rgb(var(--white));
    font-family: 'Vazir', sans-serif;
    font-weight: 500;
    padding: 7px 0;
}

footer #copy-right-text {
    text-decoration: none;
    color: rgb(var(--white));
    margin: 0 25px;
}