@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&display=swap');

body {
    font-family: 'Caveat', cursive;
    background-image: url(Website_Background.png);
    background-size: 100%;
}

.title {
    justify-self: center;
    font-size: 48px;
}

.recent_games {
    justify-self: center;
}

.recent_text {
    justify-self: center;
    font-size: 36px;
}


.recent_game{
    width: 250px; 
    height: 250px;
    text-align: center;
    justify-self: center;

    background-image: url("Swamp-strikers.png");
    background-size: cover;        /* looks better than 100% */
    background-position: center;

    border-radius: 20px;           /* ← rounds corners */
    overflow: hidden;              /* ensures image respects rounding */

    border: 4px solid #ebf9fe;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25); /* darker, more visible shadow */
}

.subjects {
   margin: 50px auto;
    text-align: center;

    width: 700px;                       /* wider */
    padding: 10px 10px 30px 10px;       /* thinner (less top/bottom padding) */

    background: rgba(229, 242, 179, 0.5); /* mint green but transparent */
    border-radius: 25px;

    border: 4px solid #40916c; /* ← darker green border */

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

}


.subjects_text {
    margin: 0;           /* removes default h2 spacing */
    margin-bottom: 5px;  /* tiny gap above buttons */
    font-size: 40px;     /* slightly smaller helps too */
}

.math,
.history,
.science {
    width: 175px;
    height: 175px;

    background-image: url("Lilypad.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    border: none;
    background-color: transparent;
    cursor: pointer;

    color: white;
    font-family: 'Caveat', cursive;
    font-size: 30px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);

    padding: 0;
    margin: 10px;
    appearance: none;
    -webkit-appearance: none;
    vertical-align: middle;
   
}

.math:hover,
.history:hover,
.science:hover{
    transform: scale(1.08) rotate(-2deg);
    transition: transform 0.2s ease;
}

.recent_game:hover{
    transform: scale(1.08);
    transition: transform 0.2s ease;
}


footer {
    text-align: center;
    padding-top: 50px;
}

.recent_text {
    margin: 0;
    margin-bottom: 10px; /* smaller gap */
    padding-top: 10px; /* ← remove the huge space */
}

.recent_container {
    margin: 50px auto;
    text-align: center;

    width: 700px;
    padding: 5px 5px 10px 5px;


    background: rgba(229, 242, 179, 0.5); /* mint green but transparent */
    border-radius: 25px;

    border: 4px solid #40916c;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.title-wrapper {
    position: relative;
    text-align: center;
}

.profile-button {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);

    font-family: 'Caveat', cursive;
    font-size: 20px;
    font-weight: 700;

    padding: 8px 18px;
    background: rgba(229, 242, 179, 0.7);
    border: 3px solid #40916c;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.profile-button:hover {
    transform: translateY(-50%) scale(1.05);
    transition: transform 0.2s ease;
}