/* For main apperance across all pages (desktop)*/
body, p, h1, h2, h3, h4, h5, h6, table{
    font-family:'Times New Roman', Times, serif;
    line-height: 1.5;
    color-scheme: light dark;
    letter-spacing: normal;
    font-style: normal;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    background-color: #242424;
    color: white;
    text-align: center;
    justify-content: center;
}

h1{
    font-size: 7vw;
}

h2{
    font-size: 4vw;
}


/* period is for classes (can be used multiple times) */
.video{
    width: 560px;
    height: 315px;
}

/* # is for ID (unique, should only be used once per ID) */
#silksong{
    border-style: dashed;
    font-size: 18px;
}

table, th, td, tr{
    border: 2px solid;
    border-collapse: collapse;
    border-color: black;
    border-top-color: blue;
    border-bottom-color: blue;
    border-left-color: black;
    border-right-color:black;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: auto;
    margin-right: auto;
    padding-top: 2px;
    padding-bottom: 2px;
}

div.container, main.container{
    text-align: center;
}

ol.OrderedList, ul.UnorderedList{
    display: inline-block;
    text-align: left;
}


ul{
    list-style-type: none;
    display: flex;
    justify-content: center;
}
ul li{
    display: list-item;
    background: black;
    padding: 5px 10px;
    color:white;
    margin: 0 3px;
}

ul.footer li{
    background: none;
    float: left;
    overflow: hidden;
}


/* For header/nav redirects */
.styled-form {
    text-align: center;
    margin: 15px;
}

.styled-button {
    background-color: #0084ff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
}
.styled-button:hover {
    background-color: #004da0;
}

nav, header{
    justify-content: center;
}


/* for footer redirects */
a:link, a:visited{
    background-color: #36f475;
    color: white;
    padding: 14px 25px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-right: 5px;
}

a:hover, a:active {
    background-color: limegreen;
}

/* For responsiveness */
/* For mobile */
@media only screen and (max-width: 600px) {
    body, p, h1, h2, h3, h4, h5, h6, table {
      background-color: lightblue;
      color: black;
      line-height: 1.2;
      /* display:grid; */
    }
    h1{
        font-weight: 700;
        font-size: 7vw;
    }
    h2{
        font-weight: 700;
        font-size: 4vw;
    }
    .games{
        display:grid;
    }
}

img, iframe { /*Makes images and videos appear proportional to the device's screen size*/
    max-width: 100vw; /* Sets maximum width to 100% of the viewport width */
    height: auto;     /* Maintains the aspect ratio of the image */
}

/* animation */
#donkeykong{
    animation: spin 7s linear infinite;
}
@keyframes spin{
    from {
        transform:rotate(0deg);
    }
    to {
        transform:rotate(360deg);
    }
}

#corgi img{
    transition: transform 0.8s ease;
}

#corgi img:hover{
    transform: rotate(360deg);
}
