/* in this rewrite, we're starting with styles for the average smartphone screen */

/* in any case, we gotta import Rubik, the main font of the website, from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900;1,600&display=swap');

/* general styling */
html {
    background-color: rgb(135,86,255);
    /* background-image: radial-gradient(circle, rgba(135,86,255,1) 0%, rgba(128,9,222,1) 47%, rgba(22,0,65,1) 95%);*/
    background-image: url('/media/zigzag.bmp');
    /* background-repeat: no-repeat; */
    /* background-size: cover; */
    background-attachment: fixed;
    background-position: center;
    color: beige;
    font-family: 'Rubik', Arial, Helvetica, sans-serif;
    text-shadow: 2px 2px 0 #000000;
}


/* setting up a grid container in main */

main {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto auto auto;
}
main>.main-content {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
    background-color: #0D3C6A;
    background-color: rgba(71, 57, 155, 0.85);
    padding: 1rem 2rem;
    margin-bottom: 1rem;

    border-style: solid;
    border-color: rgba(79, 65, 175, 0.65);
    border-width: 2px;
    border-radius: 8px;

    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
}
main>nav {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    background-color: rgba(63, 31, 136, 0.85);
    overflow: hidden;
    padding: 0.5rem;
    margin-bottom: 1rem;
    height: fit-content;

    position: -webkit-sticky;
    position: sticky;
    top: 2px;

    border-style: solid;
    border-color: rgba(76, 38, 166, 0.65);
    border-width: 2px;
    border-radius: 8px;

    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
}

/* links */

a {
    text-decoration: none;
}
a:hover {
    text-decoration: underline wavy;
}
a:link {
    color: #7AFF20;
}
a:visited {
    color: #71ED1E;
}

/* pre-formatted text - "code" tag */

code {
    font-size: 10pt;
    background-color: rgba(5, 5, 5, 0.5);
    border-radius: 2px;
    padding: 1px;
    text-shadow: none;
}

/* navigation area */

nav h2 {
    text-align: center;
}
nav a {
    display: block;
    float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 4px 4px;
    font-size: 15px;
    font-weight: 700;
}

/* a fix for image sizes across the site */

img {
    max-width: 100%;
    height: auto;
}
img.home-icon {
    width: 100px;
}
img.man-logo {
    width: 200px;
}

/* those buttons on the home page that represent where I am */

#places-buttons {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
#places-buttons>li {
    display: inline;
}
button {
    width: 63px;
    height: 63px;
    font-size: 35pt;
    boder-style: dashed;
    border-width: 1px;
    border-radius: 4px;
    color: #FFFFFF;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.25);
}

.fedi-button {
    background-color: #5FBFE8;
    border-color: #68D4FF;
}
.fedi-button:hover {
    background-color: #68D4FF;
    border-color: #1CE8FF;
}
.fedi-button:active {
    background-color: #52A8CA;
    border-color: #56B0D4;
}

.yt-button {
    background-color: #F6293D;
    border-color: #B11E2C;
}
.yt-button:hover {
    background-color: #EB0392;
    border-color: #FF039E;
}
.yt-button:active {
    background-color: #D0005E;
    border-color: #DC0063;
}

.steam-button {
    background-color: #9419F4;
    border-color: #761ABD;
}
.steam-button:hover {
    background-color: #A431FD;
    border-color: #7A2EB3;
}
.steam-button:active {
    background-color: #7504CC;
    border-color: #4B0384;
}

/* footer */

footer {
    display: block;
    background-color: rgba(87, 43, 189, 0.85);
    padding: 2px 2% 2px 2%;

    border-style: solid;
    border-color: rgba(96, 47, 208, 0.65);
    border-width: 2px;
    border-radius: 8px;
    text-align: center;

    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
}

footer #footer-blurb {
    font-size: 11pt;
}


/* webring navigation place */

.webrings {
    display: inline-grid;
    grid-template-columns: auto;
    grid-template-rows: auto auto;

    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}

.fediring {
    grid-row: 1 / 2;
    grid-column: 1 / 2;

    background-color: rgba(86, 17, 116, 0.5);

    border-top-style: solid;
    border-left-style: solid;
    border-right-style: solid;
    border-color: rgba(86, 17, 116, 0.5);
    border-width: 2px;
    border-radius: 4px 4px 0 0;

    margin: auto;
    text-align: center;
    width: 15rem;
    padding: 15px;
}

.no-ai-webring {
    grid-row: 2 / 3;
    grid-column: 1 / 2;

    background-color: rgba(138, 138, 56, 0.5);

    border-left-style: solid;
    border-bottom-style: solid;
    border-right-style: solid;
    border-color: rgba(88, 88, 36, 0.5);
    border-width: 2px;
    border-radius: 0 0 4px 4px;

    margin: auto;
    text-align: center;
    width: 15rem;
    padding: 15px;
}

/* style information for screens wider than 640 pixels */

@media screen and (min-width: 640px) {
    img {
        max-width: 250px;
        height: auto;
    }
}

@media screen and (min-width: 1000px) {
    html {
        padding: 0;
    }

    /* side navigation! yay! */
    main {
        display: grid;
        grid-template-columns: 20% 80%;
        grid-template-rows: auto;
    }
    main>nav {
        grid-row: 1 / 3;
        grid-column: 1 / 2;
        padding: 1rem;
        margin: 3rem auto auto auto;
        height: fit-content;
        width: fit-content;
        top: 10px;
    }
    main>.main-content {
        grid-row: 1 / 2;
        grid-column: 2 / 3;
        padding: 1rem 4rem;
        margin-right: 2.5rem;
    }

    nav a {
        float: none;
    }

    img {
        max-width: 400px;
        height: auto;
    }

    footer {
        grid-row: 2 / 3;
        grid-column: 2 / 3;
        margin-right: 2.5rem;
    }

    .webrings {
        display: inline-grid;
        grid-template-rows: auto auto;
        grid-template-columns: auto;
    }
    .fediring {
        grid-row: 1 / 2;
        grid-column: 1 / 2;

        border-top-style: solid;
        border-left-style: solid;
        border-bottom-style: solid;
        border-right-style: none;
        border-radius: 4px 0 0 4px;
    }
    .no-ai-webring {
        grid-row: 1 / 2;
        grid-column: 2 / 3;

        border-top-style: solid;
        border-left-style: none;
        border-bottom-style: solid;
        border-right-style: solid;
        border-radius: 0 4px 4px 0;
    }
}

@media screen and (min-width: 1501px) {
    html {
        padding: 0 7%;
    }
}
