body {
    font-family: 'Times New Roman', serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f4f4f4;
}


.main-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}

.phone-wrapper {
    text-align: center;
}

.phone-wrapper h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.phone-wrapper h2 code {
    font-family: monospace;
    background-color: #e0e0e0;
    padding: 2px 6px;
    border-radius: 4px;
}


.phone-body {
    width: 220px;
    height: 420px;
    background-color: #dde2d4;
    border: 3px solid black;
    border-radius: 35px;
    position: relative;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.2);
    overflow: hidden;
}

.screen {
    background-color: white;
    border: 3px solid black;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.time {
    font-family: Arial, sans-serif;
    font-size: 48px;
    font-weight: bold;
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
}

.key {
    background-color: #3b3a4a;
    border-radius: 50%;
    border: 2px solid black;
}


.phone-position .screen {
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    height: 150px;
}

.phone-position .keypad {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    height: 180px;
}


.phone-transform .screen {
    height: 150px;
    width: 170px;
    transform: translate(12%, 15%);
    margin-bottom: -155px;
}

.phone-transform .keypad {
    height: 180px;
    width: 170px;
    transform: translate(15%, 120%);
}