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

@font-face {
    font-family: "Inter"; 
    src: url("font/Inter/Inter-VariableFont_slnt,wght.ttf") format("truetype"); 
    font-style: normal; 
    font-weight: normal; 
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: Forum;
}

body {
    background: linear-gradient(#82c7d3, white);
}

a {
    text-decoration: none;
    color: rgb(78, 107, 176);
    cursor: pointer;
}

body,
main,
header,
footer {
    width: 100dvw;
}

hr {
    height: 3px;
    background: black;
    margin: 3vw 0;
}

.hide-piar {
    font-size: 0.1px;
}
/* header start */
header {
    position: fixed;
    height: 15vw; /*5vw*/
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: end; /*center*/
    box-shadow: 0 0 20px #268391;
    color: rgb(78, 107, 176);
    background-color: white;
    transition: all 0.35s ease;
    z-index: 3;
}

#number {
    position: absolute;
    right: 2vw;
    top: 2vw;
    font-size: 2vw;
    text-decoration: none;
    color: (53, 53, 164);
}

#mail {
    position: absolute;
    right: 2vw;
    top: 4.3vw;
    font-size: 1.6vw;
}

#logoBox {
    width: 35vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#logo {
    width: 28vw; /*12vw*/
    transition: all 0.35s ease;
}

nav {
    display: flex;
    align-items: center;
    width: 60vw;
    height: 4.5vw; /*100%*/
}

#r1, #r2, #r3, #r4, #m1, #m2, #m3, #m4{
    display: none;
}

label {
    width: 100%;
    height: 100%;
}

.head-buttons {
    position: relative;
    border: none;
    width: 100%;
    height: 100%;
    font-size: 1.5vw;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
    z-index: 1;
    background-color: white;
    color: rgb(78, 107, 176);
    border-radius: 3px;
    display: flex;
    justify-content: stretch;
}

.head-buttons a {
    width: 100%;
    height: 100%;
    font-family: inter;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.head-buttons:hover a {
    color: rgb(255, 255, 255);
}

.head-buttons::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(to right, rgb(155, 195, 235), rgb(115, 115, 222));
    transition: all 0.8s;
    z-index: -1;
}

.head-buttons:hover::before {
    width: 100%;
}

.head-buttons::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: rgb(32, 77, 182);
    transition: all 1s;
}

#r1:checked ~ label:nth-of-type(1) > button::after,
#r2:checked ~ label:nth-of-type(2) > button::after,
#r3:checked ~ label:nth-of-type(3) > button::after,
#r4:checked ~ label:nth-of-type(4) > button::after {
    animation-name: width;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    animation-timing-function:ease;
}

#r1:checked ~ label:nth-of-type(1) > button:hover::before,
#r2:checked ~ label:nth-of-type(2) > button:hover::before,
#r3:checked ~ label:nth-of-type(3) > button:hover::before,
#r4:checked ~ label:nth-of-type(4) > button:hover::before {
    width: 0%;
}

#r1:checked ~ label:nth-of-type(1) > button a,
#r2:checked ~ label:nth-of-type(2) > button a,
#r3:checked ~ label:nth-of-type(3) > button a,
#r4:checked ~ label:nth-of-type(4) > button a {
    color: rgb(32, 77, 182);
}
/* header end */



/* dropdown start */
#dropdown-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
}

#dropdown-img {
    margin-right: 0.6vw;
    width: 3vw;
    transition: 2s;
    cursor: pointer;
}

#dropdown-img:hover {
    animation-name: dropDownAnimation;
    animation-duration: 0.65s;
}


#dopLinks-wrapper {
    position: absolute;
    top: 15vw;
    right: 0;
    width: 12vw;
    height: 0;
    border-radius: 0 0 0 1.5vw;
    overflow: hidden;
    box-shadow: 0 0 20px #268391;
    transition: 0.5s;
    background-color: white;
}

.dopLinks-box {
    display: flex;
    flex-direction: column;
    height: 4vw;
    width: 100%;
}
/* dropdown end */



/* menu start */
#menuBox {
    display: none;
    cursor: pointer;
    position: absolute;
    right: 2.7vw;
    top: 1.8vw;
}

#b1, #b2, #b3 {
    width: 8vw;
    height: 0.7vw;
    background-color: rgb(89, 108, 157);
    margin: 1vw 0;
    transition: 0.4s;
}

.change #b1 {
    transform: rotate(45deg) translateY(2.35vw);
}

.change #b2 {
    opacity: 0;
}

.change #b3 {
    transform: rotate(-45deg) translateY(-2.35vw);
}


#menuM {
    position: absolute;
    width: 35vw;
    height: 0vw;
    right: 0;
    top: 10vw;
    overflow: hidden;
    transition: all 0.5s ease;
    background-color: aliceblue;
}

#navM {
    display: flex;
    flex-direction: column;
    width: 35vw;
    height: 35vw;
    border: 1px blue solid;
    border-radius: 0 0 2px 2px;
}

#m1:checked ~ label:nth-of-type(1) > button::after,
#m2:checked ~ label:nth-of-type(2) > button::after,
#m3:checked ~ label:nth-of-type(3) > button::after,
#m4:checked ~ label:nth-of-type(4) > button::after {
    animation-name: width;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    animation-timing-function:ease;
}

#m1:checked ~ label:nth-of-type(1) > button:hover::before,
#m2:checked ~ label:nth-of-type(2) > button:hover::before,
#m3:checked ~ label:nth-of-type(3) > button:hover::before,
#m4:checked ~ label:nth-of-type(4) > button:hover::before {
    width: 0%;
}

#m1:checked ~ label:nth-of-type(1) > button:hover,
#m2:checked ~ label:nth-of-type(2) > button:hover,
#m3:checked ~ label:nth-of-type(3) > button:hover,
#m4:checked ~ label:nth-of-type(4) > button:hover {
    color: blue;
}
/* menu end */






/* main start*/
main {
    margin-top: 15vw;
    background-color: aliceblue;
    padding: 2vw;
    position: relative;
    box-shadow: 0 0 20px 0 black;
}

h1 {
    font-size: 2.8vw;
    font-weight: 300;
    margin-top: 0.7vw;
    margin-left: 3vw;
    font-family: Inter;
    color: rgb(18, 17, 17);
    text-shadow: 0.03em 0.025em 1px rgb(142, 141, 141);
}

main > p {
    margin-left: 3vw;
    margin-top: 1vw;
    font-size: 1.6vw;
    text-align: justify;
}
/* main end*/






/* footer start*/
footer {
    display: flex;
    background: #82c7d3;
    padding: 2vw 2.5vw 0 2.5vw;
    flex-direction: column;
    gap: 1.4vw;
}

.footBlock1 {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 1.8vw;
}

.footBlock1 span {
    font-family: forum;
    border: black 1.5px solid;
    padding: 1vw;
    border-radius: 0.5vw;
    box-shadow: 2px 2px 3px black;
    transition: 0.5s;
}

.footBlock1 span a {
    color: black;
}

.footBlock1 span:hover {
    background-color: #48acbe;
}

.footBlock2 {
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.foot-buttons {
    position: relative;
    border: black 2px solid;
    font-size: 1.3vw;
    cursor: pointer;
    text-transform: uppercase;
    font-family: inter;
    transition: all 0.55s;
    text-align: center;
    background-color: transparent;
    padding: 0.7vw;
    border-radius: 3px;
    box-shadow: 0 0 5px black;
}

.foot-buttons:hover {
    margin-left: -0.6vw;
    box-shadow: 6px 6px 8px rgba(0, 0, 0, 0.75);
    background-color: rgba(0, 0, 0, 0.75);
    color: #84c8d3;
}

.foot-bottom {
    width: 100%;
    padding: 0.6vw 0;
    border-top: 1px solid black;
}

.foot-bottom span {
    font-family: forum;
    font-size: 1.3vw;
}

#toUp {
    background-color: #a2e5f1;
    font-size: 1.4vw;
}

#toUp:hover {
    padding: 0.6vw 0.9vw;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.75);
    background-color: rgba(0, 0, 0, 0.75);
    color: #84c8d3;
}
/* footer end*/




@media screen and (max-width: 700px) {
/* header start */
header {
    height: 40vw; /*10vw*/
    box-shadow: 0 0 2vw 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: end; 
}

#number {
    font-size: 3.9vw;
}

#mail {
    top: 6vw;
    font-size: 3.4vw;
}

#logoBox {
    width: 100vw;
    height: 50%;
}

#logo {
    width: 45vw; /*25vw*/
}

nav {
    width: 95vw;
    height: 7vw; /*100%*/
}

.head-buttons {
    font-size: 2.7vw;
}

.head-buttons::after {
    height: 1.5px;
}
/* header end */


/* dropdown start */
#dropdown-img {
    margin-right: 0.15vw;
    width: 5vw;
}

#dropdown-img:hover {
    animation-name: none;
}

#dopLinks-wrapper {
    top: 40vw;
    width: 25vw;
    border-radius: 0 0 0 1.5vw;
    box-shadow: -2px 3.5px 5px rgba(58, 103, 208, 0.4);
    overflow: hidden;
    transition: 0.5s;
    background-color: white;
}

.dopLinks-box {
    display: flex;
    flex-direction: column;
    height: 7vw;
    width: 100%;
}
/* dropdown end */


/* main start*/
main {
    margin-top: 40vw;
}

h1 {
    font-size: 4.3vw;
    text-shadow: 0.07em 0.07em 1px rgb(142, 141, 141);
    text-align: center;
}

main > p {
    font-size: 3vw;
}
/* main end*/

/* footer start*/
footer {
    padding: 3.7vw 2vw 0 2vw;
    gap: 3vw;
}

.footBlock1 {
    font-size: 2.35vw;
}

.footBlock1 span {
    border-radius: 0.5vw;
    box-shadow: 1px 1px 4px black;
}

.foot-buttons {
    font-size: 2.05vw;
    border: black 1.3px solid;
    color: black;
}

.foot-buttons:hover {
    margin: 0;
}

.foot-bottom span {
    font-size: 2.25vw;
}

#toUp {
    font-size: 2.1vw;
}

#toUp:hover {
    margin: 0;
}
/* footer end*/
}



@keyframes width {
    0% {width:0;}
    100% {width: 100%;}
}

@keyframes dropDownAnimation {
    0% {width: 3vw;}
    45% {width: 3.55vw;}
    50% {width: 3.35vw; margin-right: 0.4vw;}
    55% {width: 3.55vw;}
    100% {width: 3vw;}
}