:root {
    --smoky-black: hsl(0, 0%, 7%);
    --white-1: hsl(0, 0%, 100%);
    --transition-div: transform 0.8s ease;
}


body {
    background-color: var(--smoky-black);
    color: var(--white-1);
    font-family: monospace;
}

a {
    text-decoration-line: none;
    color: var(--white-1);
}

.heading {
    margin: auto;
    text-align: center;
    padding: 10px;
}

#typewriter {
    font-family: monospace;
    font-size: xx-large;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid;
    display: inline-block;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from { border-color: transparent; }
    to { border-color: black; }
}

.main-box {
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 100vh;
}

.container {
    flex: 1 1 calc(50% - 20px);
    background-position: center;
    margin-right: 10px;
    height: 300px;
    width: 200px;
    border-radius: 10px;
}

.container:hover { 
    transform: scale(1.2); 
    transition: var(--transition-div);
}

.container:not(:hover) {
    transform: scale(1);
    transition: var(--transition-div);
}

.image-container {
    width: 300px;
    height: 200px;
    border: 1px solid #ccc;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: block;
    animation: scaleUp 2s ease forwards;
}

@keyframes scaleUp {
    0% { transform: scale(0.5); }
    100% { transform: scale(1); }
}

.image-container img {
    padding: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    display: block;
    object-fit: cover;
}

@media (max-width: 600px) {
    body {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .heading {
        display: grid;
        grid-template-columns: 1fr;
        box-sizing: border-box;
        text-align: center;
        margin-bottom: 20px;
        overflow: hidden;
    }


    .main-box {
        display: grid;
        grid-template-columns: 1fr;
        box-sizing: border-box;
        height: 100%;
    }

    .container {
        justify-items: center;
        text-align: center;
        place-content: center;
        margin-bottom: 10px;
        margin-top: 10px;
    }

    .image-container {
        width: 100%;
    }
}


@media (min-width: 768px) and (max-width: 1024px) {
    body {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .heading {
        margin: auto;
        text-align: center;
        padding: 10px;
    }

    .main-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        box-sizing: border-box;
        margin-bottom: 20px;
        margin-top: 20px;
        height: 90vh;
    }

    .container {
        justify-items: center;
        text-align: center;
        overflow: hidden;
        place-content: center;
        margin-bottom: 10px;
        padding: 10px;
    }

    .image-container {
        width: 100%;
    }
}





  
  
    

