/* Start of my css file! */
/*************************/

/* universal selector */
* {
    box-sizing: border-box;
}

input[type="text"] {
    border: 2px solid teal;
    padding: 5px;
}

ul > li {
    list-style-type: square;
}

h2 ~ p {
    font-size: 1.1rem;
    color: darkblue;
}

h3 + p {
    margin-top: 0;
    font-style: italic;
}

section.text-style {
    background-color: yellow;
}

footer:has(audio) {
    border: 2px solid orange;
    padding: 10px;
}

/* Edit the body */
body {
    position: static;
    background-color: lightcyan;
}

/* Using CSS Variables with Fallback */
:root {
    --primary-color: #db34c2; 
   --fallback-color: #c5c844; 
}

/* All h2 headers change color */
h2 {
    color: rgb(57, 32, 140);
}  

/* h3 edits */
h3 {
    color: hsl(9, 90%, 64%); 
}

/* h4 edits */
h4 {
    color: var(--primary-color, var(--fallback-color));
}

/* Color button */
button {
    color: #1c831c; 
    background-color: #3131bc;
    font-size: 2rem;
    max-width: 2rem;
    max-height: 2rem;
}
.btn:active {
    background-color: #000000; 
    transform: scale(0.95);
}

/* Change up the header */
#title {
    height: 20vw;
    width: 100vw;
}

/* margins */
.container {
    position: relative;
    margin-top: 20px;
    margin-right: 15px;
    margin-bottom: 20px;
    margin-left: 10px;
    padding-top: 10px;
    padding-right: 20px;
    padding-bottom: 15px;
    padding-left: 5px;
}

.container2 {
    margin: 20px 15px 50px auto;
    padding: 10px 20px 15px 5px;
}

.container2 p {
    color: darkgoldenrod;
}

/* borders! */
.border-box {
    border-style: dashed;     
    border-color: #ff69b4;       
    border-width: 4px;          
    border-radius: 10px;          
    padding: 20px;
    margin: 30px;
    background-color: #ffe4e1;
}

/* text styles */
.text-style {
    color: darkblue;
    text-decoration: underline;
    text-align: center;
}

/* display */
.none {
    display: none;
}

.block {
    display: block;
    background-color: lightblue;
    padding: 10px;
    margin-bottom: 10px;
}
  
.inline {
    display: inline;
    background-color: rgb(8, 68, 8);
    padding: 5px;
}

/* pseudoclass */
.emlink:hover {
    color: #ff6347; 
    text-decoration: underline;
}

/* flex */
.flex-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    color: red;
}

/* container */
.grid-container {
    display: grid;
    justify-items: center;
    grid-template-rows: auto;
    border-radius: 5px;
}

/* responsiveness on other devices */
/* Tablet (max-width: 768px) */
@media screen and (max-width: 768px) {
    body {
        font-size: 15px;
        padding: 10px;
    }

    h2, h3, h4 {
        text-align: center;
    }

    .container, .container2, .border-box, .text-style {
        margin: 10px;
        padding: 10px;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .flex-container {
        flex-direction: column;
        align-items: stretch;
    }

    button {
        font-size: 1.5rem;
        max-width: 100%;
    }

    #title {
        height: auto;
        font-size: 1.8rem;
        text-align: center;
    }
}

/* Phone (max-width: 480px) */
@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1, h2, h3, h4 {
        font-size: 1.2rem;
    }

    .inline {
        display: block;
        padding: 10px;
        margin: 5px 0;
    }

    .text-style {
        font-size: 1rem;
    }

    .border-box {
        padding: 10px;
        margin: 15px;
    }

    .flex-container {
        gap: 10px;
    }
}

/* change font of flappy title */
.noto-sans-mandaic {
    font-family: "Noto Sans Mandaic", sans-serif;
}
  
.playwrite-au-sa {
    font-family: "Playwrite AU SA", sans-serif;
}
  

