@import url('https://fonts.googleapis.com/css2?family=Lancelot&display=swap');

#menu-button{
    display: none;
}

@media all and (max-width: 800px){
    header{height: 44px;}
    div{display: block;}
    main{width: 100%}
    aside{width: 100%;}
    #menu-button{
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        height: 44px;
        text-align: center;
        line-height: 44px;
        color: white;
        cursor: pointer;
    }
    #main-nav{height: auto;
    display: none;
    }
    #main-nav li{display: block;}
    #main-nav.open{
        display: block;
    }

}

body{font-family: 'Times New Roman', Times, serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
}
 
header{
    background-color: darkred;
    height: 60px;
    flex-shrink: 0;
}

header h1{
    font-family: 'Lancelot',  serif;
    font-size: 48px;
    color: antiquewhite;
}

nav{
    background-color: dimgrey;
    height: 30px;
    display: flex;
    align-items: center;
}
 
nav li{
    display: inline-block;
    list-style: none;
    height: 30px;
    vertical-align: middle;
    
}

nav li a{
    display: inline-block;
    line-height: 30px;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

nav li a:hover {
    color: firebrick;
    transform: scale(1.1);
}

.burlywood {color: burlywood;}

a{
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 10px 0 10px;
    color: honeydew;
}

div #content{
    display: flex;
    flex: auto;
    flex-direction: row;
}

main{
    width: 70%;
    box-sizing: border-box;
    padding: 2% 7%;
    background-color: black;
    color: whitesmoke;
}

#about-me {
    animation: pop 1s 3;
}

@keyframes pop {
    0% {transform: scale(1);}
    50% {transform: scale(1.1);}
    100% {transform: scale(1);}
}

aside{
    width: 30%;
    box-sizing: border-box;
    padding: 20px;
    background-color: black;
}

#my-hobbies {
    color: beige;
    animation: sparkle 1.5s infinite;
}

@keyframes sparkle {
    0%, 100% {text-shadow: 0 0 2px gold, 0 0 5px gold; }
    50% {text-shadow: 0 0 5px white, 0 0 10px gold; }
}

.container {
    display: flex;
    width: 100%;
}

#card-game {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.card {
    width: 80px;
    height: 120px;
    background-color: darkblue;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: whitesmoke;
    user-select: none;
    border-radius: 5px;
}

#play-again {
    margin-top: 15px;
    padding: 5px 10px;
    cursor: pointer;
}

footer{
    background-color: darkred;
    color: antiquewhite;
    font-size: 85%;
    flex-shrink: 0;
    padding: 1%;
}

h1{
    color: blanchedalmond;
    font-size: 140%;
    margin-bottom: 20px;
}

p{
    margin-bottom: 12px;
    text-indent: 5ch;
}

#emoji{
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2000%;
    line-height: 1.1;
}

#attackButton{
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translateX(-50%);
    cursor: grabbing;
    color: red;
    background-color: navy;
}

#zomSalvation{
    background-color: black;
    animation: backgroundCycle 8s infinite;

}

@keyframes backgroundCycle {
    0%   { background-color: #0f0f0f; }
    10%  { background-color: #141414; }
    20%  { background-color: #191919; }
    30%  { background-color: #1e1e1e; }
    40%  { background-color: #232323; }
    50%  { background-color: #282828; }
    60%  { background-color: #2d2d2d; }
    70%  { background-color: #282828; }
    80%  { background-color: #232323; }
    90%  { background-color: #1e1e1e; }
    100% { background-color: #0f0f0f; }
}

#zomDisplayHp{
    color: darkgreen;
    position: absolute;
    top: 0;
    left: 0;
}

#starlight{
    animation: flashing 2s infinite;
}

@keyframes flashing {
    0%      {background-color: black;}
    5%      {background-color: white;}
    10%     {background-color: grey;}
    15%     {background-color: black;}
    20%     {background-color: black;}
    25%     {background-color: black;}
    30%     {background-color: black;}
    35%     {background-color: black;}
    40%     {background-color: black;}
    45%     {background-color: gray;}
    50%     {background-color: darkgray;}
    55%     {background-color: black;}
    60%     {background-color: black;}
    65%     {background-color: black;}
    70%     {background-color: white;}
    75%     {background-color: black;}
    80%     {background-color: black;}
    85%     {background-color: black;}
    90%     {background-color: black;}
    95%     {background-color: white;}
    100%    {background-color: black;}
}

#lightening {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%) scale(0.5 , 2);;
    font-size: 2000%;
    line-height: 1.1;
    display:  inline-block;
    animation-name: shock;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

@keyframes shock{
    0%      {opacity: 0;}
    5%      {opacity: 1;}
    10%     {opacity: 0;}
    15%     {opacity: 0;}
    20%     {opacity: 0;}
    25%     {opacity: 0;}
    30%     {opacity: 0;}
    35%     {opacity: 0;}
    40%     {opacity: 0;}
    45%     {opacity: 1;}
    50%     {opacity: 0;}
    55%     {opacity: 0;}
    60%     {opacity: 0;}
    65%     {opacity: 0;}
    70%     {opacity: 1;}
    75%     {opacity: 0;}
    80%     {opacity: 0;}
    85%     {opacity: 0;}
    90%     {opacity: 0;}
    95%     {opacity: 1;}
    100%    {opacity: 0;}

}

input[type=button]{
    border:2px solid gray;
    background-color: #333333;
    border-radius: 4px;
    padding:10px;
    color:gray;
    font-weight: bold;
}

#image-gallery{
    width:380px;
}

#image-gallery #mainImg{
    width:100%;
    border: 2px solid #333333;
}