﻿html {
    margin: 0;
    padding: 0;
    overflow-y: scroll;
}

body {
    margin: 0;
    padding: 0;
    border: 0;
    background: #ccc;
    font-family: Verdana, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: #000;
    -webkit-appearance: none;
}

h2 {
    margin: 0.5em 0;
    font-size: 1.5em;
    font-weight: bolder;
    color: #0379c3;
}

#site {
    overflow: hidden;
    color: #000;
    max-width: 900px;
    margin: 0 auto;
    padding: 1em;
}

#logo {
    float: right;
}

.section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1em;
    align-items: center;
    justify-items: center;
    min-width: 300px;
    padding: 1em;
}

.image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    justify-self: center;
}

.text {
    padding: 1em 1.5em;
    background: #fff;
    border-radius: 1em;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
    direction: ltr;
    max-width: 60ch;
}

.section:nth-child(even) {
    direction: rtl;
}

@media (max-width: 600px) {
    #site {
        margin: 1em 0;
        font-size: 20px;
    }
    .section {
        grid-template-columns: 1fr;
        direction: ltr;
        padding: 1em 0.5em;
    }
    .image {
        padding: 1em;
    }
    .image img {
        max-width: 250px;
        margin: 0 auto;
    }
}