
:root {
    --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --bgColor: rgb(0,0,0);
    --accentColor: hsl(0, 100%, 81%);
    --accentSecondaryColor: hsl(178, 33%, 53%);
    --largeDeviceBg: url("https://media1.giphy.com/media/3oFzmokTcNdZiEq0Ao/source.gif");
    --smallDeviceBg: url("https://media1.giphy.com/media/3oFzmokTcNdZiEq0Ao/source.gif");
    --grad: linear-gradient(rgb(10, 10, 10), rgb(53, 41, 46), rgb(162, 118, 131), rgb(205, 155, 164), rgb(250, 195, 197));
}
.center{
    text-align: center;
    font-weight: 600;
    font-family: var(--font);
}
.shadow {
   -moz-box-shadow:    inset 0 0 10px #000000;
   -webkit-box-shadow: inset 0 0 10px #000000;
   box-shadow:         inset 0 0 10px #000000;
}
.links {
    max-width: 675px;
    width: auto;
    display: block;
    margin: auto;
}
body {
    color: var(--bgColor);
    background-color: royalblue;
    background-image: var(--smallDeviceBg);
    background-repeat:no-repeat;
    background-attachment: fixed;
    background-size: cover;

} 

@media (max-width: 768px) {
    body {
        background: var(--smallDeviceBg);
        background-size: cover;
        background-position: center;
    
    }
}


.container{
    margin: auto;
    padding: 15px;
    display: block;
}
.userName {
    display: grid;
    text-decoration: none;
    color: var(--bgColor);
    margin: auto;
    text-align: center;
    font-family: var(--font);
    font-size: 20px;
    font-weight: 800;
}
.userPhoto {
    margin: auto;
    background-color: royalblue;
    width: 110px;
    height:110px;
    display: grid;
    border-radius: 50%; 
    outline-color: black;
    border: black;
    margin: auto;
    
}
@media only screen and (min-width:600px) {
    body {
        background-color: royalblue;
        background-image: var(--largeDeviceBg);
        background-size: cover;
        box-sizing: border-box;
        box-sizing: 100%;
    } 
    .links {
        max-width: 675px;
        width: auto;
        display: block;
        margin: auto;
    }
}
.link {
    display: grid;
    text-decoration: none;
    font-size: 1.7em;
    font-family: var(--font);
    font-weight: 400;
    margin: auto;
    color: var(--bgColor);
    background-color: var(--accentColor);
    margin-bottom: 20px;
    transition: all .25s cubic-bezier(.08, .59, .29, .99);
    box-sizing: border-box;
    border-radius: 25px;
    padding: 10px;
    grid-template-columns: auto auto;
    grid-gap: 15px;
    border: solid var(--grad) 20px;
    justify-items: stretch;
    align-items: center;
    justify-content: start;
}

.link_low {
    display: grid;
    text-decoration: none;
    font-size: 0.8em;
    font-family: var(--font);
    margin: auto;
    color: var(--bgColor);
    background-color: var(--accentSecondaryColor);
    margin-bottom: 20px;
    transition: all .25s cubic-bezier(.08, .59, .29, .99);
    box-sizing: border-box;
    border-radius: 25px;
    padding: 15px;
    grid-template-columns: auto auto;
    grid-gap: 15px;
    border: solid var(--grad) 20px;

}

.link > img{
    font-size: 25px;
}

.link:hover {
    background-color: var(--bgColor);
    color: var(--accentColor);
    
}

#clickCounts {
    margin: 20px auto;
    padding: 15px;
    max-width: 400px;
    background-color: #f9f9f9f3;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
	background-size: 400% 400%;
	animation: gradient 15s ease infinite;
  }
  
  #clickCounts h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.2rem;
    color: #333;
  }
  
  .click-count-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
  }
  
  .click-count-item:hover {
    background-color: #f1f1f1;
  }
  
  .click-count-item span {
    font-weight: bold;
    color: #0073e6;
  }
  
  .click-count-item p {
    margin: 0;
    font-size: 0.2rem;
    color: #666;
  }
  

  /*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/

/* Body
--------------------------------------------- */

.game-boy {
    background-color: #FFBE0B;
    border-radius: 8px 8px 0 0;
    height: 480px;
    margin-top: 50px;
    padding: 20px 18px 0;
    position: relative;
    width: 270px;
}

.game-boy:before {
    background-color: #ff0000;
    border-radius: 55%;
    content: "";
    height: 8px;
    left: 28px;
    position: absolute;
    top: 92px;
    width: 8px;
    z-index: 1;
}

.game-boy:after {
    background-color: #FFBE0B;
    border-radius: 55%;
    bottom: -30px;
    content: "";
    height: 60px;
    left: 0;
    position: absolute;
    width: 100%;
    z-index: -1;
}

.game-boy-screen {
    align-items: flex-end;
    background-color: #283136;
    border-radius: 8px 8px 0 0;
    display: flex;
    height: 222px;
    justify-content: center;
    position: relative;
    z-index: 0;
}

.game-boy-screen:before {
    background-color: #111516;
    content: "";
    height: 160px;
    left: 46px;
    position: absolute;
    top: 26px;
    width: 180px;
}

.game-boy-screen:after {
    background-color: #283136;
    border-radius: 55%;
    bottom: -30px;
    content: "";
    height: 60px;
    left: 0;
    position: absolute;
    width: 100%;
    z-index: -1;
}

.speaker {
    bottom: 0;
    height: 70px;
    position: absolute;
    right: 16px;
    width: 70px;
}

.speaker:before {
    background-color: #FFBE0B;
    border-radius: 50%;
    box-shadow: 0px 0px #EFAF00, 0px 10px #9F7500, 0px 20px #EFAF00, 0px 30px #9F7500, 0px 40px #EFAF00, 0px 50px #9F7500, 0px 60px #FFBE0B, 10px 0px #9F7500, 10px 10px #EFAF00, 10px 20px #9F7500, 10px 30px #EFAF00, 10px 40px #9F7500, 10px 50px #EFAF00, 10px 60px #9F7500, 20px 0px #EFAF00, 20px 10px #9F7500, 20px 20px #EFAF00, 20px 30px #9F7500, 20px 40px #EFAF00, 20px 50px #9F7500, 20px 60px #EFAF00, 30px 0px #9F7500, 30px 10px #EFAF00, 30px 20px #9F7500, 30px 30px #EFAF00, 30px 40px #9F7500, 30px 50px #EFAF00, 30px 60px #9F7500, 40px 0px #EFAF00, 40px 10px #9F7500, 40px 20px #EFAF00, 40px 30px #9F7500, 40px 40px #EFAF00, 40px 50px #9F7500, 40px 60px #EFAF00, 50px 0px #9F7500, 50px 10px #EFAF00, 50px 20px #9F7500, 50px 30px #EFAF00, 50px 40px #9F7500, 50px 50px #EFAF00, 50px 60px #9F7500, 60px 0px #FFBE0B, 60px 10px #9F7500, 60px 20px #EFAF00, 60px 30px #9F7500, 60px 40px #EFAF00, 60px 50px #9F7500, 60px 60px #FFBE0B;
    content: '';
    height: 6px;
    left: 5px;
    position: absolute;
    top: 5px;
    transform: skew(0deg, -12deg);
    transform: translate(-50%, -50%);
    width: 6px;
}

/* Typography
--------------------------------------------- */

.game-boy-title {
    color: #95AEB5;
    font-size: 20px;
    font-style: italic;
    letter-spacing: -1px;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
}

.red-letter {
    color: #DB3575;
}

.purple-letter {
    color: #7F7CC8;
}

.green-letter {
    color: #8DD265;
}

.yellow-letter {
    color: #D6C256;
}

.blue-letter {
    color: #529BB5;
}

.game-boy-brand {
    color: #EFAF00;
    display: flex;
    font-size: 16px;
    font-weight: 300;
    justify-content: center;
    line-height: 1;
    margin: 40px 0 4px;
}

.game-boy-brand-logo {
    border-radius: 36px;
    border: 2px solid #EFAF00;
    padding: 1px 8px;
}

/*--------------------------------------------------------------
# Controls & Buttons
--------------------------------------------------------------*/

.game-boy-controls-primary {
    display: flex;
    justify-content: space-between;
}

.directional-control {
    height: 80px;
    position: relative;
    width: 80px;
}

.directional-control:hover {
    cursor: pointer;
}

.directional-control:hover:before, .directional-control:hover:after {
    background-color: #39464D;
}

.directional-control:active:before, .directional-control:active:after {
    background-color: #4B5C65;
}

.directional-control:before {
    background-color: #283136;
    border-radius: 4px;
    content: "";
    height: 28px;
    left: 0;
    position: absolute;
    top: 26px;
    transition: background-color 200ms;
    width: 80px;
}

.directional-control:after {
    background-color: #283136;
    border-radius: 4px;
    content: "";
    height: 80px;
    left: 26px;
    position: absolute;
    top: 0;
    transition: background-color 200ms;
    width: 28px;
}

.b-a-buttons {
    align-items: center;
    display: flex;
    justify-content: space-between;
    width: 100px;
}

.b-button, .a-button {
    background-color: #283136;
    border-radius: 38px;
    border: none;
    height: 38px;
    position: relative;
    transition: background-color 200ms;
    width: 38px;
}

.b-button:hover, .a-button:hover {
    background-color: #39464D;
    cursor: pointer;
}

.b-button:active, .a-button:active {
    background-color: #4B5C65;
}

.b-button {
    top: 10px;
}

.a-button {
    top: -10px;
}

.game-boy-controls-secondary {
    display: flex;
    justify-content: center;
    margin-top: 42px;
}

.select-start-buttons {
    display: flex;
    justify-content: space-between;
    width: 80px;
}

.select-button, .start-button {
    background-color: #283136;
    border-radius: 50%;
    border: none;
    height: 14px;
    transition: background-color 200ms;
    width: 32px;
}

.select-button:hover, .start-button:hover {
    background-color: #39464D;
    cursor: pointer;
}

.select-button:active, .start-button:active {
    background-color: #4B5C65;
}

.container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
  }
  h1 {
    color: #d32f2f;
    font-size: 2em;
    margin-bottom: 10px;
  }
  p {
    font-size: 1.1em;
    margin: 10px 0;
  }
  .btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2em;
    color: #fff;
    background: #d32f2f;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s;
  }
  .btn:hover {
    background: #b71c1c;
  }
  #countdown {
    font-size: 1.5em;
    color: #d32f2f;
    margin-top: 20px;
  }