*{
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    box-sizing: border-box;
}

body{
    background: #202020;
    color: #d1d2d0;
}
html{
    scroll-behavior: smooth;
}
#header{
    width: 100%;
    height: 100vh;
    background-size: fill;
    background-position: center;
}

#logo{
    width: 120px;
    padding: 10px;
    transition: 10s;
}

#logo:hover{
    background-color: #000000;
    border-radius: 200px;
}

.container{
    padding: 20px 10%;
}

#portrait{
    border-radius: 70px;
    width: 50vh;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-text{
    font-size: 60px;
    color: #d1d2d0;
}
.header-text p{
    color: #5f21f1;
}


nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}
nav ul li a{
    color: #d1d2d0;
    text-decoration: none;
    font-size: 20px;
    position: relative;
}
nav ul li a::after{
    content: "";
    width: 0;
    height: 3px;
    background: #5f21f1;
    position: absolute;
    left:0;
    bottom: -6px;
    transition: .4s;
}

nav ul li a:hover::after{
    width: 100%;
}



/*------------about------------*/

#about{
    padding: 80px 0;
    background-color: #302e35;
}

.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1{
    flex-basis: 35%;
}
.about-col-1 img{
    width: 100%;
    border-radius: 15px;
}

.about-col-2{
    flex-basis: 60%;
}

.about-col-2 p{
    font-size: large;
}

.sub-title{
    font-size: 60px;
    font-weight: 600;
}


.tab-titles{
    display: flex;
    margin: 20px 0 40px;

}

.tab-links{
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}


.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: #5f21f1;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after{
    width: 50%;
}

.tab-contents ul li {
    list-style: none;
    font-size: large;
    padding: .5em;
}
.tab-contents ul li span {
    color: #ffffff;
    font-size: 2.7em;
}
.tab-contents ul li img{
    width: 4em; /* You can adjust the width as needed */
    height: 4em; /* You can adjust the height as needed */
    margin-bottom: -.5em;
    margin-right: 0.1em; /* Adjust the spacing between the icon and text */
}

.tab-contents{
    display: none;
}

.tab-contents.active-tab{
    display: flex;
}
.tab-contents.active-tab ul{
    padding: 10px;
}

.course-list {
    columns: 3;
    -webkit-columns: 3;
    -moz-columns: 3;
    list-style-type: none;
    padding: 0; /* Remove default padding */
}

.course-list li {
    break-inside: avoid-column;
    padding-left: 20px; /* Add some padding for better readability */
}



/*------------portfolio------------*/

#portfolio{
    padding: 50px 0;
}

.work-list{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(550px,1fr));
    grid-gap: 50px;
    margin-top: 50px;
}

.work{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}



.work img{
    width: 100%;
    border-radius: 10px;
    display: block;
    
}
.work h5{
    color: #727272;
}

.link-icon img{
    width: 48px;
    height: 48px;
}

.layer{
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.8),#202020);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    color: #d1d2d0;
}
.layer:hover{
    background: linear-gradient(rgba(0,0,0,0.6),#5f21f1);


}

.layer h3 p{
    font-weight: 500;
    margin-bottom: 20px;
}

.social-icons img{
    height: 48px;
    width: 48px;
    padding:2px;
}


/*------------portfolio------------*/
#contact{
    padding: 80px 0;

    background-color: #302e35;
}
.contact-left{
    flex-basis: 35%;
}
.contact-right{
    flex-basis: 65%;
}

.contact-left p{
    margin-top: 30px;
}
.contact-left p {
    color: #d1d2d0;
    margin-right: 15;
    font-size: 25px;
}


.social-icons {
    padding: 10px;
}

.social-icons img:hover{
    transition: .5s;
    transform: translateY(-5px);
}

.btn.btn2{
    display: inline-block;
    background-color: #5f21f1;
    padding: 1em;
    border: 1px solid #000000;
    border-radius: 10px;
    text-decoration: none;
    color: #d1d2d0;
    font-weight: 500;
    font-size: 1.2em;
}
.btn.btn2:hover{
    background-color: #444444;
}

.contact-right form{
    width: 100%;
}

form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: #727272;
    padding: 15px;
    margin: 15px 0;
    color: #000000;
    font-size: 18px;
    border-radius: 6px;
    resize: none;
}
form input, form ::placeholder{
    color: #444444;
}

#msg{
    color: #61b752;
    margin-top: 10px;
    display: block;
}

/*------------game------------*/
#game{
    text-align: center;
    display: none;
    padding: 40px;
    margin-bottom: 200px;
}

#progressBar {
    width: 90%;
    margin: 20px auto;
    height: 22px;
    background-color: #444444;
    display: none; /* Add flex display */
    align-items: center; /* Center align the inner div vertically */
}
#progressBar div {
    width: 100%;
    height: 100%; /* Make the inner div take up full height */
    background-color: #5f21f1;
  }

#boardContainer img{
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

#startButton{
    background-color: #5f21f1; /* Green */
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}


/*------------small screen------------*/
@media only screen and(max-with:600px) {

}