:root {
    --light-orange: rgb(255, 219, 121);
    --purple: #7a66eb;
    --dark-purple: rgb(69, 42, 131);
    --black-purple: rgb(37, 25, 68);
    --transparent: rgba(255, 255, 255, 0); /* Transparent */
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #e698b0, #fd9ba8, #8bccd6, #073a7c, #073a7c);
    background-size: 200% 200%;
    animation: gradient 7s ease infinite;
    overflow: overlay;
}

body::-webkit-scrollbar {
    width: 16px; 
}
  
body::-webkit-scrollbar-track {
    background: rgb(0, 0, 0, 0);
}
  
body::-webkit-scrollbar-thumb {
    background-color: var(--dark-purple);   
    border-radius: 20px;
    border: 3px solid var(--light-orange); 
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


* { margin: 0; padding: 0; }  /* reset margin and padding */

a, a:hover, a:focus, a:active {
    text-decoration: none;
    color: inherit;
}

h2 {
    color: var(--purple);
    text-shadow: 1px 1px 0px var(--black-purple), 2px 2px 0px var(--black-purple), 3px 3px 0px var(--black-purple), 
                 4px 4px 0px var(--black-purple), 5px 5px 0px var(--black-purple);
}


#menu-button {
    position: fixed;
    font-size: 40px;
    color: var(--dark-purple);
    padding: 6px 10px 6px 10px;
    border-radius: 10px;
    margin: 10px;
    transition: 0.3s;
}
#menu-button:hover {
    background-color: var(--light-orange);
    color: var(--purple)
}

#nav-bar {
    position: fixed;
    z-index: 1;
    background: linear-gradient(var(--light-orange), var(--light-orange), rgb(255, 255, 255, 0));
    padding: 12px 8px 100px 8px;
    width: fit-content;
    height: fit-content;
    transition: 0.3s;
    display: none;
}

.close-button {
    color: var(--dark-purple);
    font-size: 25px;
    transition: 0.3s;
}
.close-button:hover {
    color:var(--purple);
}

#dark-mode-button {
    margin-top: 30px;
    padding: 10px;
    border-radius: 50%;
    margin-left: 3px;
    font-size: 50px;
    transition: 0.4s;
}
#dark-mode-button:hover {
    background-color: var(--purple);
    color: white;
}


#link-wrapper {
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-link {
    padding-top: 25px;
    font-family: 'Anton', sans-serif;
    font-size: 20px;
    color: var(--dark-purple);
    transition: 0.3s;
}
.nav-link:hover {
    color: var(--purple)
}

#headline {
    margin-top: 70px;
    position: absolute;
    font-family: 'Otomanopee One', sans-serif;
    font-size: 80px;
    display: flex;
    justify-content: center;
    color: var(--purple);
    text-shadow: 1px 1px 0px var(--black-purple), 2px 2px 0px var(--black-purple), 3px 3px 0px var(--black-purple), 
                 4px 4px 0px var(--black-purple), 5px 5px 0px var(--black-purple), 6px 6px 0px var(--black-purple), 
                 7px 7px 0px var(--black-purple), 8px 8px 0px var(--black-purple), 9px 9px 0px var(--black-purple);
}
.shake {
    animation-name: shaking;
    animation-duration: 2.5s;
    animation-iteration-count: infinite;
}
.wave {
    margin-left: 20px;
    animation-name: waving;
    animation-duration: 2.5s;
    animation-iteration-count: infinite;
}


.avatar {
    margin-top: 220px;
    width: 300px;
    transform: rotateY(180deg);
}

.medias {
    background-color: var(--light-orange);
    border-radius: 10px;
    margin-top: 300px;
    margin-right: 150px;
    width: 230px;
    height: 230px;
    box-shadow: 15px 15px var(--purple);
    display: grid;
    place-items: center;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    grid-gap: 10px;
}

.self-intro {
    background-color: var(--light-orange);
    padding: 50px 50px 50px 50px;
    border-radius: 20px;
    box-shadow: 15px 15px var(--purple);
    width: fit-content;
    height: fit-content;
    margin: 0px 350px 0px 350px;
    text-align: justify;
}

.media-icon {
    width: 52px;
    font-size: 50px;
    text-align: center;
    text-decoration: none;
    color: var(--purple);
    transition: 0.3s;
}
.media-icon:hover {
    color: var(--dark-purple);
}

.text {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: bold;
    font-size: 24px;
}


.bigger-text {
    font-family: 'Teko', sans-serif;
    font-weight: bold;
    font-size: 45px;
    margin-bottom: 10px;
}

#education {
    background-color: rgb(0, 0, 0, 0.1);
    margin-top: 90px;
    margin-bottom: 50px;
    padding: 10px;
    color: black;
}

#education-wraper {
    margin-top: 130px;
    margin-bottom: 200px;
    height: 350px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#school-photo-container {
    width: 800px;
    height: fit-content;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-evenly;
}

.school {
    margin-top: 20px;
    width: 260px;
    width: 260px;
    border-color: var(--light-orange);
    border-width: 13px;
    border-style: solid;
    border-radius: 10%;
    transition: 0.5s;
}
.school:hover {
    border-color: rgb(255, 255, 255);
    box-shadow: 0 0 2px #fff, 0 0 10px #fff, 0 0 20px #fcf599, 0 0 30px #fcf599, 0 0 40px #fcf599, 0 0 50px #fcf599;
}

.school-name {
    font-size: 35px;
}

.school-description {
    border-color: var(--dark-purple);
    border-width: 8px 0px 0px 0px;
    border-style: solid;
    border-radius: 0px 0px 40px 40px;
    margin-top: 27px;
    margin-left: 10px;
    padding: 10px 0px 30px 20px;
    width: 400px;
    height: fit-content;
    background-color: rgb(255, 255, 255, 0.7);
    ;
}

#projects-wrapper {
    height: fit-content;
    width: auto;
    display: grid;
    grid-template-columns: auto auto auto;
}

.project-frame {
    flex-wrap: wrap;
    flex-direction: column;
    background-color: var(--light-orange);
    width: 330px;
    transition: 0.3s;
    margin: 30px 15px 0px 15px;
    padding-bottom: 15px;
    border-radius: 30px;
}
.project-frame:hover {
    transform: scale(1.07, 1.07);
}

.project-photo {
    width: 330px;
    height: 330px;
    border-radius: 30px 30px 0px 0px;
}

.project-description {
    height: 110px;
    text-align: left;
    font-size: 18px;  
    margin: 10px 20px 0px 20px;
    padding: 0px 10px 0px 10px;
}


#proj-info {
    background-color: rgb(233, 233, 233);
    z-index: 1;
    margin: 10vh 0 10vh 0;
    height: 80vh;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0px;
    left: 0px;
    transition: 0.5s;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    direction: rtl;
}


.button {
    width: 130px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background-color: var(--dark-purple);
    color:white;
    font-size: 25px;
    transition: 0.3s;
}
.button:hover {
    transform: scale(1.10, 1.10);
}

.message-box-setting {
    text-justify: auto;
    border: none;
    border-radius: 10px;
    width: 800px;
    height: 100px;
}

.center {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

@keyframes shaking {
    0% { transform: rotate(0.0deg)}
    20% { transform: rotate(-0.5deg)}
    30% { transform: rotate(1.0deg)}
    40% { transform: rotate(-1.0deg)}
    50% { transform: rotate(1.0deg)}
    60% { transform: rotate(-1.0deg)}
    70% { transform: rotate(1.0deg)}
    80% { transform: rotate(-0.5deg)}
    100% { transform: rotate(0.0deg)}
}

@keyframes waving {
    0% { transform: rotate( 0.0deg) }
   10% { transform: rotate(30.0deg) }
   20% { transform: rotate(-10.0deg) }
   30% { transform: rotate(20.0deg) }
   40% { transform: rotate(-10.0deg) }
   50% { transform: rotate(15.0deg) }
   60% { transform: rotate( 0.0deg) }
  100% { transform: rotate( 0.0deg) }
}



@media (max-width: 1500px) {
    .self-intro {
        margin: 0px 150px 0px 150px;
    }
}

@media (max-width: 1100px) {
    #projects-wrapper {
        grid-template-columns: auto auto;
    }
}

@media (max-width: 930px) {
    .self-intro {
        width: auto;
        margin-left: 80px;
        margin-right: 80px;
    }
}

@media (max-width: 900px) {
    .medias {
        margin-top: 330px;
        width: 200px;
        height: 200px;
    }
}


@media (max-width: 800px) {
    .headline {
        font-size: 60px;
    }
    .medias {
        margin-top: 330px;
        width: 170px;
        height: 170px;
        padding: 10px;
    }
    .media-icon {
        width: fit-content;
        font-size: 40px;
    }
    .self-intro {
        width: auto;
        margin-left: 40px;
        margin-right: 40px;
    }
    .school-name {
        font-size: 28px;
    }
    .school-description {
        width: 330px;
    }
    .text {
        font-size: 20px;
    }
    #projects-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 630px) {
    .nav-link {
        font-size: 15px;
    }
    .headline {
        font-size: 50px;
    }
    .avatar {
        width: 200px;
        height: 200px;
        margin-top: 130px;
    }
    .medias {
        margin-top: 150px;
        height: 150px;
        width: 150px;
        padding: 20px;
        gap: 30px;
    }
    .self-intro {
        width: auto;
        margin-left: 20px;
        margin-right: 20px;
    }
    .education-wrapper {
        height: 290px;
    }
    .school {
        width: 190px;
    }
    .school-description {
        width: 250px;
    }
    .text {
        font-size: 18px;
    }
}
