/*
Credit Acknowledgements:

This CSS code benefited significantly from the valuable content available in
the Code Institute's CSS Essentials lessons.

W3schools.com was additionally referenced.
*/

/* Body styles */
body {
    font-family: Arial, sans-serif;
    text-align: center;
}

/* Input controls styles */
#input-controls {
    border: 1px solid #333333;
    margin: 10px;
    padding: 10px;
    text-align: center;
    user-select: none; /* Disables user selection for better control */
}

/* Adjustable element styles */
#adjustableElement {
    background: #f0f0f0;
    border: 2px solid #333333;
    border-radius: 10px;
    box-shadow: 2px 2px 5px #888888;
    color: #333333;
    cursor: pointer;
    font-size: 16px;
    height: 100px;
    margin: 20px;
    outline: none;
    overflow: hidden;
    padding: 10px;
    text-align: center;
    text-shadow: 1px 1px 2px #888888;
    transition: all 0.3s ease;
    width: 200px;
}

/* CSS code styles */
#cssCode {
    border: 1px solid #333333;
    margin: 10px;
    padding: 10px;
    text-align: center;
    user-select: text; /* Allow text selection for the #cssCode element */
}

/* Media Queries for Responsive Font Sizes */

/* Set font size to 12px when viewport width is less than 320px */
@media (max-width: 319px) {
    body {
        font-size: 12px;
    }
}

/* Set font size to 14px when viewport width is between 320px and 480px */
@media (min-width: 320px) and (max-width: 480px) {
    body {
        font-size: 14px;
    }
}

/* Set font size to 16px when viewport width is between 481px and 768px */
@media (min-width: 481px) and (max-width: 768px) {
    body {
        font-size: 16px;
    }
}

/* Set font size to 18px when viewport width is between 769px and 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        font-size: 18px;
    }
}

/* Set font size to 20px when viewport width is between 1025px and 1200px */
@media (min-width: 1025px) and (max-width: 1200px) {
    body {
        font-size: 20px;
    }
}

/* Set font size to 22px when viewport width is 1201px or more */
@media (min-width: 1201px) {
    body {
        font-size: 22px;
    }
}