html, body {
    min-height: 100%;
    min-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

html {
    background-image: repeating-linear-gradient(45deg, #C5B4E3 0, #C5B4E3 2px, transparent 0, transparent 50%);
    background-color: #d4d4f7;
    background-size: 54px 54px;
}

h1, h2 {
    text-align: center;
}

hr {
    width: 100%;
    border-color: purple;
}

small {
    color: grey;
    text-align: center;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sidebar {
    width: 15%;
    height: 500px;
    margin: 20px;
    background-color: plum;
}

.main-body {
    width: 50%;
    min-width: 200px;
    max-width: 600px;
    background-color: lavender;
    border: 5px purple dashed;
    border-radius: 50px;
    margin: 20px;
    padding: 20px;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-family: Arial, Verdana, sans-serif;
}

.links {
    width: 100%;
    padding-top: 15px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Tiny devices (smallest phones) */
@media only screen and (min-width: 300px) {
    .main-body {
        width: 100%;
    }
    .sidebar {
        display: none;
    }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .main-body {
        width: 90%;
    }
    .sidebar {
        display: none;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    .main-body {
        width: 80%;
    }
    .sidebar {
        display: none;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .main-body {
        width: 60%;
    }
    .sidebar {
        display: block;
        width: 25%;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .main-body {
        width: 50%;
    }
    .sidebar {
        display: block;
        width: 25%;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .main-body {
        width: 50%;
    }
    .sidebar {
        display: block;
        width: 25%;
    }
}

/* Landscape screens */
@media only screen and (orientation: landscape) {
    .sidebar {
      display: block;
    }
}

/* Portrait screens */
@media only screen and (orientation: portrait) {
    .sidebar {
        display: none;
    }
}