/* Author: Guilherme Modelli
   Course: ITWP 1050
   Assignment: homework5
*/

/*Sets font color to all elements in the page*/
/*The selector applies the teal text color to elements*/
* {
    color: teal;	
}

/*Load font-face downloaded*/
@font-face {
    font-family: 'Doto';
    src: url('../homework5/test.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 900; 
    font-variation-settings: "ROND" 0, "wght" 400; 
}

/*Styling for the body with a green gradient and red*/
body {
    margin: 25px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    text-align: center;
    background: 
        linear-gradient(to bottom, rgba(144, 238, 144, 0.7), rgba(0, 128, 0, 0.3)), 
        linear-gradient(to bottom, rgba(0, 182, 193, 0.9), rgba(239, 0, 0, 0.9)); 
    background-size: cover;  
    background-attachment: fixed; 
    background-position: center;
    line-height: 1.6;
}

/*Styling for the Header with the added font family*/
/*This class controls the styling for the header or h1*/
h1 {
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Doto', 'Arial', sans-serif;  
    letter-spacing: 7px;
    font-variant: small-caps;  
    white-space: nowrap;      
    text-shadow: 2px 2px 4px rgba(255, 255, 0, 0.8); 
}

/*Styling for paragraphs with new line height*/
p {
    font-size: 1rem;
    line-height: 1.5;  
    margin: 15px 0;
}

/*Styling for images for both first and second image*/
img {
    border: 1px solid black;
    border-radius: 20px;
    margin: 15px;
    box-shadow: 0 8px 16px rgba(255, 255, 0, 0.7);  
    max-width: 60%;  
    height: auto;     
}

.img2 {
    border: 1px solid black;
    border-radius: 10px;
    margin: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 255, 0.6);  
    width: 600px;   
    max-width: 40%;  
    height: auto;     
}

/*Styling for the footer*/
footer {
    margin-top: 50px;
    margin-bottom: 50px;
    font-size: 0.8rem;
    color: #333;
}

/*External link pseudo-element styling*/
a.external::after {
    content: " (external)";
    color: darkorange;
}

/*Styling for the items in the responsive section*/
.responsive-layout {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 20px 0;
}

.responsive-layout .item {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    color: #333;
    flex: 1 1 18%;
    margin: 10px 0;
    border-radius: 8px;
}

.responsive-layout .item a {
    text-decoration: none; 
    color: #333;
    font-weight: bold;
    display: block;
    padding: 10px;
    background-color: rgba(0, 182, 193, 0.9); 
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

.responsive-layout .item a:hover {
    background-color: #0098c6; 
    color: white; 
}

/*Media changes to smaller screens (max-width: 800px)*/
@media screen and (max-width: 800px) {
    h1 {
        font-size: 4rem;  
    }

    body {
        font-size: 1.1rem;  
    }
}

/*Media changes to even smaller screens (max-width: 600px)*/
@media screen and (max-width: 600px) {
    h1 {
        font-size: 3rem;  
    }

    body {
        background: linear-gradient(to bottom, rgba(255, 0, 0, 0.7), rgba(0, 128, 0, 0.3)),
                    linear-gradient(to bottom, rgba(255, 182, 193, 0.9), rgba(239, 0, 0, 0.9)); 
        font-size: 1rem;  
    }
}
