/* General Styles */
body {
    color: rgb(207, 185, 18);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-image: url(background.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    background-color: rgb(73, 109, 113);
}

/************************************Temperature Converter Styles ********************************************/
form {
    background-color: hsl(0, 0%, 100%);
    text-align: center;
    max-width: 350px;
    margin: 20px auto;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 5px 5px 15px hsl(0, 0%, 30%);
}

#textBox {
    width: 50%;
    text-align: center;
    font-size: 2em;
    border: 2px solid hsla(0, 0, 0, 0.8);
    border-radius: 4px;
    margin-bottom: 15px;
}

label {
    font-size: 1.5em;
    font-weight: bold;
}

button {
    margin-top: 15px;
    background-color: hsl(0, 90%, 60%);
    color: white;
    font-size: 1.5em;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: hsl(0, 100%, 50%);
}

#result {
    font-size: 1.75em;
    font-weight: bold;
}

/**************************************** Stopwatch Styles ************************************************/
#myH1 {
    font-size: 4rem;
    font-family: "Arial", sans-serif;
    color: rgb(207, 185, 18);
    text-align: center;
}

#container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    border: 5px solid;
    border-radius: 50px;
    background-color: white;
}

#display {
    font-size: 5rem;
    font-family: monospace;
    font-weight: bold;
    color: hsl(0, 0%, 30%);
    text-shadow: 2px 2px 2px hsl(0, 0%, 0%, 0.75);
    margin-bottom: 25px;
}

#controls button {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 10px 20px;
    margin: 5px;
    min-width: 125px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: white;
    transition: background-color 0.5s ease;
}

#startBtn {
    background-color: rgb(0, 148, 49);
}

#startBtn:hover {
    background-color: rgb(44, 225, 143);
}

#stopBtn {
    background-color: rgb(171, 0, 29);
}

#stopBtn:hover {
    background-color: rgb(251, 0, 40);
}

#resetBtn {
    background-color: rgb(0, 89, 163);
}

#resetBtn:hover {
    background-color: rgb(0, 200, 255);
}

/*********************************************** Calculator Styles ***********************************************/
/* General Styles */
#calculatorSection {
    color: rgb(207, 185, 18);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-image: url(background.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    background-color: rgb(73, 109, 113);
    overflow-x: hidden;
}

/* Calculator Section */
#h1Calculator {
    font-size: 4rem;
    font-family: "Arial", sans-serif;
    color: rgb(207, 185, 18);
    text-align: center;
}

#calculator {
    font-family: Arial, sans-serif;
    background-color: hsl(0, 0%, 15%);
    border-radius: 15px;
    max-width: 300px;
    width: 100%;
    overflow: hidden;
    margin-top: 20px;
}

#calculatorDisplay {
    width: 100%;
    padding: 20px;
    font-size: 2.5rem;
    text-align: right;
    border: none;
    background-color: hsl(0, 0%, 20%);
    color: white;
    box-sizing: border-box;
}

#keys {
    width: 100%;
    /* width: 80%; */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 15px 15px;
    box-sizing: border-box;
}

#keys button {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: none;
    background-color: hsl(0, 0%, 30%);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#keys button:hover {
    background-color: hsl(0, 0%, 40%);
}

#keys button:active {
    background-color: hsl(0, 0%, 50%);
}

.operator-btn {
    background-color: hsl(35, 100%, 55%) !important;
}

.operator-btn:hover {
    background-color: hsl(35, 100%, 65%) !important;
}

.operator-btn:active {
    background-color: hsl(35, 100%, 75%) !important;
}

@media (max-width: 480px) {
    #calculator {
        max-width: 100%;
        margin: 10px;
    }

    #calculatorDisplay {
        font-size: 2rem;
        padding: 15px;
    }

    #keys button {
        font-size: 1.25rem;
    }
}



/****************************************** ROCK, PAPER, SCISSORS - Styles *************************************************/


h1 {
    font-size: 3.5rem;
    /* color: hsl(0, 0%, 20%); */
    color: rgb(207, 185, 18);
}

.choices {
    margin-bottom: 30px;
}

.choices button {
    font-size: 7.5rem;
    min-width: 160px;
    margin: 0 10px;
    border-radius: 250px;
    background-color: hsl(200, 100%, 50%);
    cursor: pointer;
    transition: background-color 0.5s ease;
}

.choices button:hover {
    background-color: hsl(200, 100%, 70%);
}

#playerDisplay,
#computerDisplay {
    font-size: 2.5rem;
}

#resultDisplay {
    font-size: 5rem;
    margin: 30px 0;
}

.scoreDisplay {
    font-size: 2rem;
}

.greenText,
#playerScoreDisplay {
    color: hsl(120, 100%, 62%);
}

.redText,
#computerScoreDisplay {
    color: hsl(0, 100%, 60%);
}

/****************************************** Fetch a Pokemon image - Styles *************************************************/
#pokemonName {
    height: 40px;
}

#pokemonCard {
    width: 200px;
    border: 3px solid #e63946;
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
    background-color: #f1faee;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-header {
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Verdana', sans-serif;
    color: #1d3557;
}

#pokemonSprite {
    max-width: 100%;
    height: auto;
}

/****************************************** Image Slider Styles *************************************************/

.slider{
    position: relative;
    width: 100%;
    margin: auto;
    overflow: hidden;
}

.slider img{
    width: 100%;
    display: none;
}

img.displaySlide{
    display: block;
    animation-name: fade;
    animation-duration: 1.5s;
}

.slider button{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem; 
    padding: 10px 15px;
    background-color: hsl(0, 0%, 0%, 0.5);
    color: white;
    border: none;
    cursor: pointer;
}

.previous{
    left: 0;
}
.next{
    right: 0;
}

@keyframes fade{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}