* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: Arial, sans-serif;
}

.container {
    position: relative;
    height: 100vh;
    overflow: hidden;
}


.background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.3s ease;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    font-size: 2rem;
    text-decoration: none;  /* Removes underline from links */
    opacity: 1;
}

.left-section {
    background-image: url('gfx.jpeg');
    background-position: left;
    background-repeat: no-repeat;
    background-size: 60% auto;
    clip-path: polygon(0% 0%, 60% 0%, 40% 100%, 0% 100%);
    z-index: 2;
}

.right-section {
    background-image: url('code.jpeg');
    background-position: right;
    background-repeat: no-repeat;
    background-size: 60% auto;
    clip-path: polygon(60% 0%, 40% 100%, 100% 100%, 100% 0%);
    z-index: 1;
}

.background:hover {
    opacity: 0.8;
}

.hover-text {
    display: none;
    font-size: 2.5rem;
    font-weight: bold;
}

/* Show text on hover */
.left-section:hover .hover-text,
.right-section:hover .hover-text {
    display: block;
}
