@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: content-box  ;
    font-family: 'Poppins',sans-serif;
}
body, html {
    height: 100%;
}
.logo{
    width: 4%;
    cursor: pointer;
    margin-left: 45px;
}
.navbar{
    width: 100%;
    height: 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar ul{
    display: flex;
    list-style: none;
    margin-right: 15px;
}
.navbar ul li{
    padding: 0px 20px 0px 20px;
    list-style: none;
    display: inline-block;
    margin: 5px;
}
.navbar ul li a{
    text-decoration: none;
    color: white;
    text-transform: uppercase;
    padding: 10px 30px 10px  30px;
    background-color: rgba(139, 137, 137, 0.75);
    border-radius: 20px;
}
.navbar ul li a:hover{
    background-color: rgba(237,27,36,255);
}
.eventsheader{
    width: 100%;
    min-height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.762),rgba(0, 0, 0, 0.312)),url('images/mechanicalbgimg4.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position:center
}
.machinistheader{
    width: 100%;
    min-height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.762),rgba(0, 0, 0, 0.312)),url('images/machinistbg.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position:center
}
.mechassheader{
    width: 100%;
    min-height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.762),rgba(0, 0, 0, 0.312)),url('images/mechpartassembl.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position:center
}
.mechquizheader{
    width: 100%;
    min-height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.762),rgba(0, 0, 0, 0.312)),url('images/mechquizbg.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position:center
}
.ideaexpoheader{
    width: 100%;
    min-height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.762),rgba(0, 0, 0, 0.312)),url('images/ideaexpobg.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position:center
}
.ppheader{
    width: 100%;
    min-height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.762),rgba(0, 0, 0, 0.312)),url('images/ppbg.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position:center
}
.events {
    font-size: 25px;
    text-align: center;
    color: white;
    padding: 40px 0;
}
.events ul{
    list-style-type: none;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centering the buttons horizontally */
    padding: 0;
}
.events ul li{
    display: block;
    margin: 40px auto;
    }
.events ul li a{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding: 0 15px; /* Horizontal padding */
    width: 320px;
    height: 100px;
    border-radius: 10px;
    color: white;
    background-color: rgba(143, 141, 141, 0.725);
    font-size: 25px;
    white-space: nowrap; /* Prevents text from wrapping to a new line */
    overflow: hidden;
    text-overflow: ellipsis;
}
.events ul li a:hover{
    background-color: rgba(247, 170, 76, 0.83)
}
.eachevent{
    font-size: 25px;
    text-align: left;
    color: white;
    padding: 30px;
}
.eachevent h2{
    font-size: 50px;
    padding: 30px;
    text-align: center;
}
@media (max-width: 952px){
    .logo{
        width: 50px;
        margin-left: 10px;
    }
    nav ul li a{
        font-size: 16px;
        width: 100%;
        padding: 15px 0;
    }
    .menu-icon {
        display: block;
        font-size: 30px;
        margin-right: 10px;
        cursor: pointer;
        color: white;
        z-index: 1000; 
    }
    .navbar ul{
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 500px;
        background-color: rgba(0,0,0,0.85);
    }
    .navbar ul li{
        display: block;
        margin: 10px 0;
        text-align: center;
        
    }
    .navbar ul.active {
        display:flex;
        margin-top: 350px;
        position:fixed;
    }
    .navbar ul li {
        margin: 10px 0;
        text-align: center;
        margin: 20px;
    }
    .eachevent{
        font-size: 15px;
    }
    .eachevent h2{
        font-size: 35px;
    }
}