body {
    
    margin: 0;
    padding: 0;
    
}

.main {
    font-family: Arial, sans-serif;
    background-image: url('images/Wood-background.jpg');
    background-size: cover;
    border :5px solid black;
    
    background-attachment: fixed;
    color: #333;
    margin: auto;
    padding: 0;
    
    display: flex;
    flex-direction: column;
    width: 1520px; 
    height:715px;
    position: relative;

}

header {
    text-align: center;
    /* padding: 20px; */
    background: rgba(245, 158, 77, 0.8);
    height:10%;
    font-size: larger;
    
}

.container {
    width: 90%;
    height: 50%;
    /* margin: 5% auto 0%; */
    margin-top: 5% ;
    margin-left: auto;
    margin-right:auto ;
    padding: 20px;
    background: rgba(206, 75, 14, 0.9);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-image: url('images/wood.jpg');
    background-size: cover;
    
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #0e0d0d;
}

.logic-gates {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.logic-gate {
    display: block;
    text-align: center;
    width: 12%;
    margin: 1.2%;
    text-decoration: none;
    color: #333;
    background: #ee9b3d;
    padding: 1.3%;
    border-radius: 2%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.logic-gate img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.logic-gate p {
    margin: 10px 0 0;
    font-size: 16px;
    font-weight: bold;
}

.logic-gate:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.footer {
    background-color:#000000;
    color: white;
    text-align: center;
    padding: 0.5%;
    box-shadow: 0 -4px 8px rgba(239, 237, 234, 0.1);
}

/* button {
    display: block;
    margin: 30px auto;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007BFF;
    color: #FFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

button:active {
    background-color: #004080;
    transform: scale(0.95);
} */


.position-absolute {
    position: absolute !important;
}