/* importing Meyer's CSS Reset */
@import url(https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css);

/* :root selector is the very base of your site, any elements that by default inherit anything, inherit from here, unless you make them inherit from elsewhere */
:root {
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    scrollbar-width: thin;
    scrollbar-color: white black;
}
.hide {display: none;}

/* the outermost element of your website, it holds the head and body */
html {
    background-color: black;
    padding: 1rem;
}

html:has(.siteList) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' %3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' x2='0' y1='0' y2='1' gradientTransform='rotate(88,0.5,0.5)'%3E%3Cstop offset='0' stop-color='%23FFB800'/%3E%3Cstop offset='1' stop-color='%23FF00E4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpattern id='b' width='24' height='24' patternUnits='userSpaceOnUse'%3E%3Ccircle fill='%23ffffff' cx='12' cy='12' r='12'/%3E%3C/pattern%3E%3Crect width='100%25' height='100%25' fill='url(%23a)'/%3E%3Crect width='100%25' height='100%25' fill='url(%23b)' fill-opacity='0.1'/%3E%3C/svg%3E");
    /* background-attachment: fixed; */
}

/* unorganised list (ul) with class "siteList" */
ul.siteList {
    padding: 1rem;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

/* list item (li) with class "site" */
li.site {
    width: calc(50% - 1rem);
    min-width: 400px;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}
/* anchor (a); A.K.A. link, with class "siteButton" */
a.siteButton {
    color: white;
    background-color: black;
    padding: .5rem;
    max-width: max-content;
    border-radius: 10px 10px 0 0;
    border-bottom: none;
    translate: 0 1.9px;
    font-weight: bold;
}
/* ::before / ::after creates a "fake" element before or after an existing html element */
a.siteButton::before {
    content: "Go to";
    margin-right: .5rem;
    display: inline-block;
    font-weight: normal;
}
/* iframe (iframe), which can contain anything that can be linked with a URL, so an image, gif, video, site, etc. */
iframe.siteWindow {
    display: block;
    padding: 5px;
    width: 100%;
    background-color: black;
    max-width: 1000px;
    aspect-ratio: 16/9;
    box-sizing: border-box;
    border-top-left-radius: 0;
}
/* selectors dont need to specify elements of classes, but if you ever want to add properties to only certain elements with classes, you should write it like i did above */
.siteButton, .siteWindow {
    border: 2px solid white;
    border-radius: 10px;
}